> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mindcase.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Phone Number Lookup API

> Find a person's phone number from a LinkedIn URL, a name and company, or an email address. Numbers come back in international format with their line type.

`POST /v1/data/people/phone-lookup/run`

**Pricing:** $0.35 per phone number ($350.00 per 1,000).

## Ways to call it

* **By LinkedIn URL**: set `linkedinUrls`
* **By name and company**: set `people`
* **By email**: set `emails`

## Request

Send the inputs under `params`. Only the keys below are accepted; any other key returns `422 invalid_params`.

**linkedinUrls** `string[]`

LinkedIn profile URLs of the people to find phone numbers for, one person per URL. Each URL is one lookup.

Format e.g. `https://www.example.com`.

**people** `string[]`

One person per line: full name, a comma (or a tab, when pasted from a spreadsheet), then the company name or website domain. Example: Jason Fried, basecamp.com or Satya Nadella, Microsoft. The person's LinkedIn profile is found first, then their number. Each entry is one lookup.

**emails** `string[]`

Work or personal email addresses of the people to find phone numbers for, one person per email. Each email is one lookup.

Format e.g. `hello@yuna.travel`.

**fullName** `string`

Legacy API input for one person, kept for existing integrations; use People instead. The person's full name, used together with Company Or Domain.

**companyOrDomain** `string[]`

Legacy API input that goes with Full Name; use People instead. The person's company name or website domain (the first entry is used).

## Example

```bash cURL theme={null}
curl -X POST "https://api.mindcase.co/v1/data/people/phone-lookup/run?wait=true" \
  -H "Authorization: Bearer $MINDCASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "params": {
    "linkedinUrls": [
      "https://www.linkedin.com/in/patrickmckenzie",
      "https://www.linkedin.com/in/jason-fried",
      "https://www.linkedin.com/in/dinesh-joshi-44244b35"
    ]
  }
}'
```

```python Python theme={null}
import os, requests

r = requests.post(
    "https://api.mindcase.co/v1/data/people/phone-lookup/run",
    params={"wait": "true"},
    headers={"Authorization": f"Bearer {os.environ['MINDCASE_API_KEY']}"},
    json={"params": {
    "linkedinUrls": [
        "https://www.linkedin.com/in/patrickmckenzie",
        "https://www.linkedin.com/in/jason-fried",
        "https://www.linkedin.com/in/dinesh-joshi-44244b35"
    ]
}},
)
job = r.json()
rows = job.get("data", [])  # if job["status"] == "running", poll /v1/jobs/{job_id}/results
```

```javascript Node.js theme={null}
const r = await fetch("https://api.mindcase.co/v1/data/people/phone-lookup/run?wait=true", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MINDCASE_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ params: {
  "linkedinUrls": [
    "https://www.linkedin.com/in/patrickmckenzie",
    "https://www.linkedin.com/in/jason-fried",
    "https://www.linkedin.com/in/dinesh-joshi-44244b35"
  ]
} }),
});
const job = await r.json();
const rows = job.data ?? []; // if job.status === "running", poll /v1/jobs/{job_id}/results
```

## Response fields

Each row in `data` is one phone number, keyed by these fields.

| Field | Name | Type |
| - | - | - |
| `profileUrl` | Profile URL | url |
| `fullName` | Full Name | text |
| `title` | Title | text |
| `company` | Company | text |
| `companyDomain` | Company Domain | text |
| `phone` | Phone | phone |
| `phoneType` | Phone Type | text |
| `input` | Input | text |

## Example response

Abridged: long text and lists are shortened.

```json theme={null}
{
  "job_id": "7f3a1c2e-0b9d-4c55-9a51-3f2e8d1b6a40",
  "agent": "people/phone-lookup",
  "status": "completed",
  "row_count": 1,
  "truncated": false,
  "data": [
    {
      "phone": "+12025550143",
      "phoneType": "mobile",
      "fullName": "John Doe",
      "title": "Head of Sales",
      "profileUrl": "https://www.linkedin.com/in/demo-john-doe",
      "companyDomain": "acme.example",
      "company": "Acme Corporation",
      "input": "https://www.linkedin.com/in/demo-john-doe"
    }
  ]
}
```

## Related APIs

For a work email use [`people/professional-email`](https://docs.mindcase.co/apis/people/professional-email); for a personal email use [`people/personal-email`](https://docs.mindcase.co/apis/people/personal-email); for the full career profile use [`people/enrichment`](https://docs.mindcase.co/apis/people/enrichment).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.