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.
The email addresses in these examples use a reserved domain and match no one. Replace them with real work email addresses.
Find the person behind an email
Send a work email address. The response is the person’s record, with their name, current position, and LinkedIn URL. A lookup costs 5 credits when a person is returned.Get the person with their company profile
Add thecompany expansion to replace the short company summary in experiences with the standard company profile. The job at the email’s company is the one where isMatched is true.
education to expand for the person’s schools and degrees, at 1 more credit.
Handle an email with no match
When no person matches the address, the API returns404 and charges nothing. The SDKs raise a not-found error, and the cURL example prints the status line with -i.
Look up a list of emails
The lookup takes one address per request, so loop over your list and treat a404 as “no match”. The CLI takes several addresses in one command.
-f emails.txt reads the addresses from a file, one per line. Add --format csv -o people.csv to save the results.
Related pages
Reverse Email Lookup API
How the match works, expansions, pricing, and limits.
Person schema
Every field in a person record.
People Search API examples
Find people by role, employer, or description.
Credits
What each lookup and expansion costs.