Phone Number Validator API
Checks phone numbers in any format against Google's libphonenumber rules: valid or not, E.164 and national format, country, region, line type, the carrier the number range was first allocated to, location and time zones.
$0.50 per 1,000 records
You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.
Data from github.com/google/libphonenumber
Get this data
Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.
Try it
Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key
For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
curl -X POST "https://pullrow.dev/v1/apis/phone-number-validator/run" \
-H "Authorization: Bearer $PULLROW_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"phone_numbers": [
"+14169790000",
"+442071838750"
]
},
"max_items": 50
}'Inputs
Send them as input in the request body. Leave one out to use its default.
What's in each record
10 fields.
Basics
- Your input
The number exactly as you sent it.
Example +14169790000
- Valid
Whether the number fits its country's numbering plan.
Example Yes
- E 164
The number in E.164 form, such as +14169790000. Empty when the number could not be read.
Example +14169790000
- National format
The number as written inside its own country, such as (416) 979-0000.
Example (416) 979-0000
- Number type
Line type: FIXED_LINE, MOBILE, FIXED_LINE_OR_MOBILE, TOLL_FREE, PREMIUM_RATE, SHARED_COST, VOIP, PERSONAL_NUMBER, PAGER, UAN or VOICEMAIL.
Example FIXED_LINE_OR_MOBILE
- Carrier at allocation
Carrier the number range was first allocated to, when known.
Example Three
Location
- Country code
International calling code, such as 1 or 44.
Example 1
- Region
Two-letter country or territory code the number belongs to, such as CA.
Example CA
- Location
Area or city of the number range, in English, when known.
Example Toronto, ON
Dates
- Time zones
IANA time zones of the number's area, such as America/Toronto.
Example America/Toronto
Technical detailsField names and types for developers
Field names and types
The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.
| Field name | Type | Shown on this page as | Filled |
|---|---|---|---|
input | text | Your input | 3 of 3 |
valid | yes or no | Valid | 3 of 3 |
e164 | text | E 164 | 3 of 3 |
national_format | text | National format | 3 of 3 |
country_code | number | Country code | 3 of 3 |
region | text | Region | 3 of 3 |
number_type | text | Number type | 3 of 3 |
carrier_at_allocation | text | Carrier at allocation | 1 of 3 |
location | text | Location | 2 of 3 |
time_zones | list | Time zones | 3 of 3 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | Your input | Valid | E 164 | National format | Number type | Carrier at allocation | Country code | Region | Location | Time zones |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | +14169790000 | Yes | +14169790000 | (416) 979-0000 | FIXED_LINE_OR_MOBILE | — | 1 | CA | Toronto, ON | America/Toronto |
| 2 | +442071838750 | Yes | +442071838750 | 020 7183 8750 | FIXED_LINE | — | 44 | GB | London | Europe/London |
| 3 | +447400123456 | Yes | +447400123456 | 07400 123456 | MOBILE | Three | 44 | GB | — | Europe/Guernsey, Europe/Isle_of_Man, Europe/London |
Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.
Reliability
Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.
Incidents and repairs
How it is kept working What a repair can't do
A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.
- You pay only for records returned. A run that returns none costs nothing.
- Validity means the number fits the numbering plan of its country (length, prefix and range). It does not prove the number is connected or reachable.
- carrier_at_allocation is the carrier a number range was first given to. It is not the current carrier, because numbers can be ported, and it is empty for countries without carrier data (including the US and Canada).
- location is the area or city of the number range, in English, and is empty for mobile and other ranges without one; time_zones can list several zones for a wide area.
- Rules and prefix data come from the open-source libphonenumber project (Apache-2.0) and are read from its current release on every run, so a run needs a few seconds before the first answer.
- One run checks at most 1,000 numbers. Numbers are not stored. Extensions such as x123 are ignored.
- Numbers without a + prefix need default_country (two letters, such as CA); without it they are reported as not valid.
- Not affiliated with or endorsed by Google.
Version history
A run uses the live version unless the request names another one with version.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.