{"uid":"cap_vmqJzmFzrOVse3zlY_Qiq","slug":"phone-number-parse-355fb46a","name":"Phone Number Parse","description":"Parse a phone number (E.164 or national) into country code, national number, region, number type and validity.","url":"https://phone-tools.x402tookit.com/phone-parse?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, E.164 (+...) or national format"},"default_region":{"type":"string","description":"ISO region for national numbers (required without +), e.g. US"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"e164":{"type":["null","string"]},"valid":{"type":["boolean","null"]},"parsed":{"type":["boolean","null"]},"region":{"type":["null","string"]},"source":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"extension":{},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"numberType":{"type":["null","string"]},"attribution":{"type":["null","string"]},"countryCode":{"type":["null","number"]},"lengthCheck":{"type":["null","string"]},"metadataSource":{"type":["null","string"]},"nationalNumber":{"type":["null","string"]},"metadataBuiltOn":{"type":["null","string"]},"possibleRegions":{"type":["array","null"],"items":{"type":"string"}},"countryCodeSource":{"type":["null","string"]},"regionsWhereValid":{"type":["array","null"],"items":{"type":"string"}}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_AS1sAMMcLgAdSQ037lUu4","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses a phone number (E.164 or national format) into country code, national number, region, number type, and validity status.","exampleAgentPrompt":"Can you parse the phone number +14155552671 and tell me what country it's from, whether it's valid, and what type of number it is (mobile, landline, etc.)?","exampleUseCases":[{"title":"Validate user-submitted phone number","prompt":"A user just entered '(415) 555-2671' as their phone number with no country prefix — can you parse it as a US number and tell me if it's valid and what type it is?"},{"title":"Normalize international number for CRM","prompt":"I need to normalize the number +447911123456 to E.164 format and find out its country code, region, and whether it's a mobile number before I store it in our CRM."},{"title":"Check phone number before SMS campaign","prompt":"Before we add +49301234567 to our SMS list, can you check if it's a valid number, what type it is, and which region it belongs to?"}],"resultDescription":"Returns a structured object containing: E.164-normalized form, country code (numeric), national number, region (ISO), number type (mobile/fixed-line/toll-free/etc.), validity flag, parsed flag, verdict, summary, possible regions, length check result, and metadata source/build date.","failureModes":["Invalid or unparseable number returns parsed:false and valid:false with reasons","Missing default_region for national-format number (without +) causes parse failure","Malformed input (non-numeric characters) returns an error or invalid result","Ambiguous number with multiple possible regions returns a list in possibleRegions","Number within a valid country code but invalid locally returns valid:false with length or pattern reasons"],"whenToPreferThis":"Choose this endpoint when you need to decompose a phone number into structured fields (country code, national number, region, type) and validate it, especially if you need number type classification (mobile vs landline) or E.164 normalization. Prefer this over a simple regex check when accuracy matters and you need metadata like region or number type. Best for data enrichment, form validation, and pre-flight checks before SMS/voice delivery.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-02T18:32:47.345Z","isFirstParty":false,"canonicalSlug":"phone-number-parse-355fb46a"}