跳转到主要内容
POST
Company search

请求规范

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

费用与请求规则

按实际用量收费。 默认请求预估费用:$0.005 USD。 最终费用以实际用量为准。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。

授权

Authorization
string
header
必填

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

请求体

application/json
query
object
必填

Elasticsearch 7.7 query object over the company schema. Only term, terms, exists, bool, match, range, match_phrase, wildcard, prefix and match_all are accepted. Any array inside it is capped at 100 elements - a tenth of what the person endpoints allow, so a filter list carried over from there will fail. Send this or sql, never both.

size
integer
必填

Request 1-2 companies per call. callers must use size 1 or 2.

Provider reference: minimum 1; maximum 100; default 1.

必填范围: 1 <= x <= 2
scroll_token
string

The scroll_token from the previous response, replayed with the identical query, for the next page. A 404 while scrolling means the results are exhausted, not that the query broke.

sql
string

SELECT * FROM company WHERE .... Column selection and LIMIT are ignored, and at most 20 LIKE '%...%' terms are allowed. Send this or query, never both.

titlecase
boolean
默认值:false

Return titlecased values. Responses are lowercase otherwise, which matters when the output is shown to a person rather than matched on.

Provider reference: default false.

响应

Full company records under data (only representative fields are listed here), sorted by profile completeness, with total and scroll_token in the envelope. A query matching nothing is a 200 with total 0, not a 404 - read total, never the status code.

The response contains the tool result directly.

The provider identifies data as the primary payload key.

These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.