Skip to main content
Each example on this page is one Company Enrichment 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.

Enrich a company by domain

The domain is the preferred way to identify a company. A successful enrichment costs 1 credit.
The response is a full company record. Fields with no known value are omitted or null, so read them defensively.

Add technologies and headcount

The expand parameter adds paid data to the record. Each expansion costs 1 extra credit, so this request costs 3 credits.
The five expansions are financial, keywords, naicsCodes, technologies, and workforce. The company schema lists the fields each one returns.

Enrich by name and LinkedIn URL

When you do not have a domain, identify the company by its name or a social profile. When you send several properties, all of them must match.
You can also send linkedinId, twitterUrl, facebookUrl, instagramUrl, or youtubeUrl. This method costs 1 credit when a company is returned, and also when the properties cannot be resolved to a company domain.

Enrich up to 50 domains in one request

A batch returns one item per domain, in the order you sent them. Check each item’s status: only found items include a company and cost credits.
The other statuses are not-found, invalid-domain, and pending. Duplicate domains are enriched once, and domains that resolve to the same company are charged once.

Use stored data only

By default, the API enriches a company it has not stored yet and waits for the result. Set waitForEnrichment to false to get an immediate answer from stored data instead. A company that is not stored yet returns 404, costs nothing, and is scheduled for background enrichment when eligible.
The SDKs raise a not-found error for a 404, and the cURL example prints the status line with -i. Ask again later to get the company once it has been enriched.

Get a company by ID

Every company record has an id. Store it, and you can fetch the same company later without resolving the domain again. This costs 1 credit, and a missing ID returns 404 at no charge.

Enrich thousands of domains in the background

A bulk job enriches up to 10,000 domains in the background. You create the job, wait for it to finish, then read the results.
  • The API checks your balance when you create the job and returns 402 unless it covers every domain. Credits are not reserved, and you are charged as results complete.
  • Each result has the input domain, a success flag, and either the company or an error.
  • Results download as JSON, NDJSON, or CSV. The SDK stream methods read NDJSON one record at a time, which suits large jobs.
  • In the CLI, -f domains.txt reads the domains from a file, one per line.

Company Enrichment API

Lookup methods, parameters, pricing, and limits.

Company schema

Every field in a company record.

Company Search API examples

Find companies when you do not have a list yet.

Credits

What each lookup and expansion costs.