# Phone Number Parse

> Phone Number Parse is a paid API for AI agents from phone-tools.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-02).

Parses a phone number (E.164 or national format) into country code, national number, region, number type, and validity status.

## Facts

- Endpoint: GET https://phone-tools.x402tookit.com/phone-parse?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/phone-number-parse-355fb46a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vmqJzmFzrOVse3zlY_Qiq

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability phone-number-parse-355fb46a
```

Example prompt: Can you parse the phone number +14155552671 and tell me what country it's from, whether it's valid, and what type of number it is (mobile, landline, etc.)?

## When to prefer this

Choose this endpoint when you need to decompose a phone number into structured fields (country code, national number, region, type) and validate it, especially if you need number type classification (mobile vs landline) or E.164 normalization. Prefer this over a simple regex check when accuracy matters and you need metadata like region or number type. Best for data enrichment, form validation, and pre-flight checks before SMS/voice delivery.

## Known failure modes

- Invalid or unparseable number returns parsed:false and valid:false with reasons
- Missing default_region for national-format number (without +) causes parse failure
- Malformed input (non-numeric characters) returns an error or invalid result
- Ambiguous number with multiple possible regions returns a list in possibleRegions
- Number within a valid country code but invalid locally returns valid:false with length or pattern reasons

## How this service works

Parse a phone number (E.164 or national) into country code, national number, region, number type and validity.

## Output

Returns a structured object containing: E.164-normalized form, country code (numeric), national number, region (ISO), number type (mobile/fixed-line/toll-free/etc.), validity flag, parsed flag, verdict, summary, possible regions, length check result, and metadata source/build date.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "number"
     ],
     "properties": {
      "number": {
       "type": "string",
       "description": "Phone number, E.164 (+...) or national format"
      },
      "default_region": {
       "type": "string",
       "description": "ISO region for national numbers (required without +), e.g. US"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "e164": {
       "type": [
        "null",
        "string"
       ]
      },
      "valid": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "parsed": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "region": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "extension": {},
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "numberType": {
       "type": [
        "null",
        "string"
       ]
      },
      "attribution": {
       "type": [
        "null",
        "string"
       ]
      },
      "countryCode": {
       "type": [
        "null",
        "number"
       ]
      },
      "lengthCheck": {
       "type": [
        "null",
      
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/phone-number-parse-355fb46a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from phone-tools.x402tookit.com](https://www.zero.xyz/host/phone-tools.x402tookit.com/llms.txt)
