# Encontrar leads

Source: https://won.dev/es/docs/trade/leads-find

`POST https://api.won.dev/v1/trade/leads/find`

Devuelve compradores (`role: importer`) o proveedores (`role: exporter`) de un producto junto con una forma de contactar a cada uno, en una sola llamada: ordena las empresas como `POST /trade/companies/search`, encuentra el sitio web de cada una y busca a las personas a contactar con un correo de trabajo verificado. Pagas solo por los leads devueltos: USD 0.01 por la empresa más USD 0.03 por cada contacto, o USD 0.01 más USD 0.02 por un lead que solo tiene los buzones compartidos, teléfonos y contactos de mensajería de su sitio web, como un número de WhatsApp, o para una empresa sin sitio web, los de la ficha de mapa y la página en redes sociales que llevan su nombre. Las empresas sin ninguna forma de contacto se saltan y no cuestan nada. Recorre la lista en orden, revisa hasta cinco veces `limit` empresas y trabaja hasta 45 segundos; `query.scanned` dice cuántas revisó, y `next_cursor` continúa después de la última. Con `require: person_email` solo vuelven empresas con un contacto. Como máximo 10 leads por llamada: pagina con `next_cursor` para obtener más, o haz que `POST /tasks` encuentre hasta 500 en segundo plano.

- **Cobro:** `trade_company` USD 0.01: Una empresa en una lista de compradores, proveedores o socios, o la empresa de un lead. `person_email` USD 0.03: Un contacto con un correo de trabajo en el dominio propio de la empresa que pasó la verificación. `company_channels` USD 0.02: Los buzones compartidos, teléfonos o contactos de mensajería encontrados para una empresa en su sitio web, o en la ficha de mapa y la página en redes sociales que llevan su nombre, sin importar cuántos.
- **Modo:** `composite` ([qué significa cada modo](/es/docs/trade#modes))

Una clave de prueba (`won_test_...`) responde esta solicitud con las mismas empresas de muestra, sin costo.

## Parámetros [#parameters]

Los parámetros van en el cuerpo JSON. Las solicitudes `POST` también aceptan el encabezado `Idempotency-Key`; consulta [Idempotencia](/es/docs/idempotency).

| Parámetro | Tipo | Obligatorio | Descripción (texto original de la API) |
| --- | --- | --- | --- |
| `role` | `importer` \| `exporter` | sí | `importer` returns the companies that buy the product: buyers. `exporter` returns the companies that sell it: suppliers. |
| `hs_code` | string | no | HS code, digits only, 6 to 10 digits. Six digits are the same in every country; a longer code is one country's own tariff line, matched by prefix. Find the code of a product with `GET /trade/hs-codes`. |
| `product` | string | no | Product keywords in English, such as `office chair`. A fuzzy match on the goods description. Use it when you do not know the HS code; an `hs_code` is more precise. |
| `importer_country` | string | no | Country the goods are imported into: an ISO code such as `US`, or an English name such as `United States`. |
| `exporter_country` | string | no | Country the goods are exported from: an ISO code such as `VN`, or an English name such as `Vietnam`. |
| `trading_with` | string | no | Only companies that trade with this one: its `co_` ID, or its name. With `role: importer` these are the buyers of that exporter, with `role: exporter` the suppliers of that importer. Either way it is matched by its name as it stands in the records, so companies that share the name count together. |
| `exclude_forwarders` | boolean | no | Leave out freight forwarders and logistics companies, which stand on bills of lading in place of the real buyer or seller. Default: `true`. |
| `sort` | `shipments` \| `recorded_value` | no | `shipments` ranks by number of records. `recorded_value` ranks by declared value; only records that carry a value count, so it favors routes whose exporting country publishes values. Default: `shipments`. |
| `since` | string | no | First day of the date range, `YYYY-MM-DD`. Default: the first day of the month 12 months before `until`. |
| `until` | string | no | Last day of the date range, `YYYY-MM-DD`. Default: up to the latest records. |
| `seniority` | (`owner` \| `c_level` \| `executive` \| `manager` \| `senior` \| `staff`)[] | no | Only people of these levels: `owner`, `c_level`, `executive` (VP, director, head), `manager`, `senior` (a senior individual role, such as Senior Buyer), `staff` (any other role). Default: any level. |
| `department` | (`purchasing` \| `sales` \| `management` \| `operations` \| `marketing` \| `finance` \| `engineering` \| `quality` \| `it` \| `hr` \| `legal`)[] | no | Only people in these departments. Default: `purchasing` and `management` first, which is whom a seller approaches. To reach a supplier, ask for `sales`. |
| `min_email_status` | `verified` \| `risky` | no | `verified` (default) returns only mailboxes that were confirmed to exist. `risky` also returns addresses on domains that accept every address, which cannot be confirmed. Same price. Default: `verified`. |
| `contacts_per_company` | integer | no | The most contacts to return for each company, 1 to 3. Default: `1`. |
| `require` | `any_contact` \| `person_email` | no | `any_contact` (default): every lead has the best way to reach the company that was found, a person's email if there is one, otherwise the shared mailboxes, phone numbers and messaging contacts of its website. `person_email`: only companies where a person with a verified email was found. Default: `any_contact`. |
| `limit` | integer | no | How many results to return, 1 to 10. You pay for the results returned. Default: `5`. |
| `cursor` | string | no | To get the next page, pass `next_cursor` of the previous response back unchanged, with the same parameters. |
| `max_cost` | number | no | Spending cap for this call in US dollars. If the call could cost more, it fails with `budget_exceeded` before anything is charged. |
| `dry_run` | boolean | no | If true, only return the maximum cost of this call. Nothing runs, nothing is charged. Default: `false`. |

## Respuesta [#response]

Con `dry_run: true` no se ejecuta nada y `data` trae solo lo máximo que puede costar la llamada; consulta [Simulaciones](/es/docs/responses#dry-run). Los errores se describen en [Errores](/es/docs/errors).

| Campo | Tipo | Descripción (texto original de la API) |
| --- | --- | --- |
| `data` | object[] | The leads, in the order of the ranked list. |
| `data[].company` | object | The buyer or supplier, as in the company search. |
| `data[].company.id` | string | Company ID, such as `co_8f3k2m9x4p1q`. |
| `data[].company.name` | string | Name as written on shipping documents. |
| `data[].company.country` | string \| null | Country the company imports into or exports from in these records. |
| `data[].company.shipments` | integer | Number of shipment records. A count of records, not a market share: countries that publish every declaration are over-represented. |
| `data[].company.recorded_value_usd` | number \| null | Sum of the declared values of the records that have one, in US dollars. A lower bound: US bills of lading carry no value. |
| `data[].company.website` | string \| null | Bare domain, such as `example.com`. Often null. |
| `data[].contacts` | object[] | People to approach, each with a verified work email. Empty when none was found. |
| `data[].contacts[].id` | string | Person ID, such as `per_4m7q2x9k1c8d`. Kept for your account for 90 days after it was last returned, with the email: pass it as `contact_id` to add the person to a campaign. |
| `data[].contacts[].name` | string \| null | Full name. |
| `data[].contacts[].title` | string \| null | Job title. |
| `data[].contacts[].seniority` | `owner` \| `c_level` \| `executive` \| `manager` \| `senior` \| `staff` \| null | Level, read from the title. |
| `data[].contacts[].department` | `purchasing` \| `sales` \| `management` \| `operations` \| `marketing` \| `finance` \| `engineering` \| `quality` \| `it` \| `hr` \| `legal` \| null | Department, read from the title. |
| `data[].contacts[].email` | string | Work email on the company's own domain. |
| `data[].contacts[].email_status` | `verified` \| `risky` | `verified`: the mailbox exists. `risky`: the domain accepts every address, so the mailbox cannot be confirmed. |
| `data[].contacts[].linkedin_url` | string \| null | The person's LinkedIn profile, when known. |
| `data[].contacts[].other_email` | string \| null | Another email address listed for the person. Often on the company's domain too, but it can be a private address, and it is not verified. |
| `data[].contacts[].phones` | string[] | Phone numbers listed for the person: a direct line, a mobile or the company's switchboard. Not verified. |
| `data[].channels` | object \| null | The shared mailboxes, phone numbers, messaging contacts and social pages on the company's website, or for a company without one, on the map listing and the social page that carry its name, when no person was found. Null when `contacts` has someone. |
| `data[].channels.emails` | string[] | Shared addresses such as `info@` and `sales@`. |
| `data[].channels.phones` | string[] | Phone numbers the company publishes: in E.164, such as `+4952112340`, when the country can be told, else as printed. Fax numbers are left out. |
| `data[].channels.messaging` | object[] | WhatsApp, WeChat, Zalo, LINE, Skype and Telegram contacts the company gives. |
| `data[].channels.messaging[].app` | `whatsapp` \| `wechat` \| `zalo` \| `line` \| `skype` \| `telegram` |  |
| `data[].channels.messaging[].value` | string | A number in E.164 for WhatsApp, else the ID or number as printed. |
| `data[].channels.social` | object | Links to its public pages. Null where none is known. |
| `data[].channels.social.linkedin` | string \| null |  |
| `data[].channels.social.facebook` | string \| null |  |
| `data[].channels.social.twitter` | string \| null |  |
| `data[].channels.social.instagram` | string \| null |  |
| `data[].channels.social.youtube` | string \| null |  |
| `data[].channels.social.tiktok` | string \| null |  |
| `data[].channels.social.pinterest` | string \| null |  |
| `total` | integer | How many companies the ranked list has in all. |
| `has_more` | boolean | Whether the ranked list goes on after the last company looked at. |
| `next_cursor` | string \| null | Pass it as `cursor` to go on after the last company that was looked at. |
| `query` | object | The request as it was understood, with the default dates filled in. `scanned` says how many companies were looked at for this page, `passed_over` why the ones without a lead gave none, and `data_through` how recent the records are. |
| `query.data_through` | string \| null | Date of the latest record this query can see, `YYYY-MM-DD`. Records arrive weeks after a shipment, so recent months are incomplete. |
| `query.scanned` | integer | How many companies of the ranked list were looked at for this page. |
| `query.passed_over` | object | Why the companies that were looked at without a lead were passed over. |
| `query.passed_over.no_website` | integer | No website is known, so nobody could be looked for. |
| `query.passed_over.nobody` | integer | Every contact source was asked and none had anyone to approach. |
| `query.passed_over.incomplete` | integer | A contact source did not answer, or time ran out before every source was asked. Asking again later may find someone there. |
| `notice` | string \| null | A plain sentence when there is something to know about this result: why a part is missing, or what to try next. Null otherwise. |
| `usage` | object | What this call was charged, and the balance left. |
| `usage.cost` | number | What this call cost, in US dollars. |
| `usage.breakdown` | object[] | Every billing unit that came back, charged or not. Empty when nothing did. |
| `usage.breakdown[].unit` | `trade_record` \| `trade_company` \| `trade_company_profile` \| `trade_lookup` \| `person_email` \| `company_channels` \| `trade_stats` \| `trade_official_stats` \| `market_search` \| `market_listings` \| `market_estimates` | What is counted. |
| `usage.breakdown[].records` | integer | How many were returned and charged. |
| `usage.breakdown[].already_paid` | integer | How many more were returned for free, because this organization paid for them in the last 30 days. |
| `usage.breakdown[].cost` | number | What they cost, in US dollars. |
| `usage.balance` | number | The balance left after this call, in US dollars. |
| `usage.replayed` | boolean | True when this is a repeat of a request from the last 24 hours. Repeats are free. |

## Ejemplo [#example]

```bash
curl https://api.won.dev/v1/trade/leads/find \
  -H "Authorization: Bearer $WON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "role": "importer",
  "hs_code": "940161",
  "importer_country": "US",
  "limit": 2
}'
```

```json
{
  "data": [
    {
      "company": {
        "id": "co_8f3k2m9x4p1q",
        "name": "SAMPLE NORTHFIELD HOME FURNISHINGS INC",
        "country": "US",
        "shipments": 1840,
        "recorded_value_usd": 21480350.4,
        "website": "northfield-home.example"
      },
      "contacts": [
        {
          "id": "per_4m7q2x9k1c8d",
          "name": "Jordan Lee",
          "title": "Director of Global Sourcing",
          "seniority": "executive",
          "department": "purchasing",
          "email_status": "verified",
          "linkedin_url": "https://www.linkedin.com/in/sample-jordan-lee",
          "email": "jordan.lee@northfield-home.example"
        }
      ],
      "channels": null
    },
    {
      "company": {
        "id": "co_3d9t6w1b7n5z",
        "name": "SAMPLE HARBORSIDE SEATING CO",
        "country": "US",
        "shipments": 962,
        "recorded_value_usd": 9310772.15,
        "website": "harborside-seating.example"
      },
      "contacts": [],
      "channels": {
        "emails": [
          "info@harborside-seating.example",
          "sales@harborside-seating.example"
        ],
        "phones": [
          "+15550100142"
        ],
        "messaging": [
          {
            "app": "whatsapp",
            "value": "+15550100142"
          }
        ],
        "social": {
          "linkedin": "https://www.linkedin.com/company/harborside-seating",
          "facebook": null,
          "twitter": null,
          "instagram": null,
          "youtube": null,
          "tiktok": null,
          "pinterest": null
        }
      }
    }
  ],
  "total": 4087,
  "has_more": true,
  "next_cursor": "cur_TGVhZHMtMi4xcnpnNA",
  "query": {
    "role": "importer",
    "hs_code": "940161",
    "importer_country": "US",
    "exclude_forwarders": true,
    "sort": "shipments",
    "since": "2025-11-01",
    "until": "2026-11-20",
    "min_email_status": "verified",
    "contacts_per_company": 1,
    "require": "any_contact",
    "limit": 2,
    "scanned": 2,
    "passed_over": {
      "no_website": 0,
      "nobody": 0,
      "incomplete": 0
    },
    "data_through": "2026-11-11"
  },
  "notice": null,
  "usage": {
    "cost": 0.07,
    "breakdown": [
      {
        "unit": "trade_company",
        "records": 2,
        "already_paid": 0,
        "cost": 0.02
      },
      {
        "unit": "person_email",
        "records": 1,
        "already_paid": 0,
        "cost": 0.03
      },
      {
        "unit": "company_channels",
        "records": 1,
        "already_paid": 0,
        "cost": 0.02
      }
    ],
    "balance": 48.01,
    "replayed": false
  }
}
```