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