{"uid":"cap_1NgSkH1duFP59jWZDJpgB","slug":"globalrules-country-calling-code-lookup-54f6ea08","name":"GlobalRules Country Calling Code Lookup","description":"One specific fact for one country: VAT/GST rate, public holidays by country, visa requirements for travelers, tipping customs, cryptocurrency legal status by country, stablecoin regulation and capital controls, power plug type, minimum wage, corporate tax, digital nomad visa, customs duty-free allowance and more. 195 countries, 58 fields, verified sources. Example: /api/v1/country/JP/vat","url":"https://globalrules-api.onrender.com/api/v1/country/JP/calling_code?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","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"country":{"type":"string"},"updated":{"type":"string"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.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_VDPmpa9s9o04lgk2Ukj6q","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","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 calling code for a specified country using its ISO 3166-1 alpha-2 country code.","exampleAgentPrompt":"What's the international calling code for Japan? I need the country dialing prefix so I can format a phone number correctly.","exampleUseCases":[{"title":"Format international phone number","prompt":"I have a phone number for a contact in Germany but I don't know the country dialing prefix — can you look up Germany's international calling code so I can format the full number correctly?"},{"title":"Travel dialing instructions","prompt":"I'm about to call someone in Brazil from the US — what's Brazil's international calling code so I know what to dial before their local number?"},{"title":"Auto-populate country dial prefix","prompt":"My app needs to pre-fill the phone country code field for users in South Korea — what's the international dialing prefix for South Korea?"}],"resultDescription":"Returns a JSON object containing the country's ISO code, its international telephone calling code (e.g. +81 for Japan), and a timestamp indicating when the data was last verified/updated.","failureModes":["Invalid or unsupported country code returns an error or empty response","Country code must be exactly 2 uppercase letters (ISO 3166-1 alpha-2); malformed codes will fail","Service hosted on Render free tier may have cold-start latency or occasional downtime","Only 106 countries are supported; obscure territories may not be available","Payment failure via x402 protocol will block the request"],"whenToPreferThis":"Use this endpoint when you need a single, verified calling code fact for a specific country without building your own country database. Ideal for agents that need to format international phone numbers, auto-populate dial prefix fields, or provide travel dialing instructions. At $0.01 per call it is cost-effective for on-demand lookups. Prefer this over a full country dataset download when you only need the calling code for one country at a time.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-28T18:37:44.123Z","isFirstParty":false,"canonicalSlug":"globalrules-country-calling-code-lookup-54f6ea08"}