South Star

Phone Number Validator E164 Carrier Timezone API

Free tier included · Data
Validate, format and enrich phone numbers offline: E.164/national/international forms, line type, timezone, region, original carrier and a heuristic risk score. Batch up to 1000, no external calls, no storage.

Phone Number Validator parses and validates phone numbers against local Google libphonenumber numbering-plan data, then returns E.164, national and international forms plus line type, IANA timezones, geographic region, the original/assigned carrier and a heuristic 0–100 risk score with flags (voip, premium_rate, toll_free, etc.). One-call enrichment via `/decode/full` replaces the chain of `/validate` + `/format` + `/type` + `/geo` + `/carrier` + `/risk` that other providers split across multiple endpoints, and `/decode/batch` enriches up to 100 numbers in a single request.

All processing is offline and stateless: no calls to external registries, no databases, no request logs. Validation is regex plus arithmetic over embedded constants, so a single number resolves in ~1.6 ms and a 1000-item batch completes in milliseconds. Responses are tiny JSON, keeping CPU and bandwidth low even under load.

Honest limits: this API validates structure only. A `valid: true` result does not confirm that a number exists, is reachable, or can receive calls/SMS. The carrier field reflects original/assigned range metadata, not necessarily the current operator. The disposable flag is returned as null — no free, official disposable-number dataset is bundled. Numbers are accepted in any format (E.164, national, international) and the `country` parameter is only a hint for numbers without a `+` prefix; the resolved country is always derived from the number itself. `/validate-batch` accepts up to 1000 items with a 262144-byte body cap and a 1048576-byte response cap; `/decode/batch` accepts up to 100 items. Unknown country codes are rejected with 422 rather than silently ignored.

Endpoints

MethodPathWhat it does
GET/Service info: API name, version, and links to the docs and healthcheck endpoints.
GET/healthLiveness probe: always returns {"status": "ok"} while the service is up.
GET/validateValidate one phone number: validity, E.164/national/international forms, country calling code, resolved region, line type, timezones, geographic description and original/assigned carrier. phone is required; country is an optional ISO 3166-1 alpha-2 hint for numbers without a + prefix. A structurally invalid number is a normal result (HTTP 200 with valid=false), not an HTTP error.
POST/validate-batchValidate up to 1000 phone numbers in one call. Body: {"phones": ["+14075550100", ...], "country": "US"}. Request body capped at 262144 bytes; serialized response capped at 1048576 bytes (413 otherwise). Item order is preserved and a bad item never breaks the batch.
GET/formatFormat a single valid phone number into the requested style. phone is required; style is one of e164, national, international, tel (RFC3966) — default e164. An invalid number is rejected with 400 invalid_phone.
GET/format/allFormat a valid phone number into all four canonical styles at once: E.164, international, national and RFC 3966 (tel:). Invalid or unparseable numbers are rejected with 400 invalid_phone.
GET/decode/fullFull phone intelligence in one call: separate is_valid / is_possible flags, all four formats, country calling code, ISO country, geographic area, IANA timezones, line type, original range carrier and a heuristic risk score with flags. Invalid numbers return is_valid=false with a machine-readable reason — not an HTTP error.
GET/riskRisk score and line-type flags for one number. Returns a heuristic 0–100 riskScore with riskLevel (low/medium/high/critical) and boolean flags (voip, premium_rate, toll_free, shared_cost, personal_number, pager, voicemail, uan) plus a reasons list. Unparseable numbers get the maximum risk instead of an error, making the endpoint safe for CSV/CRM clean-up pipelines.
GET/countryCountry and calling code of one number. Resolves the ISO 3166-1 alpha-2 country and international calling code directly from the number itself (never from the request), together with the geographic area description and validity flags. Useful for routing, pricing and geo-based segmentation.
POST/decode/batchBulk version of /decode/full: validates, formats, geolocates, classifies and risk-scores up to 100 numbers in a single request. Body: {"phones": ["+14075550100", ...], "country": "US"}. Item order is preserved and a bad item never breaks the batch.

Quick start

curl -X GET "https://phone.p.rapidapi.com/validate?phone=%2B1%20407%20555%200100&country=US" \
  -H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
  -H "X-RapidAPI-Host: phone.p.rapidapi.com"

FAQ

Does a `valid: true` result mean the number exists and can receive calls or SMS?

No. The API validates structure only against local libphonenumber numbering-plan data. It does not contact any carrier or registry and cannot confirm that a number is active, reachable, or assigned to its current owner.

Does the API make any external network calls?

No. All parsing, validation, formatting, carrier and risk lookups use embedded libphonenumber data. There are no databases and no request logs.

How many numbers can I process in one request?

`/validate-batch` accepts up to 1000 items (262144-byte body cap, 1048576-byte response cap). `/decode/batch` accepts up to 100 items. A bad item never breaks the batch — it comes back with `valid=false` or `is_valid=false` and a reason.

What does the carrier field actually represent?

The original/assigned carrier of the number range, derived from the embedded libphonenumber metadata. It is not necessarily the current operator, since carriers can change without the numbering plan being updated.

Try Phone Number Validator E164 Carrier Timezone free

Free tier on every plan. Get an API key and start calling in under a minute.

Open on RapidAPI

Related APIs