# Phone Number E.164 Validator

> Phone Number E.164 Validator is a paid API for AI agents from api.x402node.dev, paid per call via x402, $0.0022/call, status unknown (last checked 2026-09-14).

Validates a phone number against the E.164 international format, returning validity, normalized E.164 form, and parsed country code

## Facts

- Endpoint: GET https://api.x402node.dev/validate/phone
- Price: $0.0022/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-x402node-dev-a1321326
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_knaFnMXMrkS6Zyq9KFjqx

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 api-x402node-dev-a1321326
```

Example prompt: Can you check whether +14155552671 is a valid international phone number in E.164 format and tell me the country code?

## When to prefer this

Use this endpoint when you need to validate a single phone number against the E.164 international standard before storing it in a database, sending it to a messaging API, or verifying user input. It is lightweight, deterministic, and does not check carrier-level liveness — just format correctness and country code parsing.

## Known failure modes

- Phone number missing leading '+' returns valid: false
- Subscriber number too short or too long returns valid: false
- Non-numeric characters in subscriber portion return valid: false
- Country code longer than 3 digits returns valid: false
- Empty or missing phone field may return 400 error
- Malformed request body may return 4xx error

## How this service works

Phone number validator: E.164 format check, international phone validation, country code parser, phone number format and mobile/line-type hints. Pass phone=+14155552671. For AI agents doing phone lookup, phone validation and number formatting. 电话号码校验。 Accepts payment on Base or Solana — either network works.

## Output

Returns a JSON object with the original phone input, a boolean valid flag indicating E.164 compliance, the normalized E.164 string (or null if invalid), and the parsed country code (or null if not determinable).

## 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": [
      "phone"
     ],
     "properties": {
      "phone": {
       "type": "string",
       "description": "Phone number to validate, e.g. +14155552671 or a local number with country context."
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-x402node-dev-a1321326/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402node.dev](https://www.zero.xyz/host/api.x402node.dev/llms.txt)
