Ir al contenido
Won.dev
DocumentaciónReferencia de la API
API de enriquecimiento

Enriquecer a una persona

El perfil de una persona a partir de un correo, un perfil de LinkedIn o un nombre en una empresa, con el correo de trabajo y el teléfono si los pides.

Completa el perfil de una persona a partir de lo que sabes: su correo, su perfil de LinkedIn, su nombre y el sitio web de su empleador, o el person_id que devolvió otra llamada. El perfil tiene el nombre completo, el cargo y el empleador actuales, dónde está y su perfil de LinkedIn, así que un correo o un nombre se convierten en un enlace de LinkedIn. Cuesta USD 0.02 cuando se encuentra un perfil; si no se encuentra nada es gratis. include agrega en la misma llamada, cada uno cobrado solo cuando se encuentra: email, su correo de trabajo en el dominio de su empleador, verificado (USD 0.03), y phone, su teléfono, por lo general un celular (USD 0.10). Si se busca por nombre, nunca se devuelve a alguien con ese nombre en otra empresa. Cuando solo necesitas el correo o el teléfono, POST /enrich/people/email/find y POST /enrich/people/phone/find no buscan el perfil.

  • Cobro: person_profile USD 0.02: Un perfil de persona encontrado. person_email USD 0.03: Un correo de trabajo encontrado en el dominio del empleador, verificado antes de devolverlo. person_phone USD 0.10: Un número de teléfono encontrado que pasó la validación del plan de numeración.
  • Modo: merge (qué significa cada modo)

Una clave de prueba (won_test_...) responde esta solicitud con la misma empresa y las mismas personas de muestra, sin costo.

POST
/enrich/people/find

Autenticación

apiKey
headerAuthorizationBearer <clave de API>

Authorization: Bearer won_live_..., a key from the console.

Parámetros de encabezado

Idempotency-Key?string

Any unique string. A retry with the same key and the same body returns the first response and is not charged again.

Longitudlength <= 255

Cuerpo de la solicitud

application/json
  1. body
email?string

The person's email address, such as jane@example.com.

Longitudlength <= 254
linkedin_url?string

The person's LinkedIn profile, such as https://www.linkedin.com/in/jane-doe.

Longitudlength <= 300
first_name?string

First name, with last_name and domain.

Longitudlength <= 80
last_name?string

Last name, with first_name and domain.

Longitudlength <= 80
domain?string

The website of the person's employer, such as example.com, with first_name and last_name.

Longitudlength <= 253
company_id?string

A company ID from the trade data API, such as co_8f3k2m9x4p1q, instead of domain: the company's website on record is used.

Longitudlength <= 40
person_id?string

A person ID this account was given in the last 90 days, such as per_4m7q2x9k1c8d, instead of naming the person: their name, employer website and LinkedIn profile on file are used. What you pass besides it wins.

Longitudlength <= 40
include?array<>

Parts to add: email, phone. Each is billed by its own unit.

Elementositems <= 2
Valor predeterminado[]
min_email_status?string

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.

Valor predeterminado"verified"
Valores"verified""risky"
max_cost?number

Spending cap for this call in US dollars. If the call could cost more, it fails with budget_exceeded before anything is charged.

Rango0 < value
dry_run?boolean

If true, only return the maximum cost of this call. Nothing runs, nothing is charged.

Valor predeterminadofalse

Cuerpo de la respuesta

The result. With dry_run, only the maximum cost.

application/json
  1. response
data*

The person, with the parts asked for in include.

query*

The request as it was understood: country names as codes, the default dates filled in.

notice*|

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*

What this call was charged, and the balance left.

Solicitud de ejemplo
curl -X POST 'https://api.won.dev/v1/enrich/people/find' \  -H 'Content-Type: application/json' \  -d '{  "linkedin_url": "https://www.linkedin.com/in/sample-jordan-lee",  "include": [    "email",    "phone"  ]}'
Respuesta de ejemplo
{  "data": {    "person": {      "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"    },    "email": {      "email": "jordan.lee@northfield-home.example",      "status": "verified"    },    "phone": {      "number": "+17045550142",      "type": "mobile",      "country": "US",      "whatsapp_url": "https://wa.me/17045550142"    }  },  "query": {    "linkedin_url": "https://www.linkedin.com/in/sample-jordan-lee",    "include": [      "email",      "phone"    ],    "min_email_status": "verified"  },  "notice": null,  "usage": {    "cost": 0.15,    "breakdown": [      {        "unit": "person_profile",        "records": 1,        "already_paid": 0,        "cost": 0.02      },      {        "unit": "person_email",        "records": 1,        "already_paid": 0,        "cost": 0.03      },      {        "unit": "person_phone",        "records": 1,        "already_paid": 0,        "cost": 0.1      }    ],    "balance": 48.85,    "replayed": false  }}

Última actualización: