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.

Try it
Ready-made, maintained by usRecords, 10 fieldsv1.0

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

Phone numbers
Phone numbers to check, in any common format such as +1 416 979 0000 or (416) 979-0000. One per line, or separated by commas.
Example: +14169790000, +442071838750
Default countryoptional
Two-letter country code used for numbers written without a + prefix, such as CA or GB.
Example: CA

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
Endpoint
POSThttps://pullrow.dev/v1/apis/phone-number-validator/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
10,000 free records of this API to start. No card.
curl
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.

phone_numberslistrequired
Phone numbers to check, in any common format such as +1 416 979 0000 or (416) 979-0000.
example: +14169790000, +442071838750
default_countrytext
Two-letter country code used for numbers written without a + prefix, such as CA or GB.
example: CA

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 nameTypeShown on this page asFilled
inputtextYour input3 of 3
validyes or noValid3 of 3
e164textE 1643 of 3
national_formattextNational format3 of 3
country_codenumberCountry code3 of 3
regiontextRegion3 of 3
number_typetextNumber type3 of 3
carrier_at_allocationtextCarrier at allocation1 of 3
locationtextLocation2 of 3
time_zoneslistTime zones3 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordYour inputValidE 164National formatNumber typeCarrier at allocationCountry codeRegionLocationTime zones
1+14169790000Yes+14169790000(416) 979-0000FIXED_LINE_OR_MOBILE—1CAToronto, ONAmerica/Toronto
2+442071838750Yes+442071838750020 7183 8750FIXED_LINE—44GBLondonEurope/London
3+447400123456Yes+44740012345607400 123456MOBILEThree44GB—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.
Known limits
  • 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.