Skip to main content
POST
Company search

Request contract

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

Cost and request rules

Usage-based pricing. Default request estimate: $0.005 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
object
required

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
required

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

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

Required range: 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
default: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.

Response

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.