Skip to main content
POST
Search Company Records (POST)

Request contract

  • Method and path: POST /apis/v1/people-data-labs/search-company-post
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/people-data-labs/search-company-post
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Default request estimate: $0.1003 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

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

Body

application/json
query
string
required

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.

Examples:

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

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

size
integer
required

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

Required range: 1 <= x <= 100
Examples:

10

50

100

from_offset
integer

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

Required range: 0 <= x <= 9999
Examples:

0

100

500

pretty
boolean
default: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.

Example:

"104$14.278746"

sql
string

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

Examples:

"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
default:false

Titlecase response text. Default: false

Response

Tool result data

data
object[]
required
status
integer
required
scroll_token
string
total
integer