# x402 Utils – Phone Number Validation & Formatting

> x402 Utils – Phone Number Validation & Formatting is a paid API for AI agents from qcb7fnxsbd7fbhj4.68r.lambda-web.us-east-1.on.aws, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-30).

Validates a phone number, identifies its country and type (mobile, fixed line, toll-free, etc.), and returns it formatted as E.164, international, and national formats using libphonenumber metadata.

## Facts

- Endpoint: GET https://qcb7fnxsbd7fbhj4.68r.lambda-web.us-east-1.on.aws/v1/phone?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-utils-phone-number-validation-formatting-e7fe864e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zRTtVVVdKgl0I13gJ6UK7

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 x402-utils-phone-number-validation-formatting-e7fe864e
```

Example prompt: Can you check if +1 650-253-0000 is a valid phone number, tell me what type it is (mobile, landline, etc.) and what country it belongs to, and give me its properly formatted E.164 version?

## When to prefer this

Use this endpoint when you need authoritative phone number validation and multi-format output (E.164, international, national) powered by Google's libphonenumber data — the gold standard for phone parsing. Prefer it over regex-only checks, which cannot verify number range validity or classify type. Ideal for pre-flight checks before sending SMS, normalizing phone data for storage, or enriching contact records with country and line-type metadata.

## Known failure modes

- Invalid or unparseable phone number string returns valid: false with no formatting
- Missing required 'number' query parameter causes a 400 error
- National number provided without a country code (ISO) may fail or misclassify
- Rare or extremely new number ranges may not be recognized by libphonenumber metadata

## How this service works

Check whether a phone number is valid and possible, find its country and type (mobile, fixed line, toll free and others), and format it as E.164, international and national (libphonenumber metadata).

## Output

A JSON object containing: whether the number is valid (boolean), the phone number type (e.g. MOBILE, FIXED_LINE, TOLL_FREE, FIXED_LINE_OR_MOBILE), the ISO country code, and three formatted representations — E.164 (e.g. +16502530000), international (e.g. +1 650 253 0000), and national (e.g. (650) 253-0000).

## 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": "the phone number, international (+81 3-1234-5678) or national with country"
      },
      "country": {
       "type": "string",
       "description": "ISO country code for national numbers, such as JP"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "e164": {},
      "type": {},
      "valid": {},
      "country": {},
      "national": {},
      "international": {}
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "e164": "+16502530000",
  "type": "FIXED_LINE_OR_MOBILE",
  "valid": true,
  "country": "US",
  "national": "(650) 253-0000",
  "international": "+1 650 253 0000"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-utils-phone-number-validation-formatting-e7fe864e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from qcb7fnxsbd7fbhj4.68r.lambda-web.us-east-1.on.aws](https://www.zero.xyz/host/qcb7fnxsbd7fbhj4.68r.lambda-web.us-east-1.on.aws/llms.txt)
