# Phone Number Validation API

> Validate phone numbers from 240+ countries: valid, mobile or landline, carrier, timezone, E.164.

**Bad phone numbers cost real money:** SMS that never arrive, sales reps dialling dead lines, sign-ups with fake numbers, CRMs full of `06 12-34.56.78`. One call checks any number from **240+ countries** and hands it back clean: **valid** or not, **mobile or landline**, **E.164**, **country**, **city area**, **carrier** and **time zone**. From **$0.0002 per number**, up to **30x cheaper** than typical phone lookup APIs.

- Host: `phone-number-validation-type-carrier-timezone.p.rapidapi.com`
- Base URL: `https://phone-number-validation-type-carrier-timezone.p.rapidapi.com/v1/phone`
- Auth: headers `X-RapidAPI-Key` and `X-RapidAPI-Host`
- OpenAPI: https://helenis-api.com/docs/phone/openapi.json

## Endpoints

### Validation

One phone number or up to 100, validated and formatted.

#### Validate Phone Number

`GET /v1/phone/validate`

Validate a phone number. Valid or not, line type (mobile, fixed line, toll-free, VoIP...), E.164, international and national formats, country, area, original carrier and time zones. Offline (Google's libphonenumber): no SMS, no call. 1 credit.

| Parameter | In | Type | Required | Description | Example |
|---|---|---|---|---|---|
| `number` | query | `string` | yes | Phone number in any format: +44 20 7946 0958, 0044..., or a national number with the country parameter. | `+44 20 7946 0958` |
| `country` | query | `string` | no | ISO country for a number written without +country code (e.g. FR for 06 12 34 56 78). | `GB` |

```bash
curl -G "https://phone-number-validation-type-carrier-timezone.p.rapidapi.com/v1/phone/validate" \
  --data-urlencode "number=+44 20 7946 0958" \
  -H "X-RapidAPI-Key: YOUR_API_KEY" \
  -H "X-RapidAPI-Host: phone-number-validation-type-carrier-timezone.p.rapidapi.com"
```

#### Validate Phone Numbers in Bulk

`POST /v1/phone/validate/bulk`

Validate up to 100 phone numbers. Same checks for up to 100 numbers, with a valid/invalid summary. 1 credit per number.

| Parameter | In | Type | Required | Description | Example |
|---|---|---|---|---|---|
| `numbers` | body | `string[]` | yes |  | `["+44 20 7946 0958", "06 12 34 56 78", "+1 650-253-0000"]` |
| `country` | body | `string` | no | ISO country used for numbers written without +country code (e.g. FR for 06 12 34 56 78). | `FR` |

```bash
curl -X POST "https://phone-number-validation-type-carrier-timezone.p.rapidapi.com/v1/phone/validate/bulk" \
  -H "X-RapidAPI-Key: YOUR_API_KEY" \
  -H "X-RapidAPI-Host: phone-number-validation-type-carrier-timezone.p.rapidapi.com" \
  -H "Content-Type: application/json" \
  -d '{
    "numbers": [
      "+44 20 7946 0958",
      "06 12 34 56 78",
      "+1 650-253-0000"
    ],
    "country": "FR"
  }'
```

### Extraction

Every phone number found in a text.

#### Extract Phone Numbers from Text

`POST /v1/phone/extract`

Find and validate every phone number in a text. Every phone number written in a text (signature, page, note), each validated and formatted, in order of appearance and without duplicates. Up to 20,000 characters and 100 numbers. 1 credit per number found (1 minimum).

| Parameter | In | Type | Required | Description | Example |
|---|---|---|---|---|---|
| `text` | body | `string` | yes | Any text: an email signature, a web page, a CRM note... | `Call us on +1 650-253-0000 or our Paris office: 01 23 45 67 89.` |
| `country` | body | `string` | no | ISO country used for numbers written without +country code. | `FR` |

```bash
curl -X POST "https://phone-number-validation-type-carrier-timezone.p.rapidapi.com/v1/phone/extract" \
  -H "X-RapidAPI-Key: YOUR_API_KEY" \
  -H "X-RapidAPI-Host: phone-number-validation-type-carrier-timezone.p.rapidapi.com" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Call us on +1 650-253-0000 or our Paris office: 01 23 45 67 89.",
    "country": "FR"
  }'
```

## Sample call

Validate Phone Number: `GET /v1/phone/validate`.

```bash
curl -G "https://phone-number-validation-type-carrier-timezone.p.rapidapi.com/v1/phone/validate" \
  --data-urlencode "number=+44 20 7946 0958" \
  -H "X-RapidAPI-Key: YOUR_API_KEY" \
  -H "X-RapidAPI-Host: phone-number-validation-type-carrier-timezone.p.rapidapi.com"
```

## Response

```json
{
  "input": "+44 20 7946 0958",
  "valid": true,
  "possible": true,
  "reason": "Valid fixed line number in United Kingdom.",
  "e164": "+442079460958",
  "international": "+44 20 7946 0958",
  "national": "020 7946 0958",
  "country_code": 44,
  "region": "GB",
  "country": "United Kingdom",
  "location": "London",
  "line_type": "fixed_line",
  "timezones": [
    "Europe/London"
  ]
}
```

*From a real response.* A number with an extension keeps it apart: `+1 (415) 555-2671 ext. 204` gives `"e164": "+14155552671"` and `"extension": "204"`.

## Bulk

```bash
curl -X POST "https://phone-number-validation-type-carrier-timezone.p.rapidapi.com/v1/phone/validate/bulk" \
  -H "Content-Type: application/json" \
  -H "X-RapidAPI-Key: YOUR_API_KEY" -H "X-RapidAPI-Host: phone-number-validation-type-carrier-timezone.p.rapidapi.com" \
  -d '{"numbers": ["06 12 34 56 78", "+1 650-253-0000", "12345"], "country": "FR"}'
```

```json
{
  "results": [
    { "input": "06 12 34 56 78", "valid": true, "e164": "+33612345678", "line_type": "mobile", "carrier": "SFR", "country": "France", "...": "..." },
    { "input": "+1 650-253-0000", "valid": true, "e164": "+16502530000", "line_type": "fixed_line_or_mobile", "location": "Mountain View, CA", "...": "..." },
    { "input": "12345", "valid": false, "reason": "Not a possible number for this country (wrong length).", "...": "..." }
  ],
  "summary": { "valid": 2, "invalid": 1 }
}
```

## Why developers pick this API

- ⚡ **Fast and always up:** the numbering plans of every country run inside the API (Google's libphonenumber, updated with each release). No telecom gateway to time out.
- 💸 **Priced for volume:** about **$0.0002 per number** on PRO, where lookup APIs charge $0.006 to $0.05.
- ✍️ **Reads numbers the way people write them:** `+44 20...`, `0044 20...`, `011 44...`, `(415) 555-2671 x204`, `1-800-FLOWERS`, `tel:` links, full-width digits.
- 🔒 **Private by design:** no SMS, no call, no network ping: the person behind the number never knows.
- 🧾 **Pay for answers only:** calls that fail (4xx, 5xx) use 0 credits, and an invalid number is a normal answer, never an error.

## Extraction

```bash
curl -X POST "https://phone-number-validation-type-carrier-timezone.p.rapidapi.com/v1/phone/extract" \
  -H "Content-Type: application/json" \
  -H "X-RapidAPI-Key: YOUR_API_KEY" -H "X-RapidAPI-Host: phone-number-validation-type-carrier-timezone.p.rapidapi.com" \
  -d '{"text": "Call us on +1 650-253-0000 or our Paris office: 01 23 45 67 89.", "country": "FR"}'
```

Returns each number found with its position in the text (`start`), validated and formatted like above, in order and without duplicates. Dates, prices, order numbers, IBANs, postcodes and IP addresses are left alone. Up to 20,000 characters and 100 numbers per call.

## Line types

| `line_type` | Meaning |
|---|---|
| `mobile` | Mobile phone |
| `fixed_line` | Landline |
| `fixed_line_or_mobile` | Either (USA, Canada and a few others do not tell them apart) |
| `toll_free` | Free to call (0800, 1-800...) |
| `premium_rate` / `shared_cost` | Paid numbers |
| `voip` | Internet telephony |
| `personal_number`, `pager`, `uan`, `voicemail` | Special numbers |

"Valid" means the number fits its country's numbering plan. It does not prove that the line is active, and a number ported to another operator keeps its original `carrier`: that needs a paid network lookup (HLR), which this API does not do. Emergency numbers (`112`, `911`, `999`) come back invalid with their own reason.

## Errors

| Status | `code` | Meaning |
|---|---|---|
| 400 | `invalid_country` | `country` is not an ISO 3166 two-letter code. |
| 400 | `invalid_request` | Missing number, more than 100 in a bulk call, or a text over 20,000 characters. |
| 429 | `daily_limit_reached` | Daily safety limit of your plan; resets at 00:00 UTC. |

A malformed number is not an error: it comes back `"valid": false` with the reason.

## Pricing

1 credit per phone number (extraction: per number found, 1 minimum). Failed calls are never billed.

| Plan | Price | Credits included | Above the quota |
|---|---|---|---|
| BASIC | Free | 10 / day | resets every day |
| PRO | $3.99/month | 20,000 / month | $0.002 per credit |
| ULTRA | $9.99/month | 150,000 / month | $0.002 per credit |
| MEGA | $29.99/month | 1,000,000 / month | $0.002 per credit |

Apify actor **Phone Number Validator - Bulk E.164, Carrier & Timezone**: billed per event; free-plan users get 200 numbers per run.

| Event | Charged for | Price |
|---|---|---|
| `phone-validated` | each number validated | $0.0005 |

## Links

- API reference (HTML): https://helenis-api.com/docs/phone
- OpenAPI: https://helenis-api.com/docs/phone/openapi.json
- Overview and pricing: https://helenis-api.com/apis/phone/
- RapidAPI listing: https://rapidapi.com/helenis-api-helenis-api-business/api/phone-number-validation-type-carrier-timezone?utm_source=helenis&utm_medium=site&utm_campaign=phone&utm_content=markdown
- Apify actor: https://apify.com/helenisapi/phone-number-validator-bulk?utm_source=helenis&utm_medium=site&utm_campaign=phone&utm_content=markdown
- MCP server (Apify): https://mcp.apify.com?tools=helenisapi/phone-number-validator-bulk

MCP: Works in Claude, Cursor, VS Code and any MCP client; billed per event through Apify (your Apify token).

## Conventions (every Helenis API)

- Auth: two headers on every call, `X-RapidAPI-Key` (your key) and `X-RapidAPI-Host` (the API's host). One RapidAPI key works for every API you subscribe to.
- Billing in credits: one for a simple call, more for heavier work (a minute of audio, a page read by AI). Each API states its rule.
- Failed calls are never billed: a `4xx` bills zero credits and a `5xx` is never counted.
- Errors share one envelope: `{"error": {"status", "code", "message"}}` with a stable machine-readable `code`.
- `400`: fix the input (validation errors are always 400, never 422); not billed.
- `429`: rate limit; wait for `Retry-After`. `503`: temporary upstream or AI failure (`ai_error`, `upstream_timeout`); retry later, not billed.
- Values the source does not give come back as `null`, never invented.
