# Phone Number Parser & Validator (24K Labs)

> Phone Number Parser & Validator (24K Labs) 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-13).

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

## Facts

- Endpoint: POST https://api.24klabs.ai/api/phone-parse
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/phone-number-parser-validator-24k-labs-df96b61c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_C5vUr77gw9z0VziI571YH

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-validator-24k-labs-df96b61c -d '<json body>'
```

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

## When to prefer this

Choose this endpoint when you need to parse, normalize, and validate a single phone number to E.164 format with country detection at low cost ($0.002 per call). Ideal for real-time form validation, CRM data enrichment, or pre-flight checks before sending SMS. Prefer this over a full-featured identity verification service when only number format and region detection are needed.

## Known failure modes

- Number missing leading + or country code — returns parse error or invalid format
- Number too short or too long for the detected country — fails length validation
- Unrecognized or unsupported country calling code — returns unknown region
- Completely non-numeric input — returns parse error
- Missing request body or phone field — returns 400 bad request

## 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 phone number in E.164 format, the detected country calling code (e.g. +1, +44), the geographic region or country name, and a boolean or status indicating whether the number's length is valid per the E.164 standard.

## 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-validator-24k-labs-df96b61c/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)
