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
https://api.phone-check.appQuick start
- Sign up and open your workspace.
- Under API keys, create a key and copy it: it is shown once.
- Send it in the x-api-key header with the number in E.164 format, as below.
curl --get "https://api.phone-check.app/phone/details" \
--data-urlencode "phone=+14155552671" \
-H "x-api-key: $API_KEY"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.
| Route | Credits | Answers |
|---|---|---|
GET /phone/details | 1 | Validity, E.164 number, line type, best-available carrier, country, region, timezone, disposable signal. |
GET /phone/extra-details | 3 | Everything above plus the operating carrier (OCN) and class, holding company, line-type codes, portability and the wholesale-hosted flag. |
GET /phone/full-details | 6 | Everything 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_CREDITSmeans 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 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.
{
"mcpServers": {
"phone-check-app": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.phone-check.app/mcp",
"--header",
"x-api-key:<your-api-key>"
]
}
}
}claude_desktop_config.json: ~/Library/Application Support/Claude/ on macOS, %APPDATA%\Claude\ on Windows. Restart Claude Desktop after saving.
{
"mcpServers": {
"phone-check-app": {
"url": "https://mcp.phone-check.app/mcp",
"headers": {
"x-api-key": "<your-api-key>"
}
}
}
}.cursor/mcp.json in the project, or ~/.cursor/mcp.json for every project.
{
"servers": {
"phone-check-app": {
"type": "http",
"url": "https://mcp.phone-check.app/mcp",
"headers": {
"x-api-key": "<your-api-key>"
}
}
}
}.vscode/mcp.json in the workspace; start the server from the MCP view or Copilot Chat in Agent mode.
{
"mcpServers": {
"phone-check-app": {
"serverUrl": "https://mcp.phone-check.app/mcp",
"headers": {
"x-api-key": "<your-api-key>"
}
}
}
}~/.codeium/windsurf/mcp_config.json; refresh the MCP servers list after saving.
curl https://mcp.phone-check.app/mcp \
-H "x-api-key: <your-api-key>" \
-H "content-type: application/json" \
-H "accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"curl","version":"1.0"}}}'Every request is a JSON-RPC 2.0 POST; send tools/list, then tools/call with {"name": "phone_validate", "arguments": {"phone": "+14155552671"}} the same way.
API reference
Every route with its parameters, answers and errors, generated from the API’s own OpenAPI spec, so it is always current.