跳转到主要内容
POST
Search Company Records (POST)

请求规范

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

费用与请求规则

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

授权

Authorization
string
header
必填

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

请求体

application/json
query
string
必填

An Elasticsearch (v7.7) DSL query for searching company data. Must be a valid JSON object as a string. Either 'query' or 'sql' is required, but not both.

示例:

"{\"query\": {\"term\": {\"industry\": \"computer software\"}}}"

"{\"bool\": {\"must\": [{\"term\": {\"industry\": \"computer software\"}}, {\"exists\": {\"field\": \"website\"}}]}}"

size
integer
必填

Batch size/max records returned. Must be between 1 and 100. Default: 1

必填范围: 1 <= x <= 100
示例:

10

50

100

from_offset
integer

Legacy offset for pagination (0-9999), max 10000 records total. Use scroll_token for unlimited pagination.

必填范围: 0 <= x <= 9999
示例:

0

100

500

pretty
boolean
默认值:false

Human-readable JSON formatting. Default: false

scroll_token
string

Pagination token from previous response for unlimited record retrieval. Use this for paginating beyond 10000 records.

示例:

"104$14.278746"

sql
string

SQL query format: SELECT * FROM company WHERE [condition]. Either 'query' or 'sql' is required, but not both.

示例:

"SELECT * FROM company WHERE industry='computer software' AND website IS NOT NULL"

"SELECT * FROM company WHERE employee_count >= 100 AND location.country='united states'"

titlecase
boolean
默认值:false

Titlecase response text. Default: false

响应

Tool result data

data
object[]
必填
status
integer
必填
scroll_token
string
total
integer