People Search Filters: How Boolean AND/OR Logic Works
In filter-based people search, values in one filter are OR'd and different filters are AND'd. How that differs from boolean strings, and how to debug bad lists.
In filter-based people search, the logic is fixed by the system rather than written by you. In LeadMagic People Search, multiple values inside one filter are OR'd and different filters are AND'd: three job levels and two countries mean any of those levels AND either of those countries. Boolean search works differently. You write one string with AND, OR, NOT, and parentheses, and the tool parses it against a text field. The same intent can return different lists in each model, and the failure mode is a plausible list of the wrong people, not an error.
This guide covers the two search models, exactly how AND and OR combine in the People Search API, the filters that do most of the work, and a four-step debug routine for a list that looks wrong.
It's part of the list building hub. For the account side of the same query, see firmographic data and technographics. For cost and volume at scale, read Unlimited Search: what it is and what it isn't.
Short answer
In filter-based people search, values inside one filter are combined with OR and separate filters are combined with AND. LeadMagic People Search follows that rule inside people_filters and has no boolean syntax or exclusion filters. An OR that spans two different filters can't be written as one request, so run two searches and merge the results.
Boolean search vs filter-based search
Search tools for people data fall into two families. Telling them apart is the first diagnostic step when a query misbehaves.
Boolean text search takes one string. You write operators into it and the system evaluates the string against some text field. As of October 2026, LinkedIn's help center documents AND, OR, NOT, quotation marks, and parentheses for its main search bar, with precedence running quotes, parentheses, NOT, AND, then OR. Its Sales Navigator help lists the same operators for the company, title, and keyword fields. The appeal is expressiveness: you can nest conditions that no fixed set of filters can express.
Structured filter search takes named parameters. Instead of one string, you send fields such as job level, department, country, and employee range, each with its own values. The system defines how they combine. This is how most prospecting APIs work, including LeadMagic People Search.
| Boolean string | Structured filters | |
|---|---|---|
| Input | One text string | Named fields with value arrays |
| Who writes the logic | You | The system |
| Cross-field OR | Yes, with parentheses | No, split into two requests |
| Typical failure | Misparsed or ignored operator | Fuzzy field, wrong key, over-narrow AND |
| Reproducibility | Depends on the parser and field | Same request, same rules |
Hybrids exist too: a filter interface with a free-text box for one or two fields. Those are the hardest to debug, because the rules for combining the text box with the filters are rarely documented.
How AND and OR combine in LeadMagic People Search
The People Search reference states the rule for people_filters directly: multiple values in one array are OR'd, and different keys in the same request are AND'd.
So this request:
{
"company_filters": {
"country_codes": ["DE"],
"industries": ["Software Development"],
"employee_ranges": ["51 to 200", "201 to 500"]
},
"people_filters": {
"contact_job_level": ["VP", "Director"],
"contact_job_function": ["Sales"]
},
"limit": 25
}reads as:
people at companies matching company_filters
AND (contact_job_level = VP OR Director)
AND (contact_job_function = Sales)company_filters narrows the employers using the supported company criteria on People Search. Its supported set differs from standalone Company Search. country_codes here means company headquarters. Office-presence geography is unavailable; do not replace a presence requirement with HQ without checking whether that meets your brief. Every request needs either a company identifier (company_domain, company_name, or a company profile URL) or usable company criteria.
That default covers most prospecting intents. It also has a hard edge: there is no OR across different keys.
Take the intent VPs of Sales in Germany, or Marketing Directors anywhere. In boolean syntax that's one string with a parenthesized OR. In an array-OR, key-AND model it can't be one request, because the OR spans level, function, and geography at once. Run two requests and merge:
{
"company_filters": { "industries": ["Software Development"] },
"people_filters": {
"contact_job_level": ["VP"],
"contact_job_function": ["Sales"],
"contact_country_code": ["DE"]
}
}{
"company_filters": { "industries": ["Software Development"] },
"people_filters": {
"contact_job_level": ["Director"],
"contact_job_function": ["Marketing"]
}
}Then deduplicate on the person's profile URL (contact_linkedin_url in the response) before enrichment. When an intent won't fit one request, it almost always contains an OR that crosses keys. Decompose it rather than hunting for a cleverer filter.
There's also no NOT. The People Search reference documents no exclusion filters and no AND/OR/NOT keywords or parentheses. A free-text query field exists, but the reference doesn't describe boolean operators for it, so don't rely on them. To leave out existing customers or a title you don't want, remove those rows after the search and before you spend credits on enrichment.
Which people filters change your list most
A few filters do most of the work.
Job level can reduce a long title list. contact_job_level is a normalized seniority field with values such as VP, Director, and C-Team. contact_job_title matches title phrases and supported abbreviation or related-title variants. Companies word senior roles differently, so a level filter can help when maintaining a title list would be impractical. Classification can be missing or wrong, including across languages; it does not prove purchasing authority. Use titles when you need a role that level and department do not express, such as Product Manager. Bracketed text does not enable exact title matching.
Department is the second axis. contact_job_function accepts a short chip such as Sales, Marketing, or Finance, or the full standard label. Matching is exact after the chip expands, and response rows always return the full label:
| You send | The response returns |
|---|---|
Sales | Sales & Business Development |
Marketing | Advertising & Marketing |
Finance | Finance & Accounting |
Customer Success | Customer/Client Service |
If you compare the response against your request downstream, compare against the label, not the chip.
Level plus department is a starting audience. A level filter AND a department filter can identify senior people in the relevant function. min_seniority: 3 includes Director, VP, and C-Team; 4 narrows to VP and C-Team. The score ranges from 0 to 5 and ranks roles, not decision-making certainty. Inspect returned titles before treating that audience as the people who own a buying decision.
Choose the person before finding contact details. Search returns professional profiles without email or phone availability filters or indicators. After selecting a person by role and company, call Email Finder or Mobile Finder separately. Enrichment has its own charges; select the audience before making those requests.
Residence, job location, and employer HQ are different fields. contact_country_code, contact_city, and their siblings describe the person’s residence. contact_job_country_code, contact_job_city, and other work-location fields describe the recorded current job. Company country_codes describes HQ. A person living in Germany can hold a US-based job at a UK-headquartered employer. Selecting more than one family requires each condition to match; it does not widen the search to either location.
How to debug a people search that returns the wrong list
Four checks, in order.
Check the response for ignored keys
Read ignored_filters and warnings first. The API can accept a recognized legacy key that the current data cannot support. Historical titles, follower counts, and quality-score floors are examples. A successful response does not mean every requested criterion narrowed the list. Remove or replace unapplied criteria using the supported filter tables before changing values.
Ask which kind of field the match ran against
Title matching can expand supported abbreviations and related titles. contact_job_level and contact_job_function match exact normalized values; the classifications themselves may still be incomplete or wrong. Check the title and classification together instead of assuming that a returned row establishes the intended role.
Look for an over-narrow AND
Every extra key narrows the set. If you get far fewer people than expected, one key usually cut the set down to almost nothing. A common case is a person-level country filter combined with a level filter at companies whose leadership sits in another country.
Check pagination before you trust duplicates or gaps
If you page with offset, the sort re-runs on each page and ties can reorder, so rows repeat or vanish. Use the cursor instead (next section). A "the API returned duplicates" report is usually an offset artifact.
Build the query one key at a time and inspect the returned attributes and warnings. count and returned_count describe the current page, not the entire matching audience. When the page is full, a new filter may narrow the audience without changing that count. Use has_more and the cursor to continue; do not infer market size from one page.
Pagination, page size, and cost
Each response returns has_more and next_cursor. To get the next page, send next_cursor back unchanged as cursor, with the same filters and limit:
{
"company_filters": {
"country_codes": ["DE"],
"industries": ["Software Development"],
"employee_ranges": ["51 to 200", "201 to 500"]
},
"people_filters": {
"contact_job_level": ["VP", "Director"],
"contact_job_function": ["Sales"]
},
"limit": 25,
"cursor": "<next_cursor from the previous response>"
}| Item | Value |
|---|---|
| Endpoint | POST /v3/people/search |
| Default page size | 25 (limit); cursor pages are capped at 50 |
| Pagination | cursor from next_cursor; offset is deprecated |
| Cost on Essential and Growth | 1 credit per returned person; no results costs nothing |
| Cost on Professional and Ultimate | 0 credits at 5 or 10 requests per second, within a shared fair-use ceiling of 13,333 searches a day across People, Company, and Job Search |
| Emails and mobiles | Never returned by search; billed separately when you enrich |
The zero-credit lane on Professional and Ultimate returns pages of up to 25 people, and it applies to the canonical /v3/people/search path (plus /v3/person/search and the legacy /v1 and /v2 search routes). The other route aliases run as ordinary metered calls. The /unlimited page and pricing have the plan details. You may use People Search results for your own list building, client services, resale, and embedded products under the data-use rights in the terms. Published limits, fair use, and applicable privacy and outreach requirements apply.
Why the same intent gives different lists in different tools
With the two models clear, cross-tool differences stop being mysterious.
Operators differ. Support for NOT, parentheses, wildcards, and nesting isn't uniform. LinkedIn's help center, for example, says it doesn't support asterisk wildcards. A parser that ignores what it doesn't support quietly runs a different query from the one you wrote.
The matched field differs. The same string evaluated against a headline, a current title, or full profile text returns three different sets. This is the biggest single source of cross-tool variance, and interfaces rarely show it.
Normalization differs. Whether level and department are normalized, and into which taxonomy, decides whether "VP" catches "Vice President" and whether "Sales" catches "Business Development." In LeadMagic, the Sales chip expands to Sales & Business Development.
Freshness differs. Two systems with identical logic still diverge if one updated the underlying record more recently.
None of this makes one model right. A boolean string in a search box suits one-off exploration. Structured filters suit repeatable list building by API, where the same request should return the same set next month.
Build a list you can verify
In LeadMagic People Search, values inside one people_filters array are OR'd, different keys are AND'd, and there's no boolean syntax or exclusion filter. Start with supported company criteria, add role and department criteria, inspect warnings and sample titles, page with cursor, and split any OR that crosses keys into two requests.
Build the list in Lead Finder, or call the API directly.
Build your next list with People Search
Plans from $99/mo. People Search is 0 credits on Professional and Ultimate within a 13,333-a-day fair-use ceiling; verified emails cost 1 credit each.
Sources and review
Topic path
Go deeper on List Building
Build accurate B2B prospect lists, TAM, Sales Navigator exports, and database alternatives.
Keep reading
Technographics is data about the software a company runs. Here's how it's collected, where it's wrong, and how to build a tech-stack account list by API.
Firmographic data is company-level information like industry, headcount, revenue, and location. Stack it as filters to get a countable TAM and a credit budget.
How to build a B2B lead generation stack: prospecting, enrichment and verification, outreach, automation, and CRM sync.
