Skip to main content
Each example on this page is one Semantic 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.
A semantic search costs 2 credits for every company returned. To check a description for free first, see Count the matches for free.

Describe the companies you want

Write what the companies do in plain language. You do not need industry codes or keyword lists.

See what the API inferred from your query

By default, the API reads attributes such as location and size from your description. This query returns only companies in Turkey and ranks companies categorized as SaaS higher.
interpretation.filter holds the filters that were applied, and interpretation.boost holds the attributes that only affect ranking. See How your query is interpreted.

Combine a description with filters

Add exact criteria in filter. This search finds dental software companies in the United States and Canada with 11 to 200 employees.
A filter you send takes precedence over a value inferred from the description. Every company search filter works with a semantic search.

Turn off inference

Set autoFilter to false when you want the description used only for semantic matching. The results are then limited only by the filters you send.

Give semantic similarity more weight

weight takes a number from 0 to 1. Larger values make semantic similarity count more in the ranking.

Count the matches for free

The count endpoint takes the same semantic and filter fields as a search and costs nothing. Its response also includes the interpretation, so you can check how a description is read before you pay for results.
count is the number of companies your plan can access. For a semantic query, total describes the pool of candidates the semantic search draws from.

Export a semantic 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.

Find people at companies that match a description

Put the description in company.semantic on a people search. This request finds executives at companies that build AI tools for hospitals. It costs 2 credits per person.
This search covers people at the 1,000 best-matching companies. See the People Search API for the person filters.

Semantic Company Search API

Query interpretation, pricing, limits, and V1 mapping.

Company Search API filters

Every filter you can add to a semantic search.

Similar Companies API examples

Find companies like ones you already know.

Credits

What each search and expansion costs.