# Phone Number Formatter (E.164 & Display Formats)

> Phone Number Formatter (E.164 & Display Formats) is a paid API for AI agents from x402.forgemesh.io, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-15).

Normalizes messy phone number input into E.164, national, and international display formats while detecting country and line type (mobile vs landline).

## Facts

- Endpoint: POST https://x402.forgemesh.io/phone-number-formatter
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/phone-number-formatter-e-164-display-formats-8cf3763b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IGoC8Gkodk_iKadjd0266

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-formatter-e-164-display-formats-8cf3763b -d '<json body>'
```

Example prompt: Can you normalize this phone number '(212) 555-0198' into E.164 and international display format? It's a US number.

## When to prefer this

Use this endpoint when you need to normalize heterogeneous phone number input (from forms, CSVs, or user entry) into a single consistent E.164 format plus human-readable display variants, especially when CRM cleanup, international dialing, or SMS routing requires one canonical representation. Prefer this over manual regex parsing when country detection and line-type classification are also needed.

## Known failure modes

- Unparseable input (gibberish or too few digits) returns an error or null result
- Ambiguous national numbers without a country hint may be misrouted to the wrong country
- Line type (mobile vs landline) may be indeterminate for some regions or VoIP numbers
- Invalid country code hint causes fallback to US default
- Numbers with extensions may not format cleanly

## How this service works

Formats any phone number into its E.164 canonical form plus national and international display formats, detecting the country and line type, mobile vs landline where determinable, from messy human input. For CRM cleanup, signup forms, and dialing systems that need one consistent format instead of guessing at punctuation.

## Output

Returns the phone number in E.164 canonical form (e.g. +12125550198), national display format, and international display format, along with detected country and line type (mobile or landline where determinable).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "number": {
   "type": "string"
  },
  "country": {
   "type": "string",
   "description": "2-letter default country for national input, default US"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "e164": "+17135550142",
  "valid": true,
  "country": "US",
  "international": "+1 713 555 0142"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/phone-number-formatter-e-164-display-formats-8cf3763b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.forgemesh.io](https://www.zero.xyz/host/x402.forgemesh.io/llms.txt)
