Before you start
Create an API key at app.companyenrich.com/access-keys. The SDK examples assume aclient created like this, with the key in the COMPANYENRICH_API_KEY environment variable:
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. Theposition filter matches phrases in the current job title, and the company field narrows the search to the kind of company they work at.
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.--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 insidepastExperience match a previous job, and people who still work at the company are left out.
Find people in a city or state
Thecity 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.
stateId of each result before you pick one. This response is shortened, and its IDs are illustrative:
filter.city. This search finds engineering VPs and directors located in that city. Replace 125634 with the ID from your own lookup.
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.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. Thecompany.lookalike query picks the companies, and filter picks the people.
Add education and company profiles
Theeducation expansion adds each person’s schools and degrees. The company expansion replaces the short company summary in experiences with the standard company profile.
pageSize small when you expand company.
Size an audience for free
The count endpoint takes the same query as a search and costs nothing.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’sid. 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.Related pages
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.