Skip to main content
Each example on this page is one Company Search API request, shown in cURL, the four official SDKs, and the CLI. Every version sends the same request.

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.
Searches cost credits for every company returned. To try any query for free, send the same filter, semantic, or lookalike fields to the count endpoint, as in Size a market for free.

Build a prospect list with filters

Find SaaS companies in the United States and Canada with 51 to 500 employees. A filter search costs 1 credit per company returned.
An array of countries or employee ranges matches any of the values. See Company Search API filters for every filter.

Target companies by technology

Find companies outside the United States that use Shopify and were founded in 2020 or later.
notIn excludes values, and a range with only min has no upper limit. Look up technology names with technology autocomplete.

Find recently funded companies

Find companies with a Series A or Series B round whose latest funding was in 2025 or later, with at least $10 million in funding. The financial expansion adds funding details to each company, so this search costs 2 credits per company.

Find fast-growing companies

Find fintech companies whose headcount grew at least 20% over the last year and that have at least 10 people in engineering.
A growth ratio of 0.2 means 20%. Workforce filters use underscore department names, such as engineering_technical.

Describe the companies you want

Semantic search takes a plain-language description. It costs 2 credits per company returned. This example adds a filter to keep the results in the United States.
By default, the API also infers attributes such as location and size from your description. The interpretation field in the response shows what it inferred. See Semantic search options.

Find lookalikes of your best customers

Lookalike search finds companies similar to the seed domains you send. It costs 5 credits per company returned. You can send up to 10 seeds and narrow the results with filters.
The response includes a scores object keyed by company ID. Scores are not probabilities. Keep the companies in the order returned.

Size a market for free

The count endpoint takes the same query as a search and costs nothing. Use it to size a market, or to check a query before you pay for results.
total is the number of companies that match. count is the number your plan can access.

Fetch every result

A search returns one page of up to 100 companies. The SDK helpers follow the cursors for you and fetch pages as you read them.
You are charged for each page as it is fetched. Keep the query unchanged between pages. A cursor expires 24 hours after the first page. In the CLI, --all counts the matches first, then fetches exactly that many. Use --limit 500 to stop after 500 companies.

Export a large search to CSV

An export runs the search in the background and stores the results as one file. It costs the same per company as the search itself.
limit is the most companies 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 companies already exported stay downloadable.

Company Search API

Search modes, pagination, pricing, and limits.

Company Search API filters

Every filter, with matching rules and accepted values.

Company schema

Every field in a company record.

Credits

What each search and expansion costs.