Skip to Content
Find a Work Email Address by Name and Company via API: Easy Guide

Find a Work Email Address by Name and Company

In this blog post, we explore how you can generate a work email address via an API endpoint. For this, we use pipe0 .

Pipe0 is a framework for data enrichment. To enrich data with pipe0 you use enrichment pipes. There are several pipes available to find a work email address via API. For this blog post, we’re using the pipe PeopleGetWorkEmailWaterfall@1 .

This pipe relies on fetching contact data from multiple sources as a waterfall.

The cost per invocation is ~13ct. per work email address.

Prerequisites

πŸ™†πŸΌβ€β™‚οΈ Go to pipe0  and create an account
πŸ”‘ Create an API Key

Request object

const id = 1; const result = await fetch("https://pipe0.com/api/v1/run", { method: "POST", headers: { "Authorization": `Bearer <YOUR_API_TOKEN>`, }, body: JSON.stringify({ pipes: [{ name: "PeopleGetWorkEmailWaterfall@1", providers: ["findymail", "dropcontact"] }], input: [{id, firstName: "<FIRST_NAME>", lastName: "<LAST_NAME>", companyWebsiteURL: "<COMPANY_URL>"}] }) }); const response = await result.json(); // [NOT SHOWN] Poll the "/check" endpoint until the task status is "completed" // Learn more: https://www.pipe0.com/resources/documentation/pipeline#async-processing // Print email console.log(response.records[id].fields["workEmail"].value);

Advantages of using providers in a waterfall

We used a waterfall enrichment. Waterfall enrichments are great for retrieving email addresses via API. They are great since we don’t fail for failed lookups. This way, we can try to get the email address from the first provider. If the provider is able to find the contact information, we return it. If it does not, we go to the second provider.

Using pipe0

In this example we used pipe0  instead of querying providers directly. Using pipe0 has many advantages:

  • Use 50+ enrichment providers with one subscription
  • Combine multiple enrichments in one API call
  • Up-to-date API documentation and best-in-class DX
  • Combine data enrichment, web scraping, and AI for powerful solutions
logo-dark
Add clay-like 🌈 data enrichment to your application. Fast.
Last updated on