Developers

The Phone-Check.app API

Validate phone numbers and read their line type, carrier, geography and exchange data from your own code or an AI agent, one GET request per number.

  • REST + JSON
  • x-api-key
  • MCP server
  • 232 countries
APIhttps://api.phone-check.app

Quick start

  1. Sign up and open your workspace.
  2. Under API keys, create a key and copy it: it is shown once.
  3. Send it in the x-api-key header with the number in E.164 format, as below.
Validate a phone numberbash
curl --get "https://api.phone-check.app/phone/details" \
  --data-urlencode "phone=+14155552671" \
  -H "x-api-key: $API_KEY"
Validate from TypeScriptts
const response = await fetch('https://api.phone-check.app/phone/details?phone=' + encodeURIComponent('+14155552671'), {
  headers: { 'x-api-key': process.env.API_KEY ?? '' },
});
const phone = await response.json();
if (phone.valid && phone.type === 'MOBILE') {
  // safe to text
}

Three lookup depths

Pay only for the answer depth the workflow needs. Each tier is one GET request per number.

RouteCreditsAnswers
GET /phone/details1Validity, E.164 number, line type, best-available carrier, country, region, timezone, disposable signal.
GET /phone/extra-details3Everything above plus the operating carrier (OCN) and class, holding company, line-type codes, portability and the wholesale-hosted flag.
GET /phone/full-details6Everything in extended plus the exchange carrier mix (nxxCarrierMix) and wholesale-share summary (nxxSummary).

Existing integrations keep working.

The previous paths (/v1-get-phone-details, /v1-get-phone-extra-details, /v1-get-phone-full-details) answer with the same JSON as before, with the same API keys.

Authentication

  • Every request carries a workspace API key in the x-api-key header. A key belongs to one workspace and spends that workspace’s credits.
  • Keep keys on your server, never in browser code, analytics events or shared spreadsheets.
  • Revoke a key under API keys and it stops working at once.

Errors, credits and limits

  • Errors answer { "error": "CODE", "message": "…" } with the HTTP status that fits.
  • Each lookup spends its tier’s credits; 402 INSUFFICIENT_CREDITS means the workspace has none left (top up on the pricing page, or turn on auto top-up).
  • Over the rate limit you get 429 with Retry-After in seconds; back off and retry after that time.

MCP server for AI agents

Connect Claude, Cursor, VS Code or any client that speaks Streamable HTTP to https://mcp.phone-check.app/mcp with your API key, and your agent validates numbers with the same credits and answers as the REST API.

Claude Codebash
claude mcp add --transport http phone-check-app https://mcp.phone-check.app/mcp --header "x-api-key: <your-api-key>"

Adds the server to the current project; add --scope user to use it in every project.

API reference

Every route with its parameters, answers and errors, generated from the API’s own OpenAPI spec, so it is always current.