{"uid":"cap_6VI4queqxOGZffa5yzvqs","slug":"phone-number-compare-c07a9d65","name":"Phone Number Compare","description":"Compare two phone number strings: exact match, same national number, short match or different, with an optional region.","url":"https://phone-tools.x402tookit.com/phone-compare?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":["a","b"],"properties":{"a":{"type":"string","description":"First phone number string"},"b":{"type":"string","description":"Second phone number string"},"default_region":{"type":"string","description":"Region used to read numbers without + (e.g. US)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"level":{"type":["null","string"]},"match":{"type":["boolean","null"]},"detail":{"type":["null","object"],"properties":{"reason":{"type":["null","string"]},"result":{"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"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"attribution":{"type":["null","string"]},"strongMatch":{"type":["boolean","null"]},"metadataSource":{"type":["null","string"]},"metadataBuiltOn":{"type":["null","string"]},"usedDefaultRegion":{"type":["boolean","null"]}}}}}}},"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_YFt7e8M7kR7Yvro9A_3cd","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":"Compares two phone number strings and returns whether they are an exact match, same national number, short match, or different — with optional region context.","exampleAgentPrompt":"Are +14155552671 and (415) 555-2671 the same phone number? Use US as the default region.","exampleUseCases":[{"title":"Deduplicating customer contact records","prompt":"I have two records for what might be the same customer — one has +442071838750 and the other has 020 7183 8750. Can you check if those are the same UK phone number?"},{"title":"Validating user-submitted phone on signup","prompt":"A user just signed up and entered '555-867-5309' but we have '18005678309' on file — are these actually the same number? Assume US region."},{"title":"Matching short dial codes to full numbers","prompt":"Our call center logs show a short number '67890' and a full number '+16785550123' — do these match as the same phone number? Use US as the default region."}],"resultDescription":"Returns a structured object with a boolean match flag, a match level (exact, national, short, or none), a verdict string, a human-readable summary, reasons explaining the comparison outcome, whether a strong match was found, whether the default region was applied, and optional disclaimer or attribution metadata.","failureModes":["Unparseable phone number strings return a non-match or error verdict","Missing required parameters a or b result in a validation error","Invalid region code causes fallback behavior or parsing failure","Numbers in incompatible formats without a default_region may not parse correctly"],"whenToPreferThis":"Use this endpoint when you need to semantically compare two phone number strings that may be formatted differently (E.164 vs national vs local) rather than doing a naive string equality check. It is ideal for deduplication pipelines, form validation, CRM matching, and identity verification where format differences would cause false negatives. Prefer this over string comparison whenever users may enter numbers in varying formats.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-02T18:32:58.072Z","isFirstParty":false,"canonicalSlug":"phone-number-compare-c07a9d65"}