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

Buscar un teléfono

El teléfono de una persona, por lo general un celular, con un enlace de WhatsApp. Solo se cobra si se encuentra.

Encuentra el teléfono de una persona, por lo general un celular, a partir de su perfil de LinkedIn, su correo, su nombre y el sitio web de su empleador, o el person_id que devolvió otra llamada. Con un perfil de LinkedIn se encuentran más. Cuesta USD 0.10 cuando se encuentra un número; si no se encuentra es gratis. Las fuentes se prueban en un orden fijo, la más barata primero. Cada número se valida contra el plan de numeración de su país y se devuelve en formato E.164 con su type (mobile, landline, voip, o unknown cuando la validación no respondió) y su country; un número que no puede existir se descarta y no se cobra. Un celular viene con un enlace wa.me para iniciar un chat de WhatsApp: no se revisa si la persona usa WhatsApp en ese número. La línea en sí no se llama ni se prueba. Úsalo con personas a las que tienes un motivo para llamar, y respeta las reglas sobre llamadas y mensajes del lugar donde están.

  • Cobro: person_phone USD 0.10: Un número de teléfono encontrado que pasó la validación del plan de numeración.
  • Modo: waterfall (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/phone/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
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 phone number. Null when none was found.

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/phone/find' \  -H 'Content-Type: application/json' \  -d '{  "linkedin_url": "https://www.linkedin.com/in/sample-jordan-lee"}'
Respuesta de ejemplo
{  "data": {    "number": "+17045550142",    "type": "mobile",    "country": "US",    "whatsapp_url": "https://wa.me/17045550142"  },  "query": {    "linkedin_url": "https://www.linkedin.com/in/sample-jordan-lee"  },  "notice": null,  "usage": {    "unit": "person_phone",    "records": 1,    "already_paid": 0,    "cost": 0.1,    "balance": 48.9,    "replayed": false  }}

Última actualización: