# Phone Number Normalizer (E.164, libphonenumber)

> Phone Number Normalizer (E.164, libphonenumber) is a paid API for AI agents from api.strale.io, paid per call via x402, $0.0324/call, status unknown (last checked 2026-10-12, last successful call 2026-04-29).

Parses and normalizes a phone number string to E.164 format, detecting country, carrier type, and validating format using libphonenumber.

## Facts

- Endpoint: GET https://api.strale.io/x402/phone-normalize?utm_source=zero.xyz
- Price: $0.0324/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Last successful call: 2026-04-29
- Success rate: 100% of calls made through Zero
- Rating: 5.0 / 5 from 1 review
- Activations on Zero: 1
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-strale-io-26f4aa0c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DyL-zuhQmAdHoDd6aKXpV

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 api-strale-io-26f4aa0c
```

Example prompt: Can you normalize the phone number '070-123 45 67' to E.164 format? It's a Swedish number, so use SE as the default country.

## When to prefer this

Use this endpoint when you need to canonicalize, validate, or enrich phone number data — especially for international numbers that may be formatted inconsistently. Ideal before storing contacts, sending SMS, or verifying user identity. Backed by Google's libphonenumber for broad international coverage.

## Known failure modes

- Invalid or unparseable phone number string returns an error or invalid flag
- Missing required phone_string parameter returns 400 bad request
- Ambiguous local number without default_country may fail to parse correctly
- Unsupported number format or region returns a parse failure

## How this service works

Parse and normalize phone numbers to E.164 format. Detects country, carrier type, validates format. Uses libphonenumber.

## Output

Returns the phone number in E.164 format (e.g. +46701234567), detected country code, carrier type classification, and a validation flag indicating whether the number is valid.

## Example request

```json
{
 "phone_string": "070-123 45 67",
 "default_country": "SE"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "phone_string"
 ],
 "properties": {
  "phone_string": {
   "type": "string",
   "description": "Phone number to normalize"
  },
  "default_country": {
   "type": "string",
   "description": "ISO country code (e.g. SE)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "e164": {
  "type": "string"
 },
 "type": {
  "type": "string"
 },
 "valid": {
  "type": "boolean"
 },
 "country_code": {
  "type": "string"
 },
 "national_format": {
  "type": "string"
 },
 "international_format": {
  "type": "string"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-strale-io-26f4aa0c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.strale.io](https://www.zero.xyz/host/api.strale.io/llms.txt)
