Pular para o conteúdo
Won.dev
DocumentaçãoReferência da API
API de enriquecimento

Encontrar um telefone

O telefone de uma pessoa, normalmente um celular, com um link de WhatsApp. Cobrado só quando encontrado.

Encontra o telefone de uma pessoa, normalmente um celular, a partir do perfil no LinkedIn, do e-mail, do nome e do site do empregador, ou do person_id que outra chamada retornou. Um perfil no LinkedIn é o que mais encontra. Custa US$ 0,10 quando um número é encontrado; não encontrar nada é grátis. As fontes são consultadas numa ordem fixa, da mais barata para a mais cara. Todo número é validado pelo plano de numeração do país dele e retornado no formato E.164 com o type (mobile, landline, voip, ou unknown quando a validação não respondeu) e o country; um número que não pode existir é descartado e não é cobrado. Um celular vem com um link wa.me para iniciar uma conversa no WhatsApp: não é checado se a pessoa usa WhatsApp nesse número. A linha em si não recebe ligação nem é testada. Use com pessoas para quem você tem um motivo para ligar, e respeite as regras sobre ligações e mensagens do lugar onde elas estão.

  • Cobrança: person_phone US$ 0,10: Um número de telefone encontrado que passou na validação do plano de numeração.
  • Modo: waterfall (o que cada modo significa)

Uma chave de teste (won_test_...) responde a esta requisição com a mesma empresa e as mesmas pessoas de exemplo, sem custo.

POST
/enrich/people/phone/find

Autenticação

apiKey
headerAuthorizationBearer <chave de API>

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

Parâmetros de cabeçalho

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.

Tamanholength <= 255

Corpo da requisição

application/json
  1. body
email?string

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

Tamanholength <= 254
linkedin_url?string

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

Tamanholength <= 300
first_name?string

First name, with last_name and domain.

Tamanholength <= 80
last_name?string

Last name, with first_name and domain.

Tamanholength <= 80
domain?string

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

Tamanholength <= 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.

Tamanholength <= 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.

Tamanholength <= 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.

Intervalo0 < value
dry_run?boolean

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

Padrãofalse

Corpo da resposta

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.

Requisição de exemplo
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"}'
Resposta de exemplo
{  "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 atualização em