{"uid":"cap_c5eigA_rYI7Qgzb0cfaSN","slug":"agent-data-tools-revmesh2074-workers-dev-phone-number-validation-e-a9505c72","name":"Phone Number Validation (E.164, Country, Line Type)","description":"Validate and format a phone number with the libphonenumber rules: whether it is valid and possible, the E.164 form, international and national formatting, country, calling code and line type (mobile, fixed-line, toll-free, VoIP…). Give +country code, or a national number and a two-letter country. Offline: nothing is sent and it does not say the line is in service. Use to clean contact lists or check a number before an SMS.","url":"https://agent-data-tools.revmesh2074.workers.dev/phone/validate?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["number"],"properties":{"number":{"type":"string","description":"Phone number, ideally with +country code"},"country":{"type":"string","description":"Two-letter country for national numbers without +code (US, GB, SE…)"}}},"responseSchema":{"type":"object","properties":{"uri":{"type":"string"},"e164":{"type":"string"},"type":{"type":"string"},"input":{"type":"string"},"valid":{"type":"boolean"},"country":{"type":"string"},"national":{"type":"string"},"possible":{"type":"boolean"},"international":{"type":"string"},"nationalNumber":{"type":"string"},"countryCallingCode":{"type":"string"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USD","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_0x_AwaGHG7KgjFvfO-FaX","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"agent-data-tools.revmesh2074.workers.dev","brandSlug":"agent-data-tools-revmesh2074-workers-dev-x402","brandBaseUrl":"https://agent-data-tools.revmesh2074.workers.dev","brandDocsUrl":null,"whatItDoes":"Validates and formats a phone number using libphonenumber, returning validity, E.164 form, country, calling code, and line type (mobile, fixed-line, VoIP, toll-free, etc.)","exampleAgentPrompt":"Can you validate the phone number +14155552671 and tell me if it's valid, what country it's from, and whether it's a mobile or fixed-line number?","exampleUseCases":[{"title":"Clean contact list before SMS campaign","prompt":"I have this phone number from a form submission — +447911123456 — can you check if it's valid, what country it's from, and whether it's a mobile line before I send an SMS to it?"},{"title":"Normalize national number to E.164","prompt":"I have a US phone number written without the country code: 415-555-0198. Can you validate it as a US number and give me the proper E.164 format?"},{"title":"Detect VoIP or toll-free lines","prompt":"Check this number +18005551234 — is it valid, and is it a toll-free or VoIP line rather than a real mobile or landline?"}],"resultDescription":"Returns a JSON object with: whether the number is valid and possible, the E.164 formatted number, international and national string formats, the two-letter country code, the numeric country calling code, the national number portion, and the line type (mobile, fixed-line, toll-free, VoIP, premium-rate, etc.), plus the original input echoed back.","failureModes":["Invalid or unparseable number returns valid:false and possible:false with no E.164 output","Missing required 'number' parameter returns an error response","National number without a 'country' hint may fail to parse or return wrong country","Non-existent but plausible-format numbers return valid:false — endpoint does not confirm line is in service","Ambiguous national numbers that are valid in multiple countries may resolve incorrectly without a country hint"],"whenToPreferThis":"Use this endpoint when you need offline, rules-based phone number validation and formatting using the industry-standard libphonenumber library — ideal for cleaning CRM or contact lists, validating phone input before sending SMS, or normalizing numbers to E.164 for storage. Prefer this over live carrier lookup services when you do not need to confirm whether the line is actually active or currently in service, and when privacy is important since no data is sent externally.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-28T18:06:30.853Z","isFirstParty":false,"canonicalSlug":"agent-data-tools-revmesh2074-workers-dev-phone-number-validation-e-a9505c72"}