{"uid":"cap_4gbzIUDOcEP8nyVZ45KB0","slug":"agentshield-telephone-country-calling-code-lookup-279d3b86","name":"AgentShield Telephone Country Calling Code Lookup","description":"Call when an agent needs the telephone country calling code for a country. Not a phone-number lookup.","url":"https://agentshield.live/calling?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":["country"],"properties":{"country":{"type":"string","description":"Two-letter country code."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"known":true,"country":"DE","calling_code":"49"}},"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_lOR8gvoNeFQnfVgiMW4P7","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":"Returns the international telephone country calling code (dial prefix) for a given ISO 3166-1 alpha-2 country code.","exampleAgentPrompt":"What's the international telephone calling code for Germany? I have the ISO country code DE and just need the dial prefix.","exampleUseCases":[{"title":"Auto-format international phone numbers","prompt":"I'm building a contact form and need to prepend the right country dial code — what's the calling code for Brazil?"},{"title":"Display country dial prefix in UI","prompt":"The user selected 'JP' as their country — what international calling code should I show next to the phone number field?"},{"title":"Validate phone number country prefix","prompt":"Someone entered +33 as the country prefix and said they're in France — can you confirm what the calling code for FR is so I can cross-check?"}],"resultDescription":"A JSON object with three fields: 'known' (boolean indicating whether the country code was recognized), 'country' (the two-letter ISO code echoed back), and 'calling_code' (the numeric international dial prefix as a string, e.g. '49' for Germany). Returns 404 for unknown country codes.","failureModes":["Unknown or invalid country code returns 404","Input must be exactly two uppercase letters (ISO 3166-1 alpha-2); free-text country names are not accepted","Does not handle territories or special dialing areas not assigned a standard two-letter code","Network timeout or service unavailability returns HTTP 5xx"],"whenToPreferThis":"Use this endpoint when you have an ISO 3166-1 alpha-2 country code and need only the international telephone calling code (dial prefix). It is a simple, fast, deterministic lookup — prefer it over general-purpose geocoding or phone-number parsing APIs when you specifically need the ITU country calling code and nothing else. Not suitable for full phone number parsing, validation, or formatting.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T06:52:24.834Z","isFirstParty":false,"canonicalSlug":"agentshield-telephone-country-calling-code-lookup-279d3b86"}