> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blitz-api.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> BlitzAPI is the B2B Data API for GTM Builders: company and people search, enrichment, verified emails, US phone numbers and job postings behind one API key.
> Its data infrastructure holds 1B+ records: 550M+ professional profiles, 65M+ companies, 65M+ verified emails, 100M+ job postings and 45M+ US phone numbers.
> Pricing: Start $99, Scale $499, Build Your Infra from $999; every endpoint on every plan; fair use policy in records per month; rate limits per endpoint. Details: https://docs.blitz-api.ai/guide/concepts/pricing
> Company and product facts: https://www.blitz-api.ai/llms.txt

# Keyword Filters: Include, Exclude, Exact Match

> How include and exclude keyword filters work in BlitzAPI search: OR'd phrases, whole-word matching in any order, and [bracket] syntax for exact match.

> **Agents & LLMs**: a Markdown version of this page is available by appending `.md` to the URL, and the full documentation index is at [llms.txt](https://docs.blitz-api.ai/llms.txt).

`.include` and `.exclude` filters are used as keyword search filters.
The phrases in one array work as OR filters. Inside one phrase, **all words must appear** in the value, in any order (see [How a phrase matches](#how-a-phrase-matches)).

> [accordion] Simple Example
>
> For example, if you want to look for "Director" in the search results, you can use the following filter:
>
> ```json theme={null}
> {
>   "include": ["Director"],
>   "exclude": []
> }
> ```
>
> ```json theme={null}
> [
>   "Director",
>   "Director of Sales",
>   "Director of Marketing",
>   "Director of Product",
>   ...
> ]
> ```

> [accordion] Advanced Example
>
> ```json theme={null}
>   {
>     "include": ["Director", "Manager"],
>     "exclude": ["Sales", "Marketing", "Product"]
>   }
> ```
>
> Giving:
>
> ```json theme={null}
> [
>   "Director of IT",
>   "Director of Finance",
>   "Engineering Manager",
>   "Finance Manager",
>   ...
> ]
> ```
>
> This will result in the following search:
>
> ```mermaid theme={null}
> graph LR
> Q[Query]
>
> subgraph Includes[Include OR branches]
>   I1[Director]
>   I2[Manager]
> end
>
> E[Exclude on every branch:<br/>Sales, Marketing, Product]
>
> Q --> I1
> Q --> I2
>
> I1 --> D1[Director of IT]
> I1 --> D2[Director of Sales]
> I1 --> D3[Director of Marketing]
> I1 --> D4[Director of Finance]
>
> I2 --> M1[Engineering Manager]
> I2 --> M2[Sales Manager]
> I2 --> M3[Marketing Manager]
> I2 --> M4[Finance Manager]
>
> E -. remove .-> D2
> E -. remove .-> D3
> E -. remove .-> M2
> E -. remove .-> M3
>
> classDef excluded fill:#ffecec,stroke:#ff4d4f,color:#a8071a,stroke-width:1px;
> class D2,D3,M2,M3 excluded;
> ```

## How a phrase matches

A phrase with more than one word is not searched as a fixed string. These rules apply to every `include` / `exclude` value without brackets, for example job titles in [Find People](https://docs.blitz-api.ai/guide/concepts/find-people.md) and [Waterfall ICP](https://docs.blitz-api.ai/guide/concepts/waterfall-logic.md):

* **All words must appear.** `"Head Marketing"` needs both `head` and `marketing` in the title.
* **The word order is free.** `"Head Marketing"` matches `Marketing Head` as well as `Head of Marketing`.
* **Words match as whole words.** `"Demand Gen"` does not match `Demand Generation`, and `"grow"` does not match `growth`.
* **Nothing is stemmed or expanded.** There are no synonyms, no abbreviation expansion (`VP` is not `Vice President`) and no stop-word removal, so `of` counts as a word when you write it.
* **Case and accents are ignored.** `"Céo"` and `"ceo"` are the same word.
* **Hyphens and punctuation split words.** `Co-CEO` is read as `co` + `ceo`, so the phrase `"CEO"` also matches it.
* **The phrases in one array are OR'd.** A value matches as soon as one of the phrases matches.

| Phrase | Matches | Does not match |
| :- | :- | :- |
| `"Head Marketing"` | `Head of Marketing`, `Marketing Head`, `Head, Marketing`, `Head of Product Marketing` | `Head of Sales`, `Marketing Manager` |
| `"Head of Marketing"` | `Head of Marketing`, `Head of Product Marketing` | `Marketing Head`, `Head, Marketing` (no `of`) |
| `"Demand Gen"` | `Demand Gen Manager`, `VP Demand Gen` | `Demand Generation Manager` |
| `"VP Sales"` | `VP of Sales`, `Sales VP`, `Senior VP Sales` | `Vice President of Sales`, `SVP Sales` |

> [!TIP]
>
> To cover the variants of a title, list each form as its own phrase, for example `["VP Demand Gen", "VP Demand Generation", "Vice President Demand Generation"]`. Phrases in one array are OR'd, so any of them can match.

## Exact Match Syntax

On top of the regular keyword search, you can also use the exact match syntax on these fields only:

* `people.job_title` in [Find People](https://docs.blitz-api.ai/guide/concepts/find-people.md) and TAM By People, including the LinkedIn headline when `include_linkedin_headline` is on.
* `job_title` in [Employee Finder](https://docs.blitz-api.ai/guide/concepts/employee-finder.md).
* `include_title` and `exclude_title` of each tier in [Waterfall ICP](https://docs.blitz-api.ai/guide/concepts/waterfall-logic.md).
* `job.title` in Search Jobs, Search Company Jobs and TAM By Jobs.
* `company.hq.city` and `company.hq.state` in Search Jobs and TAM By Jobs.

On the other keyword fields, such as `company.name`, `keywords`, or `company.hq.city` in Find People and Company Search, brackets do nothing: `"[Sales]"` is searched as the keyword `"Sales"`. On exact-value filters such as `job.field` and `job.location.city` in the jobs endpoints, do not use brackets: the value is compared with them and matches nothing.

Wrap a value in **square brackets** to switch to **exact match**: `"[CEO]"` matches only values whose lowercased, unaccented form equals `"ceo"`.

| Value | Behavior | Matches ✅ | Does **not** match ❌ | Case sensitive | Accent sensitive |
| :- | :- | :- | :- | :- | :- |
| `"CEO"` | Keyword search (default) | `CEO`, `Co ceo`, `ceo Office` | Any value without the word `ceo` | No | No |
| `"[CEO]"` | Exact (case- and accent-insensitive) | `CEO`, `ceo`, `Céo` | `Co ceo`, `CEO Office` | No | No |

The bracket syntax works in both `include` and `exclude`, and you can mix it in the same array: for example, `["[CEO]", "Founder"]` means *exact `"ceo"` OR keyword `"Founder"`*.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.