Skip to Content
Won.dev
DocumentationAPI reference

Enrich your own list

Turn a list of company websites into profiles, buyers and verified work emails, check the addresses you have, and run the whole list in the background.

You already have companies: a trade fair's exhibitors, a CRM export, a sheet of websites. This tutorial fills in one of them, step by step, then runs the same steps for the whole list. Each step costs only when it finds something, so a row with nothing to find costs nothing.

Before you start. A test key runs every step on a made-up company and costs nothing. Each step names its price; for one company the whole run costs at most $0.118, added up below. Your list needs the company's website for each row; a name, a LinkedIn page or one work email at the company also works.

1. Fill in the company

POST /enrich/companies/find turns a website into a profile: what the company does, its industry, size, location and LinkedIn page. include: ["channels"] adds the shared mailboxes, phone numbers and WhatsApp contacts it publishes.

curl https://api.won.dev/v1/enrich/companies/find \
  -H "Authorization: Bearer $WON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "domain": "northfield-home.example", "include": ["channels"] }'

The answer, cut to data:

{
  "data": {
    "company": {
      "name": "SAMPLE Northfield Home Furnishings",
      "domain": "northfield-home.example",
      "description": "Sample importer and retailer of upholstered furniture, sofas and dining chairs for homes in the south-eastern United States.",
      "industry": "Furniture and Home Furnishings Retail",
      "employees": "201-500",
      "founded": 1987,
      "location": "Charlotte, North Carolina, United States",
      "linkedin_url": "https://www.linkedin.com/company/sample-northfield-home"
    },
    "channels": {
      "emails": ["info@northfield-home.example", "sales@northfield-home.example"],
      "phones": ["+17045550100"],
      "messaging": [{ "app": "whatsapp", "value": "+17045550100" }],
      "social": {
        "linkedin": "https://www.linkedin.com/company/sample-northfield-home",
        "facebook": null,
        "twitter": null,
        "instagram": null,
        "youtube": null,
        "tiktok": null,
        "pinterest": null
      }
    }
  }
}

The profile costs $0.01 and the channels $0.02. Use the profile to drop the rows that are not your market before you pay for people. include also takes technologies, funding, news, jobs and similar, each at its own price. See Enrich a company.

2. List the people who buy

POST /enrich/people/search lists a company's people by its website, narrowed to the team you sell to. It returns names, titles and LinkedIn profiles, not contact details, at $0.005 a person.

curl https://api.won.dev/v1/enrich/people/search \
  -H "Authorization: Bearer $WON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "domain": "northfield-home.example",
  "department": ["purchasing"],
  "seniority": ["executive", "manager"],
  "limit": 5
}'

The answer, cut to the first person:

{
  "data": [
    {
      "id": "per_4m7q2x9k1c8d",
      "name": "Jordan Lee",
      "first_name": "Jordan",
      "last_name": "Lee",
      "title": "Director of Global Sourcing",
      "seniority": "executive",
      "department": "purchasing",
      "company": "SAMPLE Northfield Home Furnishings",
      "company_domain": "northfield-home.example",
      "linkedin_url": "https://www.linkedin.com/in/sample-jordan-lee",
      "location": "Charlotte, North Carolina, United States"
    }
  ],
  "status": "ready",
  "retry_after_seconds": null
}

status: "processing" means more sources are still being searched for this company: call again after retry_after_seconds, and the people already returned are not charged twice. See Find people.

3. Find the work emails

Pick the people worth writing to and pass each one's id as person_id. Their name and employer on file are used, and only an address on the employer's own domain that was checked before it is returned comes back.

curl https://api.won.dev/v1/enrich/people/email/find \
  -H "Authorization: Bearer $WON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "person_id": "per_4m7q2x9k1c8d" }'

The answer, cut to the email:

{
  "data": {
    "email": { "email": "jordan.lee@northfield-home.example", "status": "verified" }
  }
}

$0.03 for each email found; a person without one costs nothing and data.email is null. status: "verified" means the mailbox exists. The email is kept with the ID, so the person can go into a campaign by contact_id. For a phone number, POST /enrich/people/phone/find takes the same person_id, at $0.10 a number. See Find a work email.

4. Check the addresses you already have

An address from your CRM or a business card may have gone stale. Check it before it goes into a campaign: when more than one address in ten fails the mailbox check of a campaign, the campaign pauses before it writes to the rest.

curl https://api.won.dev/v1/enrich/email/verify \
  -H "Authorization: Bearer $WON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "email": "purchasing@northfield-home.example" }'

The verdict is verified, risky (the domain accepts every address, so this one cannot be confirmed), invalid or unknown, with webmail and shared_mailbox flags. $0.003 for verified, risky or invalid; unknown is free, so ask again later. See Verify an email address.

5. Run the whole list

One call at a time is fine for a few rows. For more, a task runs up to 100 email lookups or address checks in the background, each billed like a call of its own:

curl https://api.won.dev/v1/tasks \
  -H "Authorization: Bearer $WON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "operation": "enrich.people.email.find",
  "inputs": [
    { "person_id": "per_4m7q2x9k1c8d" },
    { "person_id": "per_7a0c3e6g9j2m" }
  ],
  "max_cost": 0.06
}'

The answer comes at once with 202 Accepted and the task's id. Read it with GET /tasks/{id} until status is no longer running, or wait for the task.completed event on your webhook. dry_run: true says the most a task can cost before it starts. See Tasks.

What one company costs

With a live key, at most:

StepBilledMost it costs
1. Fill in the companycompany_record × 1, company_channels × 1$0.03
2. List 5 buyersperson_record × 5$0.025
3. Find 2 work emailsperson_email × 2$0.06
4. Check 1 addressemail_verification × 1$0.003
Total$0.118

A company, a person or an email your organization paid for in the last 30 days comes back free, so running the list again after an edit costs only the new rows. See Pricing and billing.

Next

Last updated on

On this page