# Phone Number Validation & E.164 Formatter

> Phone Number Validation & E.164 Formatter is a paid API for AI agents from gateway.apiosk.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Validates a phone number and returns its E.164 canonical form, validity flag, and detected country code

## Facts

- Endpoint: POST https://gateway.apiosk.com/data-clean/clean/phone
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/phone-number-validation-e-164-formatter-84ad2c20
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZWGlQpk_z-dSI4l1nyzio

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-validation-e-164-formatter-84ad2c20 -d '<json body>'
```

Example prompt: Can you validate and format this phone number — 0612345678 from the Netherlands (country NL) — and tell me if it's valid and what the E.164 version looks like?

## When to prefer this

Use this endpoint when you need to validate, normalize, or format phone numbers to E.164 standard before storing contacts, sending SMS/voice messages, or cleaning CRM data. Prefer it when you need both validity checking and canonical formatting in a single call with country detection.

## Known failure modes

- Invalid or unrecognizable phone number string returns valid=false
- Missing country hint may cause ambiguous parsing for local-format numbers
- Malformed request body or missing 'phone' field returns error
- Unsupported country code may reduce accuracy
- Rate limiting or payment failure returns HTTP 402 or 429

## How this service works

Normalize a phone number to E.164 with bundled offline country dialing metadata.

## Output

Returns a JSON object with: a boolean 'ok' status, the E.164-formatted phone number (e.g. '+31612345678'), a 'valid' boolean indicating whether the number is a legitimate phone number, and the detected or confirmed ISO country code (e.g. 'NL').

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/phone-number-validation-e-164-formatter-84ad2c20/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gateway.apiosk.com](https://www.zero.xyz/host/gateway.apiosk.com/llms.txt)
