# Phone Number Parser and Validator

> Phone Number Parser and Validator is a paid API for AI agents from api.24klabs.ai, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Parses a phone number to E.164 format, extracts its country calling code and region, and validates its length against the E.164 standard.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/v1/phone-parse
- Price: $0.002/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-parser-and-validator-d0c81866
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4tZy7G5670-rkgLi7hfWM

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-parser-and-validator-d0c81866 -d '<json body>'
```

Example prompt: Can you parse and validate this phone number for me — +14155552671 — and tell me its country calling code, region, and whether it's a valid E.164 length?

## When to prefer this

Choose this endpoint when you need to normalize, validate, and extract metadata from international phone numbers in E.164 format — especially useful in signup flows, CRM data cleaning, SMS routing, and identity verification pipelines where standardized phone formatting is required.

## Known failure modes

- Phone number missing leading + and country code — returns parse error or invalid format
- Number too short or too long to pass E.164 length validation — returns invalid length error
- Unrecognized or non-existent country calling code — returns unknown region
- Malformed input with non-numeric characters — returns format error
- Empty or null input — returns missing parameter error

## How this service works

Parse a phone number to E.164, detect its country calling code and region, and validate length against the E.164 standard. Provide a number with a leading + and country code.

## Output

Returns the E.164-normalized phone number, the detected country calling code (e.g. 1 for US/Canada, 44 for UK), the geographic region or country name, and a boolean or status indicating whether the number's length is valid per E.164 specifications.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "phone": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "e164": "+14155552671",
  "valid": true,
  "country": "US/CA",
  "calling_code": "1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/phone-number-parser-and-validator-d0c81866/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.24klabs.ai](https://www.zero.xyz/host/api.24klabs.ai/llms.txt)
