{"uid":"cap_TDZt944R83z-nIBKEQOvA","slug":"2s-io-fe91faca","name":"2s.io Phone Number Normalize","description":"Parse, validate and canonicalize a phone number using Google's libphonenumber metadata. Query: number (required; E.164 like \"+14155552671\" or national like \"(415) 555-2671\"), country (optional ISO 3166-1 alpha-2 like US/GB/JP — required when number is not E.164). Returns {input, valid (matches a real number range), possible (right shape/length), e164, national, international, rfc3966, country, countryCallingCode, type (mobile|fixed_line|fixed_line_or_mobile|toll_free|premium_rate|shared_cost|voip|personal_number|pager|uan|voicemail|unknown), possibleCountries[]}. Returns valid:false (not an error) for unparseable input.","url":"https://2s.io/api/phone/normalize","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"const":"http"},"method":{"const":"GET"},"queryParams":{"required":["number"],"properties":{"number":{"type":"string","description":"Phone number, E.164 or national if country is provided."},"country":{"type":"string","description":"ISO 3166-1 alpha-2 country code (required if number is not E.164)."}}}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"number":"(415) 555-2671","country":"US"}}},"response":{"data":{"ok":true,"items":[{"e164":"+14155552671","type":"fixed_line_or_mobile","input":"(415) 555-2671","valid":true,"country":"US","rfc3966":"tel:+14155552671","national":"(415) 555-2671","possible":true,"international":"+1 415 555 2671","possibleCountries":["US"],"countryCallingCode":"+1"}],"total":1,"source":{"url":"https://2s.io","license":"No upstream license — computed by 2s.io","provider":"libphonenumber (Google) metadata"}},"meta":{"cost":{"usd":0.001,"tier":0},"caller":"x402","version":null,"endpoint":"phone.normalize","settlement":{"txHash":"0x99ec4f5f2a1651267fde4c46e1bf9f642c672d6da4e34754a39a9e4249e496a2","network":"eip155:8453","success":true}}}},"exampleRequest":{"number":"(415) 555-2671","country":"US"},"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.0025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_TO_R30FtalRPIt4OU0aiw","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0025","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parse, validate, and canonicalize a phone number using Google's libphonenumber metadata, returning E.164, national, and international formats along with type and validity.","exampleAgentPrompt":"Can you validate and normalize the phone number '(415) 555-2671' for the US — is it a real number, what's its E.164 format, and is it a mobile or landline?","exampleUseCases":null,"resultDescription":"Returns a JSON object with: input (original), valid (boolean — matches a real number range), possible (boolean — right shape/length), e164 (e.g. +14155552671), national, international, rfc3966, country (ISO code), countryCallingCode, type (mobile|fixed_line|fixed_line_or_mobile|toll_free|premium_rate|shared_cost|voip|personal_number|pager|uan|voicemail|unknown), and possibleCountries[]. Returns valid:false (not an HTTP error) for unparseable input.","failureModes":["Unparseable number: returns valid:false and possible:false rather than an HTTP error","Missing country code when number is national format: may return invalid result or fail to parse correctly","Invalid country code provided: parsing may fail or return unexpected results","Number outside any known range: valid:false, possible:false with empty possibleCountries","Network/payment failure: HTTP 402 if payment not provided, HTTP 4xx/5xx on infrastructure errors"],"whenToPreferThis":"Use this endpoint when you need authoritative phone number validation backed by Google's libphonenumber metadata — the gold standard for phone parsing. Prefer it over regex-based validation when you need to distinguish valid (real number range) from merely possible (right length/shape), determine the phone type (mobile vs. landline vs. VoIP), or obtain clean E.164/international/national/RFC3966 formatted output from messy user input.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:49:14.687Z","isFirstParty":false}