跳转到主要内容
POST
Search AI Data

请求规范

  • 方法与路径: POST /apis/v1/querit/search
  • 可用状态: enabled
  • 请求 URL 模板: https://api.aisa.one/apis/v1/querit/search
完整 OpenAPI 定义 有效请求声明(包括认证和引用的 schema):

费用与请求规则

公开参考价格:每次成功请求 $0.0048 USD。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求体

application/json

Top-level parameters: highlights object form: contentMaxChars body-text limit: This is a top-level integer, not a field inside highlights. Only send it when you need to limit returned body text. With needContent: true and body-content access enabled, it limits the total characters across all strings in each result's sentence array, independently per result. Omit it or send null for the full available body text. The limit counts Unicode code points in UTF-8 body text, preserves sentence order, and may cut the last retained sentence short. It does not include JSON formatting or separators added by your application. It does not limit snippet or highlights, and it does not change page-based billing. Use highlights.maxCharacters (100–8000) to control query-focused fragments separately. filters sub-object: timeRange.date syntax: d[n] / w[n] / m[n] / y[n]: last n days / weeks / months / years, e.g. d7, m3 YYYY-MM-DDtoYYYY-MM-DD: a range, e.g. 2022-04-01to2022-07-30; a single day uses the same to form geo.countries.include allowed values: argentina, australia, brazil, canada, colombia, france, germany, india, indonesia, japan, mexico, nigeria, philippines, south korea, spain, united kingdom, united states. languages.include allowed values: english, japanese, korean, german, french, spanish, portuguese, russian. vertical allowed values: code, finance. Lowercase and strictly enumerated; omit the field for universal search. rank sub-object: rank.preference is a boost, not a sort. The default ranking still dominates; results that score better on the chosen factor move up moderately. Do not assume the output is monotonic in that factor, and do not expect a result ranked far down by default to appear just because it is the freshest. Omit rank entirely to keep the default ranking. rank returns 400 when: preference is missing or empty, e.g. {"rank": {}} or {"rank": {"preference": ""}} preference is any value other than relevance or freshness it is combined with filters.vertical: "code" — the code vertical does not support rank yet rank can be combined with sort.pageAge, but freshness overlaps heavily with a time sort and adds little visible change.

query
string
必填

Search term. Supports long natural-language descriptions

chunksPerDoc
integer
默认值:1

Summary chunks per document. Free / PAYG support up to 1; Enterprise up to 3. Deprecated — still available, but migrate to highlights

contentMaxChars
integer

Optional body-text length limit per result, from 1 to 1,000,000 Unicode code points. Used with needContent: true; omit or send null to return the full available body text without truncation. Default: Full available body text (value unspecified).

count
integer

Maximum number of results returned. Default: server default (value unspecified).

filters
object

Filter conditions, see below

highlights

Request relevant fragments from the body text. true extracts against the original query at the length the model judges best; the object form takes query and maxCharacters, see below

needContent
boolean
默认值:false

Whether to return body text. When true, body text lands in each result's sentence field (sentence array)

rank
object

Ranking preference. rank.preference boosts one factor on top of the default ranking, see below. Not supported with filters.vertical: "code". Default: Default ranking (value unspecified).

响应

Official response table. Fields on each results.result[] item: url, title, snippet, page_age (plaintext UTC+0 time), site_name, site_icon, sentence (string[], present only when needContent: true and body text is available), highlights (string[], present only when highlights is set on the request and body text is available). Every result field is optional. Some results in the same response may have no sentence or highlights. Treat a missing field as "body text unavailable," not as an error.

cost
object

Optional request cost on supported HTTP 200 responses; absence means unavailable, not free

error_code
integer

Error code, consistent with the HTTP status code; 200 on success

error_msg
string

Error detail

query_context
object
results
object
search_id
integer

Unique request identifier; give it to support when reporting an issue

took
string

Server-side processing time