Skip to main content
Each example on this page is a Reverse Email Lookup API request, shown in cURL, the four official SDKs, and the CLI. Every version sends the same request. This page covers the lookup, its expansions, no-match handling, and lists. For a specific job, such as enriching and routing a signup, see Examples by task.

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.
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.
The response is one person record. The job at the email’s company has isMatched set to true. This example is shortened and shows a fictional person.

Get the person with their company profile

Add the company 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.
The expansion costs 1 credit for each unique company in the person’s work history, current and past. Add 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 returns 404 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 a 404 as “no match”. The CLI takes several addresses in one command.
In the CLI, -f emails.txt reads the addresses from a file, one per line. Add --format csv -o people.csv to save the results.

Examples by task

Each of these pages works through one job from start to finish, with the response and the cost.

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.