# Exact queries that run the same way every time.

> Structured filters for people and company search: title, seniority, department, location, headcount, revenue, tech stack, funding and job changes.

People search and company search take structured filters. OR inside a field, AND across fields, and a fixed definition you can rerun, audit and count for free.

## Highlights
- **Role filters.** `job_title`, plus `seniority` (c_level to entry_level) and `department` enums for level and function.
- **Employer filters.** `industry` names, `employee_range` and `revenue_range` bands, and `technologies` the company uses.
- **Location.** Full `country` names plus `state` and `city` for territory work.
- **Job changes.** `job_change` finds new hires or promotions within 60 to 365 days; `past_company` finds alumni.
- **Funding and news.** Company search adds `funding_latest_round`, `founded`, `company_type` and `news_types`.
- **Same price as search.** 1 credit per 25 results returned. Counts with the same filters are free.

## Steps
1. **Define the segment** — Build a filter object. Arrays mean OR within a field; fields combine with AND.
2. **Count it** — Send the filters to `POST /v1/count` for the free total.
3. **Search and paginate** — Call people or company search with `limit` (up to 500) and walk pages with `cursor`.
4. **Keep the ids** — Store person ids and domains to pass to email finder or enrich later.

## APIs used
| API | Endpoint | Credits | Charged | Reference |
|---|---|---|---|---|
| People search | `POST /v1/people/search` | 1 credit / 25 results | Per result returned | [docs](https://dizo.ai/docs/people-search.md) |
| Company search | `POST /v1/companies/search` | 1 credit / 25 results | Per result returned | [docs](https://dizo.ai/docs/company-search.md) |
| Count (TAM) | `POST /v1/count` | Free | Never | [docs](https://dizo.ai/docs/count.md) |
| Company enrich | `POST /v1/companies/enrich` | 1 credit | If matched | [docs](https://dizo.ai/docs/company-enrich.md) |
| Suppression list | `POST /v1/suppression` | Free | Never | [docs](https://dizo.ai/docs/suppression.md) |


## Why structured filters still matter

Plain-English search is a fast way to explore, but production prospecting needs a definition that does not drift. A territory refresh that runs every Monday, an ICP that marketing and sales have agreed on, a feature inside your own product where users pick industries from a dropdown: all of these need the same input to return the same kind of records every time. That is what structured filters are for.

Dizo has two structured search endpoints. [People search](/docs/people-search) at `POST /v1/people/search` finds professionals by role, location, employer and job changes. [Company search](/docs/company-search) at `POST /v1/companies/search` finds accounts by firmographics, technology, funding and news. Both cost 1 credit per 25 results returned, and both accept the same budget controls as every other billable call: `dry_run` for a free quote and `max_credits` as a hard ceiling.

## How filters combine

The rule is simple and worth memorising: most filters accept an array, values inside one field are combined with OR, and different fields are combined with AND. So `"job_title": ["Head of Growth", "VP Marketing"]` matches either title, while adding `"country": ["United States", "Canada"]` narrows that to people in either country. Each extra field can only shrink the result set. Filters go inside a `filters` object in the request body, next to `limit`.

That makes queries predictable. If a count comes back too large, add a field. If it comes back too small, add more values inside an existing field, such as an extra title variant, a neighbouring seniority level or the next size band. Company size and revenue are fixed bands, `employee_range` and `revenue_range`, so a span like 51 to 500 staff is written as `["51-200", "201-500"]`. Prefix a value with `-` to exclude it, for example `"-Staffing and Recruiting"` in `industry`.

Title matching is fuzzy, which helps with the many ways people write the same job. Seniority and department are fixed enums, so they are the right tool when you care about level and function rather than exact wording.

## People search filters

People search filters cover the person, their employer, their location and recent job changes. Seniority values are `c_level`, `vp`, `director`, `manager`, `senior`, `mid_level`, `entry_level` and `other`. Departments include sales, marketing, engineering, finance, hr and operations, among others. The full list of values lives in the [filters reference](/data/filters).

- **`job_title`:** relevance match on up to 10 titles; set `title_exact: true` for exact wording.
- **`seniority` and `department`:** level and function, as enums.
- **`country`, `state`, `city`:** full country names such as `"United States"`, plus state and city names.
- **`company_domain`:** restrict results to specific companies.
- **`industry`, `employee_range`, `revenue_range`, `technologies`:** describe the employer, using the 147 industry names and fixed bands.
- **`past_company`:** people who used to work at a given employer.
- **`job_change`:** people who recently moved, for example `{"type": "new_hire", "within_days": "90"}`.

## Company search filters

Company search describes accounts rather than people. You can filter by `industry` names such as `"Computer Software"` or `"Financial Services"`, `employee_range` and `revenue_range` bands, HQ `country` and `state`, `technologies` the company uses, `founded` age bands, `company_type` (public or private), `funding_latest_round` such as `["seed", "series_a"]` with `funding_latest_within_days`, and `news_types` such as expansion or leadership changes.

There is no filter that takes a customer's domain and returns similar companies. To build an account list shaped like the accounts that already buy from you, look up a handful of your strongest customers with company enrich, note the `industry`, `employee_range`, `revenue_range` and `technologies` they share, and copy those values into one company search. Add a `country` or `state` to keep the list inside your territory, then count it before you pull anything.

Company results include basic firmographics: domain, name, employee count and industry. When you need the full profile for the accounts you keep, pass the domain to company enrich at 1 credit if matched, or domain to company for 68 data points.

## Worked examples

The people search docs show a realistic growth-marketing query: `job_title` of Head of Growth or VP Marketing, `seniority` vp or director, `country` United States or Canada, `employee_range` 51-200 or 201-500, and companies using HubSpot, with `limit: 100`. The example response reports a total of 12,904 and `credits_used: 4`, because 100 results at 1 credit per 25 is 4 credits.

The company search docs show `"Computer Software"` companies in the United States in the 201-500 and 501-1000 bands that use Salesforce, `limit: 50`, returning a total of 3,310 and costing 2 credits. Pulling every one of those 3,310 accounts would be about 133 credits, since 3,310 × 0.04 is 132.4. At $0.025 per credit that is roughly $3.31. Pages hold up to 500 results, so that is seven pages.

A hypothetical combined play: search those 3,310 accounts (about 133 credits), then run people search with `company_domain` set to a batch of the domains you keep, filtered to `seniority: ["vp", "director"]` and `department: ["sales"]`. If that returns 4,000 people, it costs 160 credits. Finding emails for all of them would be at most 4,000 credits, charged only for addresses that validate, so people without a valid email add nothing to the bill.

## Paginating and storing results

Both endpoints paginate with `limit`, up to 500 per page, and `cursor`. Each response includes a `total` and a `next_cursor` for the next page, so you can walk a segment in pages and stop when you have enough. You pay per result returned, so stopping early costs you nothing extra.

Store the `id` on each person and the `domain` on each company. A person id can be passed directly to the email finder, phone finder or person enrich later, so you never pay to search for the same record twice. Send an `Idempotency-Key` header on each POST as well; Dizo does not charge twice for a retry within 24 hours.

Records on your suppression list are dropped before billing. Load current customers and open opportunities with `POST /v1/suppression` before you start, and your filters will never return them.

## Filters for agents

On the [MCP server](/mcp), the two endpoints are `dizo_people_search` and `dizo_company_search`. Agents often start with natural-language search, which returns its chosen filters in an `interpreted` block, and then switch to structured search once the user confirms the definition. That gives the model a fixed query it can rerun without reinterpreting a sentence each time.

Structured filters are also easier to audit. If an agent runs a nightly job, a log of the exact filter object tells you precisely what it bought. Pair that with a free `dizo_count` before each run so the agent can tell you how many records it is about to touch, and with `max_credits` so a broader-than-expected result cannot overspend.

## Filter recipes for common plays

Most teams reuse a small number of filter shapes. Writing them down as named objects in your code or config keeps everyone on the same definition, and makes it obvious when someone changes the ICP. A few starting points, each of which you should count before searching:

Each recipe is a starting point, not a rule. Count the object once per country, seniority level or `employee_range` band, look at where the volume sits, and tighten it until the total matches the size of list your team can actually work in a cycle. Every count costs nothing, so iterate freely.

- **New-leader outreach:** `seniority: ["vp", "c_level"]`, `department: ["marketing"]`, `job_change: {"type": "new_hire", "within_days": "90"}`.
- **Tech-stack displacement:** company search with `technologies` set to the tool you replace, plus an `employee_range` list.
- **Recently funded:** company search with `funding_latest_round: ["series_a", "series_b"]` and `funding_latest_within_days: "180"`.
- **Named-account coverage:** people search with `company_domain` set to your target list and `department` set to the buying function.
- **Callable list:** any people filter, then the phone finder on the people you keep, skipping any number flagged `dnc`.

## Edge cases and pitfalls

Title matching is relevance-based, which is helpful but broad. "Head of sales" may pull in adjacent roles. When precision matters, pair `job_title` with `seniority` and `department` so a matching title at the wrong level drops out, or set `title_exact: true`. Conversely, if a count looks surprisingly small, check whether one AND field is cutting more than you expected; removing it and counting again isolates the culprit at no cost.

Company-size filters describe the employer, not the person, so a people search with `employee_range: ["51-200", "201-500"]` returns people at companies of that size. Technology filters match what Dizo has detected at the company, so treat them as a strong signal rather than a complete inventory, and spot-check a sample with company enrich if a play depends on it. Search filters do not tell you whether a person has an email or phone; that comes from the lookup, which is charged only if found.

## When to use natural language instead

If you are exploring a market for the first time, start with [natural-language search](/features/natural-language-search). You do not need to know the industry names or which seniority bucket a title falls into; the interpreted block shows you. Once a query is worth repeating, copy those values into a structured filter object.

If you only need totals, use [free TAM counts](/features/free-tam-counts), which accept the same filters and return a total without charging anything. `dz_test_` keys let you build against synthetic data now. [Sign up](/signup) with a work email to get a live key and 250 free credits, with no card.

## FAQ

### Do multiple values in one filter mean AND or OR?
OR. Values inside a single field match any of them, and separate fields are combined with AND. Adding a field narrows results; adding values to a field widens them.

### What seniority levels can I filter on?
`c_level`, `vp`, `director`, `manager`, `senior`, `mid_level`, `entry_level` and `other`. Combine seniority with `job_title` when you want a specific role at a specific level.

### How do I find companies like my best customers?
Look up a few strong customers, then copy their shared `industry`, `employee_range`, `revenue_range` and `technologies` values into a company search. Add `country` or `state` to keep the list in your territory, and count it free before you pull results.

### Can I only return people who have an email or phone?
No. Search has no contact-availability filter. Searching costs 1 credit per 25 results, and the email or phone is a separate lookup billed only when found, so people without contact data cost nothing beyond the search.

### What does structured search cost?
People search and company search both cost 1 credit per 25 results returned, the same as natural-language search. Counts with the same filters are free.

### Where is the full list of filter values?
The filters reference at /data/filters lists every structured filter and its accepted values. The people search and company search docs show each parameter with an example request.
