{"uid":"cap_ipY3VphTaOiK6O3EALa_p","slug":"agentstall-za-normalize-phone-number-715597ec","name":"AgentStall ZA – Normalize Phone Number","description":"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.","url":"https://agentstall.nilesh-b54.workers.dev/v1/normalize-phone?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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"}}}}},"responseSchema":{"type":"json","example":{"e164":"+27821234567","type":"mobile","valid":true,"national":"082 123 4567"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_7TeoKCUvVVoHdggoScYSU","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Normalizes and validates a South African phone number, returning E.164 format, national format, and line type (mobile/landline).","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"CRM phone number cleanup","prompt":"I have a contact record with the number '(011) 555-1234' — can you normalize it to the proper South African E.164 format and confirm whether it's a mobile or landline?"},{"title":"SMS pre-send validation","prompt":"Before I send an SMS to +27 82 999 8888, can you verify the number is valid and tell me its national format and line type?"},{"title":"Form input sanitization","prompt":"A user just entered '0831234567' into our sign-up form — can you validate it's a real South African phone number and give me the standard formatted versions?"}],"resultDescription":"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).","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-02T00:36:38.284Z","isFirstParty":false,"canonicalSlug":"agentstall-za-normalize-phone-number-715597ec"}