# agentsvc.io Phone Number Validator

> agentsvc.io Phone Number Validator is a paid API for AI agents from agentsvc.io, paid per call via x402, $0.0045/call, status unknown (last checked 2026-10-10).

Validates and normalizes a phone number, returning its line type, country, and multiple formatted representations

## Facts

- Endpoint: POST https://agentsvc.io/api/v1/proxy/phone-validate?utm_source=zero.xyz
- Price: $0.0045/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentsvc-io-phone-number-validator-de02b434
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jMpzZ0trXBVYapfrD660h

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 agentsvc-io-phone-number-validator-de02b434 -d '<json body>'
```

Example prompt: Can you check if '+4915123456789' is a valid phone number and tell me what type of line it is and how it should be formatted?

## When to prefer this

Use this endpoint when you need to validate, normalize, or classify a phone number without requiring a full SMS verification loop. It is ideal for pre-submission validation of user-entered phone numbers, CRM data cleansing, or routing logic based on line type. Prefer this over SMS-based verification when you only need format and line-type checks, not proof of ownership. Pay-per-call USDC pricing via x402 means no account setup is needed.

## Known failure modes

- Invalid or unparseable phone number format returns is_valid: false
- Missing country code for a national number without + prefix may cause parsing failure or incorrect country assignment
- Unsupported country codes may result in limited validation accuracy
- Malformed input (non-numeric characters, empty string) may return an error or invalid result

## How this service works

86 APIs for AI agents: web scraping and crawling to Markdown, AI summaries, data extraction and cited answers, screenshots and PDF, PDF, OCR and document conversion, news, paper and developer search and more, paid per call with USDC on Base, Solana, Polygon or Arbitrum via x402. No account, no API key, free sample on every service.

## Output

A JSON object containing: the E.164 normalized number, formatted phone string, national format, international format, country calling code, ISO country code, line type (e.g. MOBILE, LANDLINE), and boolean validity and possibility flags.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "phone": {
   "type": "string",
   "description": "Phone number to validate. Can be in any format: E.164 ('+4915123456789'), national ('015123456789'), or international ('0049 151 23456789'). Include country code (+ prefix) for best results."
  },
  "country_code": {
   "type": "string",
   "description": "ISO 3166-1 alpha-2 country code hint for parsing national numbers without country prefix (e.g. 'DE' for Germany, 'US' for United States). Optional if number includes country code (+...)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "e164": "+4915123456789",
   "phone": "+49 151 23456789",
   "checks": {
    "is_valid": true,
    "is_possible": true
   },
   "is_valid": true,
   "line_type": "MOBILE",
   "country_code": "DE",
   "national_format": "0151 23456789",
   "country_calling_code": "49",
   "international_format": "+49 151 23456789"
  },
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentsvc-io-phone-number-validator-de02b434/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentsvc.io](https://www.zero.xyz/host/agentsvc.io/llms.txt)
