Helenis API
Start for free

API reference

Phone Number Validation API

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

Host
phone-number-validation-type-carrier-timezone.p.rapidapi.com
Base path
/v1/phone
Auth
X-RapidAPI-Key, X-RapidAPI-Host
For agents
openapi.json · phone.md

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.

Parameters of Validate Phone Number
ParameterInTypeDescription
number required query string Phone number in any format: +44 20 7946 0958, 0044..., or a national number with the country parameter.
country query string ISO country for a number written without +country code (e.g. FR for 06 12 34 56 78).
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.

Parameters of Validate Phone Numbers in Bulk
ParameterInTypeDescription
numbers required body string[]
country body string ISO country used for numbers written without +country code (e.g. FR for 06 12 34 56 78).
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).

Parameters of Extract Phone Numbers from Text
ParameterInTypeDescription
text required body string Any text: an email signature, a web page, a CRM note...
country body string ISO country used for numbers written without +country code.
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"
  }'

Response

{
  "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

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"}'
{
  "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

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.

Use it from an AI agent

Add this MCP server and the Phone Number Validator - Bulk E.164, Carrier & Timezone actor becomes a tool your agent can call. Works in Claude, Cursor, VS Code and any MCP client; billed per event through Apify.

MCP server URL
https://mcp.apify.com?tools=helenisapi/phone-number-validator-bulk

Prefer plain HTTP? Give your agent the OpenAPI document or the Markdown reference.

See the plans Error handling