{"uid":"cap_4tZy7G5670-rkgLi7hfWM","slug":"phone-number-parser-and-validator-d0c81866","name":"Phone Number Parser and Validator","description":"Parse a phone number to E.164, detect its country calling code and region, and validate length against the E.164 standard. Provide a number with a leading + and country code.","url":"https://api.24klabs.ai/api/v1/phone-parse","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"phone":{"type":"string"}}},"responseSchema":{"type":"json","example":{"e164":"+14155552671","valid":true,"country":"US/CA","calling_code":"1"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_uDyCZYTFU1qKxNqzZ4mL4","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","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 to E.164 format, extracts its country calling code and region, and validates its length against the E.164 standard.","exampleAgentPrompt":"Can you parse and validate this phone number for me — +14155552671 — and tell me its country calling code, region, and whether it's a valid E.164 length?","exampleUseCases":[{"title":"Validate user phone at signup","prompt":"Before storing this new user's phone number +447911123456, can you check it's a properly formatted E.164 number and tell me what country it belongs to?"},{"title":"Normalize CRM phone data","prompt":"I have a phone number +33612345678 from a lead in my CRM — can you parse it to E.164, confirm the country calling code and region, and tell me if the length is valid?"},{"title":"Detect region for SMS routing","prompt":"I need to route an SMS to +5511987654321 — can you parse it and tell me the country code and region so I can pick the right carrier?"}],"resultDescription":"Returns the E.164-normalized phone number, the detected country calling code (e.g. 1 for US/Canada, 44 for UK), the geographic region or country name, and a boolean or status indicating whether the number's length is valid per E.164 specifications.","failureModes":["Phone number missing leading + and country code — returns parse error or invalid format","Number too short or too long to pass E.164 length validation — returns invalid length error","Unrecognized or non-existent country calling code — returns unknown region","Malformed input with non-numeric characters — returns format error","Empty or null input — returns missing parameter error"],"whenToPreferThis":"Choose this endpoint when you need to normalize, validate, and extract metadata from international phone numbers in E.164 format — especially useful in signup flows, CRM data cleaning, SMS routing, and identity verification pipelines where standardized phone formatting is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:46:59.236Z","isFirstParty":false}