# Buscar un teléfono

Source: https://won.dev/es/docs/enrich/people-phone-find

`POST https://api.won.dev/v1/enrich/people/phone/find`

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](/es/docs/trade#modes))

Una clave de prueba (`won_test_...`) responde esta solicitud con la misma empresa y las mismas personas 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) |
| --- | --- | --- | --- |
| `email` | string | no | The person's email address, such as `jane@example.com`. |
| `linkedin_url` | string | no | The person's LinkedIn profile, such as `https://www.linkedin.com/in/jane-doe`. |
| `first_name` | string | no | First name, with `last_name` and `domain`. |
| `last_name` | string | no | Last name, with `first_name` and `domain`. |
| `domain` | string | no | The website of the person's employer, such as `example.com`, with `first_name` and `last_name`. |
| `company_id` | string | no | A company ID from the trade data API, such as `co_8f3k2m9x4p1q`, instead of `domain`: the company's website on record is used. |
| `person_id` | string | no | 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. |
| `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 \| null | The phone number. Null when none was found. |
| `data.number` | string | In E.164 format, such as `+14155550123`. |
| `data.type` | `mobile` \| `landline` \| `voip` \| `other` \| `unknown` | What the numbering plan says the number is: `mobile`, `landline`, `voip`, `other`, or `unknown`. It is not a live check of the line. |
| `data.country` | string \| null | ISO 3166 code of the country the number belongs to. |
| `data.whatsapp_url` | string \| null | A `wa.me` link that opens a chat with a mobile number. Whether the number uses WhatsApp is not checked. Null for other numbers. |
| `query` | object | The request as it was understood: country names as codes, the default dates filled in. |
| `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.unit` | `person_record` \| `person_profile` \| `person_email` \| `person_phone` \| `email_verification` \| `company_listing` \| `company_record` \| `company_channels` \| `company_technologies` \| `company_funding` \| `company_news` \| `company_lookalikes` \| `job_posting` | What is counted. |
| `usage.records` | integer | How many were returned and charged. |
| `usage.already_paid` | integer | How many more were returned for free, because this organization paid for them in the last 30 days. |
| `usage.cost` | number | What this call 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/enrich/people/phone/find \
  -H "Authorization: Bearer $WON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "linkedin_url": "https://www.linkedin.com/in/sample-jordan-lee"
}'
```

```json
{
  "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
  }
}
```