# Phone Number Validation (E.164, Country, Line Type)

> Phone Number Validation (E.164, Country, Line Type) is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-28).

Validates and formats a phone number using libphonenumber, returning validity, E.164 form, country, calling code, and line type (mobile, fixed-line, VoIP, toll-free, etc.)

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/phone/validate?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Provider: agent-data-tools.revmesh2074.workers.dev
- Website: https://agent-data-tools.revmesh2074.workers.dev
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-phone-number-validation-e-a9505c72
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_c5eigA_rYI7Qgzb0cfaSN

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 agent-data-tools-revmesh2074-workers-dev-phone-number-validation-e-a9505c72
```

Example prompt: Can you validate the phone number +14155552671 and tell me if it's valid, what country it's from, and whether it's a mobile or fixed-line number?

## When to prefer this

Use this endpoint when you need offline, rules-based phone number validation and formatting using the industry-standard libphonenumber library — ideal for cleaning CRM or contact lists, validating phone input before sending SMS, or normalizing numbers to E.164 for storage. Prefer this over live carrier lookup services when you do not need to confirm whether the line is actually active or currently in service, and when privacy is important since no data is sent externally.

## Known failure modes

- Invalid or unparseable number returns valid:false and possible:false with no E.164 output
- Missing required 'number' parameter returns an error response
- National number without a 'country' hint may fail to parse or return wrong country
- Non-existent but plausible-format numbers return valid:false — endpoint does not confirm line is in service
- Ambiguous national numbers that are valid in multiple countries may resolve incorrectly without a country hint

## How this service works

Validate and format a phone number with the libphonenumber rules: whether it is valid and possible, the E.164 form, international and national formatting, country, calling code and line type (mobile, fixed-line, toll-free, VoIP…). Give +country code, or a national number and a two-letter country. Offline: nothing is sent and it does not say the line is in service. Use to clean contact lists or check a number before an SMS.

## Output

Returns a JSON object with: whether the number is valid and possible, the E.164 formatted number, international and national string formats, the two-letter country code, the numeric country calling code, the national number portion, and the line type (mobile, fixed-line, toll-free, VoIP, premium-rate, etc.), plus the original input echoed back.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "number"
 ],
 "properties": {
  "number": {
   "type": "string",
   "description": "Phone number, ideally with +country code"
  },
  "country": {
   "type": "string",
   "description": "Two-letter country for national numbers without +code (US, GB, SE…)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "uri": {
   "type": "string"
  },
  "e164": {
   "type": "string"
  },
  "type": {
   "type": "string"
  },
  "input": {
   "type": "string"
  },
  "valid": {
   "type": "boolean"
  },
  "country": {
   "type": "string"
  },
  "national": {
   "type": "string"
  },
  "possible": {
   "type": "boolean"
  },
  "international": {
   "type": "string"
  },
  "nationalNumber": {
   "type": "string"
  },
  "countryCallingCode": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-phone-number-validation-e-a9505c72/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
