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.
Enrich a company by domain
The domain is the preferred way to identify a company. A successful enrichment costs 1 credit.null, so read them defensively.
Add technologies and headcount
Theexpand parameter adds paid data to the record. Each expansion costs 1 extra credit, so this request costs 3 credits.
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.domain:
linkedinId, twitterUrl, facebookUrl, instagramUrl, or youtubeUrl. This method costs 1 credit when a company is returned. When no company matches, it returns 404 and costs nothing.
Enrich up to 50 domains in one request
A batch returns one item per domain, in the order you sent them. Check each item’sstatus: only found items include a company and cost credits.
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. SetwaitForEnrichment 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.
404, and the cURL example prints the status line with -i. The 404 body is a problem document, sent as application/problem+json. Ask again later to get the company once it has been enriched.
Get a company by ID
Every company record has anid. 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.
expand parameter works here too.
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
402unless it covers every domain. Credits are not reserved, and you are charged as results complete. - Each result has the input
domain, asuccessflag, and either thecompanyor anerror. - Results download as JSON, NDJSON, or CSV. The SDK
streammethods read NDJSON one record at a time, which suits large jobs. - In the CLI,
-f domains.txtreads the domains from a file, one per line.
Examples by task
Each of these pages works through one job from start to finish, with the response and the cost.Related pages
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.