Phone number validation: valid, E.164 format, country and line type

$0.01 per call · failed calls are never charged · no account or API key needed

Validate and format a phone number with the libphonenumber rules: whether it is valid and possible, the E.164 form, international and national formatting, country, calling code and line type (mobile, fixed-line, toll-free, VoIP…). Give +country code, or a national number and a two-letter country. Offline: nothing is sent and it does not say the line is in service. Use to clean contact lists or check a number before an SMS.

Run it free (25 free calls) Buy credits by card (from $5) Example result (JSON)

Try it with your own inputs

Phone number, ideally with +country code

Uses one of your 25 free calls. Nothing is charged, and a call that fails is not counted.

Inputs

NameTypeDescription
number (required)stringPhone number, ideally with +country code
countrystringTwo-letter country for national numbers without +code (US, GB, SE…)

Request

Over HTTP, with a card key from /credits:

curl -H "Authorization: Bearer adt_…" "https://agent-data-tools.revmesh2074.workers.dev/phone/validate?number=%2B1%20650-253-0000"

Or one of your 25 free calls, no key:

curl "https://agent-data-tools.revmesh2074.workers.dev/phone/validate?number=%2B1%20650-253-0000&trial=1"

Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum or Solana over x402; Base or Tempo over MPP) and retries.

Example result

{
  "input": "+1 650-253-0000",
  "valid": true,
  "possible": true,
  "e164": "+16502530000",
  "country": "US",
  "countryCallingCode": "+1",
  "nationalNumber": "6502530000",
  "international": "+1 650 253 0000",
  "national": "(650) 253-0000",
  "uri": "tel:+16502530000",
  "type": "fixed-line-or-mobile"
}

From an AI agent (MCP)

Add the MCP server to Claude, Cursor or any MCP client. This tool is phone_validate, and the first 25 successful calls are free:

https://agent-data-tools.revmesh2074.workers.dev/mcp

Related tools