ยท Sales data ยท 2 min read

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

Learn how to get a work email address using name and company info with pipe0 API

Florian, Founder

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 people:workemail:waterfall@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://api.pipe0.com/v1/pipes/run", {
  method: "POST",
  headers: {
    "Authorization": `Bearer <API_KEY>`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    pipes: [{ pipe_id: "people:workemail:waterfall@1", providers: ["leadmagic", "prospeo", "amplemarket", "hunter"] }],
    input: [{id, first_name: "<FIRST_NAME>", last_name: "<LAST_NAME>", company_website_url: "<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/docs/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

Next-gen enrichment & search.

Build revenue systems that scale. For humans, agents, and apps. Replace tools like Clay, n8n, Hightouch, etc.

selectedRun
InputHDFind work email
NameWork email
Ada ByrneHa.byrne@acme.io
Leo CostaDl.costa@northbeam.co
Mia ChenRunning...
New empty row
Using pipe0 at work?