{"uid":"cap_qUq2s9hS_RppwPwpJWKkG","slug":"phone-check-a2292756","name":"Phone Check","description":"Turn the many ways a phone number gets typed into one E.164 string: strips spacing, brackets, the 00 international prefix and the national trunk zero people include out of habit. Returns country, calling code, national number, and whether the length matches that country's numbering plan. Line type (mobile / fixed) is reported ONLY for countries whose ranges are unambiguous and is null elsewhere with a reason — never guessed. Offline: it does not check that the number is assigned or reachable.","url":"https://402.com.tr/api/x402/phone-check","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"},"pathParams":{"type":"object"},"queryParams":{"type":"object","required":["phone"],"properties":{"phone":{"type":"string","description":"Phone number"},"country":{"type":"string","description":"Calling code, if the number has no +"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"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_3aOAy7Tq6Mu2XTGC2M6Xn","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":"Normalizes a phone number to E.164 format and validates its length against the country's numbering plan, returning country, calling code, national number, and (where deterministic) line type.","exampleAgentPrompt":"Can you validate and normalize this phone number to E.164 format: +44 (0)20 7946 0958? I need to know the country, calling code, national number, and whether it's the right length.","exampleUseCases":[{"title":"Normalize user-submitted contact numbers","prompt":"A user just signed up and entered their phone as '0033 1 42 86 00 00' — can you clean that up into a proper E.164 number and tell me what country it's from?"},{"title":"Pre-flight check before SMS send","prompt":"Before I send an SMS to +1 (555) 867-5309, can you validate that number and confirm it's a valid US mobile line and properly formatted?"},{"title":"Detect line type for routing logic","prompt":"I have the number '07911 123456' and I think it's a UK number — can you parse it with country code 44 and tell me if it's mobile or fixed line?"}],"resultDescription":"Returns a JSON object containing the normalized E.164 string, the country name and ISO code, the international calling code, the national number segment, a boolean indicating whether the number length matches the country's numbering plan, and (where deterministic) the line type (mobile or fixed) or null with a reason if it cannot be determined. Does not verify whether the number is actually assigned or reachable.","failureModes":["Missing or unparseable phone number returns an error or invalid status","Ambiguous numbers without a country hint may be misattributed to the wrong country","Line type returned as null for countries with overlapping mobile/fixed ranges","Numbers with non-standard formatting that cannot be stripped may fail parsing","Calling code provided via the country param does not match the number's prefix — conflict error"],"whenToPreferThis":"Choose this endpoint when you need lightweight, offline phone number normalization and format validation — especially for sanitizing user-submitted input before storage, display, or downstream API calls. It is ideal when you do not need live number reachability or carrier lookup and want a fast, low-cost ($0.002) deterministic parse. Prefer it over carrier lookup APIs when real-time assignment checks are unnecessary.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:34:54.486Z","isFirstParty":false}