
Person search
POST/person/search
curl -X POST https://api.orthogonal.com/v1/run \
-H 'Authorization: Bearer orth_live_••••' \
-H 'Content-Type: application/json' \
-d '{
"api": "data-legion-person-data-base-with-contact-data",
"path": "/person/search",
"method": "POST",
"body": {
"sql": "",
"limit":
}
}'
{
"success": true,
"data": {
"total": 1426303,
"matches": [ 1 item ],
"next_cursor": "TBnsW8t2F_0reD4rM_6V9lFouocJwhPxg58BueollTFLGwPZbPx5FJJWlWjvbVnlJ62p21ASVPjqZv7qAzy4akzO-G59-AoT2J68Qx5m8qABrMTPRbKrnyvE9Vh_FtWPQ7vJGe-zXKQC7BqitarY8P-oCSE8PxAloj9dXL6e-D8FkJ6Do5G0rrAocBRb4g7oVvtoh2GZ7hQ7xgMiyuPX7dSYM77GfxAnNF0r-YPuhTEsaee5Z5pVRWTxvvbR__ui8JTCCH2YDiwBqilOdU-vfsA2A0zxPcnD3SEdkU5tCGhksQ2N3OubM2wu-c5qVZHxFlensK1DQpcFGaSV5b0DLjKCn8VEprOWHW7YCoLH7UK0xrs2hx0Fh4sgvXg"
}
}
A real response, recorded when Orthogonal checked this endpoint.
The final charge depends on what comes back. It shows after Run.
$0.0545per 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
Execute a SQL query against the database and return person results. The query must not contain LIMIT or OFFSET clauses - use the 'limit' and 'offset' parameters for pagination. Supports titlecase formatting and field filtering.
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 person 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 case (names, job titles, company names, locations, skills, headlines). Raw fields, IDs, URLs, codes, and confidence fields are excluded.include_fieldsstringComma-separated list of fields to include in response (e.g., 'full_name,emails,phones'). If omitted, all fields are returned.exclude_fieldsstringComma-separated list of fields to exclude from response (e.g., 'skills,education'). Applied after include_fields filter.pretty_printbooleanIf true, pretty-print JSON response with indentation.Response types
totalFor /person/search and /person/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 Person Data (Base with Contact Data)
All 3 Data Legion Person Data (Base with Contact Data) endpointsSimilar endpoints
- People Data Labs · Person SearchPOST/v5/person/search$0.30 per result returnedResponse-based
- Crustdata · Person SearchPOST/person/search$0.009375 per profile returnedResponse-based
- FullEnrich · Search PeoplePOST/people/search$0.015 per result returnedResponse-based
- Enrich Layer · Person SearchGET/search/person$0.0708 per result returnedResponse-based · up to $7.08
- LeadOcean · People search (JSON)POST/v1/people/search$0.000164 per record returnedResponse-based · up to $0.0327
- Airscale · Find peoplePOST/v1/find-people$0.000409 per lead returnedResponse-based · up to $0.040875