curl --request POST \
--url https://api.datalegion.ai/person/search \
--header 'API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"limit": 10,
"sql": "SELECT * FROM people WHERE job_title ILIKE '%engineer%' AND company_name = 'stripe'",
"titlecase": false
}
EOFimport requests
url = "https://api.datalegion.ai/person/search"
payload = {
"limit": 10,
"sql": "SELECT * FROM people WHERE job_title ILIKE '%engineer%' AND company_name = 'stripe'",
"titlecase": False
}
headers = {
"API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
limit: 10,
sql: 'SELECT * FROM people WHERE job_title ILIKE \'%engineer%\' AND company_name = \'stripe\'',
titlecase: false
})
};
fetch('https://api.datalegion.ai/person/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.datalegion.ai/person/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'limit' => 10,
'sql' => 'SELECT * FROM people WHERE job_title ILIKE \'%engineer%\' AND company_name = \'stripe\'',
'titlecase' => false
]),
CURLOPT_HTTPHEADER => [
"API-Key: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.datalegion.ai/person/search"
payload := strings.NewReader("{\n \"limit\": 10,\n \"sql\": \"SELECT * FROM people WHERE job_title ILIKE '%engineer%' AND company_name = 'stripe'\",\n \"titlecase\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.datalegion.ai/person/search")
.header("API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"limit\": 10,\n \"sql\": \"SELECT * FROM people WHERE job_title ILIKE '%engineer%' AND company_name = 'stripe'\",\n \"titlecase\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.datalegion.ai/person/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"limit\": 10,\n \"sql\": \"SELECT * FROM people WHERE job_title ILIKE '%engineer%' AND company_name = 'stripe'\",\n \"titlecase\": false\n}"
response = http.request(request)
puts response.read_body{
"matches": [
{
"person": {
"legion_id": "fdd85569-f0f0-53a9-bc60-089507193c28",
"full_name": "jane marie doe",
"first_name": "jane",
"last_name": "doe",
"city": "san francisco",
"state": "california",
"state_code": "US-CA",
"country": "united states",
"country_code": "US",
"job_title": "senior product manager",
"company_name": "tech company",
"company_domain": "techcompany.com",
"company_industry": "technology, information and internet",
"company_size": "1001-5000",
"seniority_level": "senior",
"job_function": "product",
"work_email": "jane.doe@techcompany.com",
"linkedin_url": "https://www.linkedin.com/in/janedoe",
"linkedin_id": "123456789",
"years_of_experience": 12,
"last_seen": "2026-01-20"
}
}
],
"total": 8492
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}Person Search API
Person Search API endpoint: query profiles using SQL-like syntax with flexible filtering across 100+ data fields.
curl --request POST \
--url https://api.datalegion.ai/person/search \
--header 'API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"limit": 10,
"sql": "SELECT * FROM people WHERE job_title ILIKE '%engineer%' AND company_name = 'stripe'",
"titlecase": false
}
EOFimport requests
url = "https://api.datalegion.ai/person/search"
payload = {
"limit": 10,
"sql": "SELECT * FROM people WHERE job_title ILIKE '%engineer%' AND company_name = 'stripe'",
"titlecase": False
}
headers = {
"API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
limit: 10,
sql: 'SELECT * FROM people WHERE job_title ILIKE \'%engineer%\' AND company_name = \'stripe\'',
titlecase: false
})
};
fetch('https://api.datalegion.ai/person/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.datalegion.ai/person/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'limit' => 10,
'sql' => 'SELECT * FROM people WHERE job_title ILIKE \'%engineer%\' AND company_name = \'stripe\'',
'titlecase' => false
]),
CURLOPT_HTTPHEADER => [
"API-Key: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.datalegion.ai/person/search"
payload := strings.NewReader("{\n \"limit\": 10,\n \"sql\": \"SELECT * FROM people WHERE job_title ILIKE '%engineer%' AND company_name = 'stripe'\",\n \"titlecase\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.datalegion.ai/person/search")
.header("API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"limit\": 10,\n \"sql\": \"SELECT * FROM people WHERE job_title ILIKE '%engineer%' AND company_name = 'stripe'\",\n \"titlecase\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.datalegion.ai/person/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"limit\": 10,\n \"sql\": \"SELECT * FROM people WHERE job_title ILIKE '%engineer%' AND company_name = 'stripe'\",\n \"titlecase\": false\n}"
response = http.request(request)
puts response.read_body{
"matches": [
{
"person": {
"legion_id": "fdd85569-f0f0-53a9-bc60-089507193c28",
"full_name": "jane marie doe",
"first_name": "jane",
"last_name": "doe",
"city": "san francisco",
"state": "california",
"state_code": "US-CA",
"country": "united states",
"country_code": "US",
"job_title": "senior product manager",
"company_name": "tech company",
"company_domain": "techcompany.com",
"company_industry": "technology, information and internet",
"company_size": "1001-5000",
"seniority_level": "senior",
"job_function": "product",
"work_email": "jane.doe@techcompany.com",
"linkedin_url": "https://www.linkedin.com/in/janedoe",
"linkedin_id": "123456789",
"years_of_experience": 12,
"last_seen": "2026-01-20"
}
}
],
"total": 8492
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}Three Ways to Search
Send exactly one of these with each request:| Input | What it is | Best for |
|---|---|---|
filters | The record’s own field names with values, plus a Boolean keywords string | Most searches; no query language to learn |
sql | A SELECT * FROM people WHERE ... statement | Analysts and data teams |
es_query | A query object in the Elasticsearch query syntax | Code that builds searches |
sql takes only SQL and es_query only a query object. The older query parameter still works (SQL as text, a query object as an object); new code should use the inputs above.
{
"filters": {
"job_title": ["vp of sales", "head of sales"],
"company_industry": "software development"
},
"limit": 5
}
{
"sql": "SELECT * FROM people WHERE (job_title ILIKE '%vp of sales%' OR job_title ILIKE '%head of sales%') AND company_industry = 'software development'",
"limit": 5
}
Filters
Filter keys are the record’s own field names: the ones in every response and on the field reference. One grammar works for every field:| Value | Means | Example |
|---|---|---|
| A value | The field holds it | "state_code": "TX" |
| A list | Any of them | "seniority_level": ["vp", "director"] |
{"gte": .., "lte": ..} (also gt, lt) | A range, for numbers and dates | "years_of_experience": {"gte": 5} |
{"exists": true} | The field holds a value (false: it doesn’t) | "npi": {"exists": true} |
true / false | A flag | "is_decision_maker": true |
"job_title": "vp of sales" also finds “senior vp of sales”, and abbreviations are read the way titles are stored (“vp” is also “vice president”). Every other field matches the whole value. Case never matters, and places and websites take any common spelling (TX, us-tx and Texas are the same state).
Work history is a list of jobs: fields under experience given together must hold for the same job. A past job at Google is {"experience.organization.name.cleaned": "google", "experience.current": false}.
A key that is not a field of the record is a 422 that names the closest real fields. Fields outside your plan are refused, as they are in SQL.
Combining Filters
To combine sets of fields, wrap them in a group, which is also how to rule something out:{"and": [...]} (all must hold), {"or": [...]} (any may hold) or {"not": {...}} (must not hold). Groups nest up to 3 levels, with up to 20 items in each.
{
"filters": {
"and": [
{ "job_title": "nurse practitioner" },
{ "or": [{ "state_code": "TX" }, { "city": "boston" }] },
{ "not": { "company_domain": "acme-health.com" } }
]
},
"limit": 10
}
city, state, state_code) come with contact data; on a plan without it, a filter on them is refused with a 400.
Boolean Keywords
keywords takes a Boolean search string, written the way recruiters write one: words and "quoted phrases", with AND, OR and NOT in capitals and parentheses for grouping. Words side by side mean AND, and a lowercase “and” is just a word. NOT binds tightest, then AND, then OR, so python AND django OR flask means (python AND django) OR flask. It searches the person’s title, headline, summary and skills, and combines with every other filter.
{ "filters": { "keywords": "(\"data engineer\" OR \"analytics engineer\") AND python NOT intern" } }
SQL
Write aSELECT * FROM people WHERE ... query in sql. Do not include LIMIT or OFFSET clauses; use the limit and offset parameters instead.
Response Shape
{
"matches": [ { "person": { "..." : "..." } } ],
"total": 8492,
"next_cursor": "k3Vb9xQp2LmZr7Ta..."
}
-
matches: capped at the request’slimit(default 1, max 100). -
total: how many rows match across the whole database, not just this page, so a request withlimit: 1tells you how big a list is (“VPs of Engineering at fintech in NY”). TheTotal-Count-Statusheader says how to read it:exact(selective queries),estimate(a broad query’s count ran out of time;totalis a lower bound, so show it as “141,286+”), orpage(no count;totalis the offset plus the rows returned). Search responses carry nomatch_metadata; only/person/enrichdoes. A broad query returns the same response shape with a lower-bound total, flagged by the header:Total-Count-Status: estimate{ "matches": [ { "person": { "..." : "..." } } ], "total": 141286, "next_cursor": "k3Vb9xQp2LmZr7Ta..." } -
next_cursor: the cursor for the next page when more results follow (send it back ascursor, see Cursors below); null on the last page. -
Industry filters:
company_industryholds the lowercased LinkedIn industry names in Enums. A filter no stored value can match (an older LinkedIn name such as'%information technology%') returns an empty page at once, free, with aSearch-Warningheader naming the filter and the closest stored values. -
Synonyms and aliases: in SQL, a job title, employer, past employer (
organization_name) or place in an=,LIKEorILIKEfilter also matches its known synonyms:'%software engineer%'also finds “developer” and “programmer”,company_name = 'Meta'also finds “facebook”,city = 'NYC'also finds “new york”.filterson the same fields (job_title,company_name,experience.title.cleaned,experience.organization.name.cleaned,education.organization.name.cleanedand the places) match them too, so a search answers the same either way. The lists are short and change only with a data release. TheSearch-Warningheader names what was also matched.IN (...)lists and query objects (es_query) match without them. -
Case: capitalization never changes the answer: on a direct text column
=,<>,IN,NOT IN,LIKEand~all ignore case, sofirst_name = 'Jane'finds “jane”. Only a regular expression that asks about case (a class such as[A-Z]) stays case-sensitive. Numbers, dates and booleans compare as written. Stored values are lowercase, exceptheadline,summaryand the uppercase codes. -
Places and websites: write a state or country as its code or name and a website as a URL:
state_code = 'TX','us-tx'and'Texas'all mean'US-TX';country = 'US'and'USA'mean'united states';country_code = 'usa'means'US';company_domain = 'https://www.stripe.com/'means'stripe.com'. This holds in query objects’termandtermstoo. A bare state code is a US state unless the query names another country. -
Title abbreviations: stored titles spell abbreviations out (“registered nurse”, not “RN”), so a one- or two-letter abbreviation in a title pattern (
job_title ILIKE '%RN%') is searched as the stored spelling, and theSearch-Warningheader says what was searched. -
Short patterns: any other one- or two-character contains-pattern matches the whole word on titles, names and employers (
'%qa%'finds “qa”, not “aquatics”) and anywhere on places (city ILIKE '%ny%'finds “albany”). TheSearch-Warningheader says which and suggests the full term or a whole-word match (on a domain or URL column, an exact=). -
Sort order: results come in a stable order, with
legion_idas the final tie-break after your ownORDER BY, so the same request returns the same page and paging never repeats or skips a record while the data is unchanged.
Query Objects (es_query)
Instead of SQL, sendes_query: a query object in the Elasticsearch query syntax. It suits code that builds filters, and it uses the field names of the response itself.
{
"es_query": {
"bool": {
"filter": [
{ "term": { "state": "california" } },
{ "match": { "job_title": "product manager" } },
{ "nested": { "path": "experience", "query": { "bool": { "filter": [
{ "term": { "experience.current": false } },
{ "match_phrase": { "experience.organization.name.cleaned": "google" } }
] } } } }
],
"must_not": [{ "term": { "seniority_level": "intern" } }]
}
},
"limit": 25
}
state (contact data) and seniority_level (Premium); on a plan without them it is refused with a 400.
- Supported:
bool(must,should,filter,must_not,minimum_should_match),term,terms,match,match_phrase,range,exists,prefix,wildcardandnested. Anything else, such as scripts, aggregations,regexp,fuzzy,query_stringor boosts, returns a 400; so does a parameter a supported type doesn’t take (such asboostinsideterm). - Fields: the response’s own paths (
job_title,experience.title.cleaned), on fields your contract covers. A trial account searches only the fields its responses include. - Case:
term,terms,prefixandwildcardignore case.matchandmatch_phrasesearch the words of a text field.wildcardtakes*and?, but not at the start of the pattern. experience(work history) is an array of jobs: a filter onexperience.*matches when any one job matches, and wrapping several filters innestedmakes them hold for the same job (above: a past job at Google).- Limits: up to 10 levels deep, 100 leaf filters and 1,000 values in one
terms; at most 1,020 conditions once lists are expanded.minimum_should_matchis a count up to 100 or a percentage. - As text: a query object can also be sent as JSON text, which is how a GET request carries one (
?es_query={"term":{"city":"austin"}}, URL-encoded);filtersworks the same way. Prefer POST: a GET puts the query in the URL. A whole Elasticsearch search body,{"query": {...}}, is read as the query inside it. - Refused: keys other than the documented parameters (such as
aggs,sortorsize) are a 422 that names them, and any query type or parameter not listed above is a 400.
limit, offset and cursor, field selection, credits and the response shape.
Pagination
To page through results beyond the first 100, setoffset to the number of rows to skip. Maximum offset is 10,000.
{
"sql": "SELECT * FROM people WHERE company_name ILIKE '%google%' AND job_title ILIKE '%engineer%'",
"limit": 100,
"offset": 100
}
Cursors
To read deeper thanoffset allows, or to export a whole result set, page with a cursor. A page with more results after it carries next_cursor; send it back as cursor, without offset, with the same search. On the last page next_cursor is null, even when the page is full.
{
"sql": "SELECT * FROM people WHERE ...",
"limit": 100,
"cursor": "k3Vb9xQp2LmZr7Ta..."
}
Available Columns
Text Columns
UseILIKE for partial matching or = for exact matching.
| Column | Description |
|---|---|
full_name | Full name |
first_name | First name |
last_name | Last name |
job_title | Current job title |
company_name | Current company name |
company_domain | Current company domain |
company_industry | Current company industry, a LinkedIn industry name (see Enums) |
city | Current city |
state | Current state (full name, e.g., california) |
state_code | State code (ISO 3166-2, e.g., US-CA) |
country | Current country (full name, e.g., united states) |
country_code | Country code (ISO 3166-1 alpha-2, e.g., US) |
npi | NPI of a US healthcare provider (10 digits). Use = for one NPI, or npi IS NOT NULL for healthcare providers |
Numeric Columns
| Column | Description |
|---|---|
age | Current age |
birth_year | Birth year |
years_of_experience | Total years of professional experience |
avg_tenure_months | Average tenure across jobs (months) |
linkedin_followers | LinkedIn follower count |
linkedin_connections | LinkedIn connection count |
Enum Columns
Use= or IN for exact matching.
| Column | Values |
|---|---|
sex | male, female |
seniority_level | c_level, owner, partner, vp, director, manager, senior, junior, training, intern |
job_function | engineering, information_technology, product, design, sales, marketing, operations, finance, hr, legal, customer_success, data, executive, social_services, healthcare, education, trades, transportation, service, other |
expense_category | general_and_administrative, research_and_development, sales_and_marketing, cost_of_services, not_applicable |
company_size | 1-10, 11-50, 51-200, 201-500, 501-1000, 1001-5000, 5001-10000, 10001+ |
highest_degree_level | doctorate, masters, bachelors, associates, high_school |
Boolean Columns
| Column | Values |
|---|---|
is_decision_maker | true, false |
is_platform_worker | true, false |
Cross-Table Columns
These columns search across work history, education, certifications, contact data, skills, languages and the profile’s headline and summary:| Column | Description |
|---|---|
skills | Skills from all positions |
languages | Spoken languages |
headline | LinkedIn headline text |
summary | LinkedIn summary / bio text |
title | All job titles from work history (not just current) |
organization_name | All employer names from work history |
description | Job description text from work history |
school | Every school in the education history |
field_of_study | What the person studied, in any education entry |
certification | Certifications and licenses held |
email_type | An email’s type (professional, personal) |
email_validation_status | An email’s validation status (valid, invalid, risky, catch_all) |
phone_number | Any phone number on file |
street_address | Any street address on file |
school together with field_of_study or graduation_date (or two education keys ANDed in filters) answers 400 unsupported_filter: the two could match different education entries, so a Stanford degree in economics would also find someone who studied economics elsewhere. Search on one of them.
Cross-table columns support these filter forms:
| Form | Example | Matches |
|---|---|---|
ILIKE with a leading % | organization_name ILIKE '%dell technologies%' | Rows containing the text |
ILIKE without a leading % | organization_name ILIKE 'cisco%' | Rows starting with the text |
= | organization_name = 'cisco' | Rows equal to the value, ignoring case |
IN | skills IN ('python', 'go') | Rows equal to any value, ignoring case |
~* | title ~* 'engineer' | Rows matching the pattern, ignoring case |
IS NOT NULL | phone_number IS NOT NULL | Rows holding a value |
- To exclude, wrap the filter:
NOT (organization_name ILIKE '%cisco%'). - To match several patterns, join
ILIKEfilters withOR. - Inside a value, double an apostrophe as standard SQL requires:
organization_name ILIKE '%mcdonald''s%'. LIKEmatches asILIKEdoes.IS NULLand other operators on these columns, such asNOT ILIKEorNOT IN (...), return a 400 that lists the supported forms.
'%text%' matches where a word begins: '%cisco%' matches “Cisco Systems” and “Cisco Meraki”, never “San Francisco”.
Job Dates and Past Jobs
| Column | Description |
|---|---|
job_start_date | When the current role began, compared by month (job_start_date >= '2026-05'): new in role or promoted |
past_job_company, past_job_title, past_job_industry, past_job_end_date | One past job: conditions on these ANDed together hold for the same job (past_job_company ILIKE '%deepmind%' AND past_job_end_date >= '2026-05') |
graduation_date | Any education entry’s end date (graduation_date BETWEEN '2010' AND '2015-12') |
joined_company, joined_domain with joined_date | New hires at a named employer: a current job there started on or after the date, and no earlier job there (joined_company = 'stripe' AND joined_date >= '2026-05') |
'2026-05'), education mostly by year. A full date is read as its month.
Keep a filter on a direct column (such as job_title, company_name or city) alongside a cross-table filter. A cross-table filter over a broad population, such as everyone in a metro, checks every person’s related rows and can exceed the time limit.
Example Queries
Some of these name fields that not every plan carries, and a query naming a field outside your plan is refused with a 400: location fields (city, state) come with contact data, and seniority_level, job_function and is_decision_maker with Premium.
-- Engineers at Google in California
SELECT * FROM people WHERE company_name ILIKE '%google%' AND job_title ILIKE '%engineer%' AND state = 'california'
-- Senior leadership at large companies
SELECT * FROM people WHERE seniority_level IN ('vp', 'c_level', 'director') AND company_size = '10001+'
-- People with Python skills in New York
SELECT * FROM people WHERE skills ILIKE '%python%' AND state = 'new york'
-- Systems engineers in Sunnyvale who have worked at Cisco
SELECT * FROM people WHERE job_title ILIKE '%systems engineer%' AND city = 'sunnyvale'
AND (organization_name ILIKE 'cisco%' OR organization_name ILIKE '% cisco%')
-- Decision makers in marketing
SELECT * FROM people WHERE is_decision_maker = true AND job_function = 'marketing'
Body
Request model for Person Search: sql, es_query or filters, and the page.
Continue 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.
65536Response
Success - query executed and results returned
Person Search response: a page of matches.
For /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).