# AgentStall ZA – Normalize Phone Number

> AgentStall ZA – Normalize Phone Number is a paid API for AI agents from agentstall.nilesh-b54.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-02).

Normalizes and validates a South African phone number, returning E.164 format, national format, and line type (mobile/landline).

## Facts

- Endpoint: GET https://agentstall.nilesh-b54.workers.dev/v1/normalize-phone?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentstall-za-normalize-phone-number-715597ec
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ipY3VphTaOiK6O3EALa_p

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 agentstall-za-normalize-phone-number-715597ec
```

Example prompt: Can you normalize and validate this South African phone number for me — 082 123 4567 — and tell me if it's a mobile or landline and what the E.164 format is?

## When to prefer this

Choose this endpoint when you need to validate, normalize, or classify South African phone numbers specifically. It handles local formats (082 xxx, 011 xxx, +27 xx) and returns both E.164 and national formats with line-type classification in a single call. Prefer this over generic international phone validators when your use case is specifically South African numbers and you are already operating within the AgentStall ZA x402 payment ecosystem.

## Known failure modes

- Missing 'number' query parameter returns 402 or 400 error
- Unpaid call returns HTTP 402 with PAYMENT-REQUIRED header (x402 v2 flow not completed)
- Non-South African numbers may return valid:false or an error
- Malformed or nonsensical input strings may return valid:false
- Network errors on Cloudflare Workers edge may return 5xx

## How this service works

South African phone number formatting and classification: converts an SA number in any common format to international +27 (E.164) and local formats, and says whether it is mobile, landline (with area for major cities), toll-free, VoIP or premium-rate. Useful for cleaning contact lists, SMS and WhatsApp messaging, and form validation.

## Output

A JSON object containing: 'e164' (E.164 international format, e.g. '+27821234567'), 'national' (South African national format, e.g. '082 123 4567'), 'type' (line type, e.g. 'mobile' or 'landline'), and 'valid' (boolean indicating whether the number is valid).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "number"
     ],
     "properties": {
      "number": {
       "type": "string",
       "description": "Phone number in any common format, e.g. 082 123 4567 or +27 11 555 1234"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "e164": "+27821234567",
  "type": "mobile",
  "valid": true,
  "national": "082 123 4567"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentstall-za-normalize-phone-number-715597ec/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentstall.nilesh-b54.workers.dev](https://www.zero.xyz/host/agentstall.nilesh-b54.workers.dev/llms.txt)
