
curl -X POST https://api.orthogonal.com/v1/run \
-H 'Authorization: Bearer orth_live_••••' \
-H 'Content-Type: application/json' \
-d '{
"api": "data-legion-company-base",
"path": "/company/search",
"method": "POST",
"body": {
"sql": "",
"limit":
}
}'
{
"success": true,
"data": {
"total": 1611847,
"matches": [ 1 item ],
"next_cursor": "FeoYvlM-9CIM19cO4U7HoRBX3Nj1etAMBqC1rm2foteKzJy_bP4TRG2PppybeuCz1eRJNK_N7HO4IkOiExnqOVS3RQFbvnuOB-8XbEBYAy5yj39dlny3iF56HN093zoo1f5vtSnKIaggbXR5xIvMtUB9y5mXbRsmtoYzWtQS78LyIXKeSbzIZieByKBa4lp4kIRpGso28AFPQ4HrC0dI42RyRhbx9NFpHIs_yQ_9W3hFCMsO13QSK-UUakZazXaOQeVLfGhSUteWcPFgzx93osVzrigdyGRpyPv-TGxr0fH32ByCtSZmkpxD4oc0ZjLkZAxe0gWRzX5MSquVcodHVErPmhalt0YQUrtgL33CzFvcJot2YlTEkh26KI4"
}
}
A real response, recorded when Orthogonal checked this endpoint.
The final charge depends on what comes back. It shows after Run.
$0.0109per match returned
Response-basedYou pay for what comes back, never more than the price shown before you run.
You aren't charged for failed calls. A wallet payment for a failed call is refunded.
About this endpoint
Search companies using SQL query, an Elasticsearch query object or field filters; returns up to limit company records (1-100) per page, with offset or cursor paging.
Body parameters
querystringDeprecated: send sql or es_query. A SQL SELECT statement when text, a query object when an object (or text starting with "{"); still accepted as before.sqlstringA SQL SELECT statement (no LIMIT or OFFSET clause: use limit and offset).es_queryobjectA query object in the Elasticsearch query DSL, naming the response's field paths (bool, term, terms, match, match_phrase, range, exists, prefix, wildcard, nested). A GET may send it as JSON text.filtersobjectThe company record's own field names; every one given must hold.limitintegerMaximum number of results to return (replaces LIMIT in query) (default: 1, max: 100)offsetintegerNumber of results to skip for pagination (0-10000). Stable within a build; ordering may change across builds.cursorstringContinue a search from the previous page's next_cursor: the next page in the same order, past offset's 10,000-row reach, for deep pages and exports. Send the same query, and no offset. A cursor works for the dataset build it came from; after a new build, start again.titlecasebooleanIf true, format text fields in title caseinclude_fieldsstringComma-separated list of fields to include in response. If omitted, all fields are returned.exclude_fieldsstringComma-separated list of fields to exclude from response. Applied after include_fields filter.pretty_printbooleanIf true, pretty-print JSON response with indentation.Response types
totalFor /company/search and /company/discover, the total number of rows matching the query's WHERE clause across the database (not just this page). On search/discover, if the exact count exceeds its time budget (broad, low-selectivity queries) it falls back to the matches counted before the budget ran out (a lower bound), and if that does not cover this page, to the offset plus the rows returned; the response header Total-Count-Status reports which (exact, estimate, or page).integerMore from Data Legion Company Base
All 3 Data Legion Company Base endpointsSimilar endpoints
- Data Legion Company Premium · Company searchPOST/company/search$0.0436 per match returnedResponse-based · up to $4.36
- People Data Labs · Company SearchPOST/v5/company/search$0.11 per result returnedResponse-based
- Company Enrich · Search CompaniesPOST/companies/search$0.01225 per result returnedResponse-based
- Fiber AI · Company searchPOST/v1/company-search$0.001962 per company returnedResponse-based · up to $1.963962
- Data Legion Person Base (No Contact Data) · Person searchPOST/person/search$0.0109 per match returnedResponse-based · up to $1.09
- Data Legion Person Data (Base with Contact Data) · Person SearchPOST/person/search$0.0545 per match returnedResponse-based · up to $5.45