Skip to main content
Each example on this page is one People Search API request, shown in cURL, the four official SDKs, and the CLI. Every version sends the same request. This page covers the filters, the company query, expansions, counting, exports, and the work email lookup. For a specific job, such as finding decision makers or sourcing candidates, see Examples by task.

Before you start

Create an API key at app.companyenrich.com/access-keys. The SDK examples assume a client created like this, with the key in the COMPANYENRICH_API_KEY environment variable:
In the cURL examples, replace YOUR_API_TOKEN with your key.
A people search costs 2 credits for every person returned. To try any query for free, send the same filter, semantic, or company fields to the count endpoint, as in Size an audience for free.

Find decision makers at a company

Find vice presidents and C-level executives in sales who currently work at Stripe.
domain, seniority, and department match a person’s current job. An array matches any of its values. The response holds the matching people and a cursor for the next page. This example is shortened and shows a fictional person, as do the other responses on this page. Every search on this page returns the same shape.

Find people by job title

Find heads of growth at SaaS companies with 51 to 200 employees. The position filter matches phrases in the current job title, and the company field narrows the search to the kind of company they work at.
Look up common titles with position autocomplete. See Company query for what company accepts.

Find recent hires

Find people who joined Notion on or after 1 August 2026. A recent start date is a common signal for outreach.
In the CLI, --joined-after 90d means the last 90 days. Use currentPositionStartDate to find people who changed role at the same company.

Find former employees of a company

Find founders in the United States who used to work at Google. Filters inside pastExperience match a previous job, and people who still work at the company are left out.

Find people in a city or state

The city and state filters narrow a person’s location below the country. Both take CompanyEnrich IDs, not names, so look up the ID first. Geo lookups are free.
The lookup returns every city whose name contains the query, so check the name and stateId of each result before you pick one. This response is shortened, and its IDs are illustrative:
Then send the ID in filter.city. This search finds engineering VPs and directors located in that city. Replace 125634 with the ID from your own lookup.
For a whole state, look up its ID with POST /v2/geo/states and send it in filter.state. An array of IDs matches people in any of those places. Both filters match only people whose reported location has been resolved to that city or state; people whose location is not resolved yet match neither. See Location filters for exclusions. The CLI has no flag for a person’s city or state, so they go in --body, and the other flags are applied on top. --company-city and --company-state are different filters: they match where the person’s company is headquartered. The SDKs send filter to the API as written, so city and state work in every SDK version. Version 1.0.1 of the JavaScript and Python SDKs was published before these filters existed, so a type checker may report them as unknown keys there.

Describe who you want

Semantic search takes a plain-language description. The API turns it into person filters and a description of the companies those people work at.
The interpretation field shows what the API inferred. A query it cannot infer any filters from is rejected, so include something concrete, such as a role or a country. See Semantic search options. A place named in the description is matched at country level. To keep the results in one city or state, add filter.city or filter.state to the same request, as in Find people in a city or state.

Find people at companies like your customers

Find executives at companies similar to two seed companies. The company.lookalike query picks the companies, and filter picks the people.
This search covers people at the 1,000 companies most similar to the seeds. It still costs 2 credits per person.

Add education and company profiles

The education expansion adds each person’s schools and degrees. The company expansion replaces the short company summary in experiences with the standard company profile.
This request costs 3 credits per person, plus 1 credit for each unique company on the page. A page can expand at most 500 unique companies, so keep pageSize small when you expand company.

Size an audience for free

The count endpoint takes the same query as a search and costs nothing.
The response has two numbers. These values are illustrative.
total is the number of people who match. count is the number your plan can access.

Export a people search to CSV

An export runs the search in the background and stores the results as one file. It costs the same per person as the search itself.
limit is the most people to export. It can be up to 1,000,000, and no more than your plan’s search limit. If your credits run out partway, the export stops and the people already exported stay downloadable.

Get a work email for a person you found

Email addresses are not part of a search result. Look one up with the person’s id. A lookup costs 10 credits only when it finds an email your account has not accessed before. The ID in this example is a placeholder that belongs to no one. Replace it with the id of a person from your own search results.
status is found, not-found, unavailable, or pending. When it is found, the response includes email and a certainty level. See Email lookup status, and Find a person’s work email for more ways to use the lookup.

Examples by task

Each of these pages works through one job from start to finish, with the response and the cost.

People Search API

Search methods, pagination, pricing, and limits.

People Search API filters

Every filter, with matching rules and accepted values.

Person schema

Every field in a person record.

Credits

What each search, expansion, and email lookup costs.