{"uid":"cap_QyiTd-H9cn8vSAznt7ZWG","slug":"country-facts-country-comparison-d4dced69","name":"Country Facts - Country Comparison","description":"Compare two countries: size ratio, border crossings between them, shared currency and language, driving side, distance.","url":"https://country-facts.x402tookit.com/country-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 country, ISO code or English name"},"b":{"type":"string","description":"Second country, ISO code or English name"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"a":{"type":["null","object"],"properties":{"name":{"type":["null","string"]},"alpha2":{"type":["null","string"]},"alpha3":{"type":["null","string"]},"region":{"type":["null","string"]},"areaKm2":{"type":["null","number"]},"capital":{"type":["array","null"],"items":{"type":"string"}},"subregion":{"type":["null","string"]},"landlocked":{"type":["boolean","null"]},"drivingSide":{"type":["null","string"]}}},"b":{"type":["null","object"],"properties":{"name":{"type":["null","string"]},"alpha2":{"type":["null","string"]},"alpha3":{"type":["null","string"]},"region":{"type":["null","string"]},"areaKm2":{"type":["null","number"]},"capital":{"type":["array","null"],"items":{"type":"string"}},"subregion":{"type":["null","string"]},"landlocked":{"type":["boolean","null"]},"drivingSide":{"type":["null","string"]}}},"asOf":{"type":["null","string"]},"source":{"type":["null","string"]},"reasons":{"type":["array","null"]},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"sameRegion":{"type":["boolean","null"]},"landCrossings":{"type":["null","number"]},"areaRatioAOverB":{"type":["null","number"]},"sameDrivingSide":{"type":["boolean","null"]},"sharedLanguages":{"type":["array","null"]},"mutualNeighbours":{"type":["array","null"],"items":{"type":"object","properties":{"name":{"type":["null","string"]},"alpha2":{"type":["null","string"]},"alpha3":{"type":["null","string"]}}}},"sharedCurrencies":{"type":["array","null"],"items":{"type":"string"}},"sharesLandBorder":{"type":["boolean","null"]},"centrePointDistanceKm":{"type":["null","number"]}}}}}}},"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_CJdTJ3L7MVttpCM5HeLb5","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 countries across size ratio, land border crossings, shared currency and language, driving side, and geographic distance.","exampleAgentPrompt":"Can you compare the US and Canada for me — are they in the same region, do they share a border, what languages do they have in common, and which side of the road do they drive on?","exampleUseCases":[{"title":"Travel planning border check","prompt":"I'm planning a road trip from France through Germany — do they share any land border crossings, drive on the same side, and use the same currency?"},{"title":"Country size curiosity","prompt":"How much bigger is Russia compared to Ukraine? Give me the area ratio and tell me if they share any land borders."},{"title":"International business language check","prompt":"We're expanding to both Brazil and Portugal — do they share a common language and currency, and are they in the same global region?"}],"resultDescription":"Returns a structured comparison object for both countries including name, ISO codes, region, area in km², capital(s), landlocked status, driving side, plus comparison fields: area ratio (A over B), number of land crossings, shared languages, shared currencies, same driving side flag, same region flag, a human-readable summary, a verdict, and optional disclaimers about data freshness or degraded results.","failureModes":["Unrecognized country name or invalid ISO code returns null for that country object","Both countries must be provided; missing 'a' or 'b' query parameter returns an error","Degraded flag may be set if underlying data source is partially unavailable","Summary/verdict may be null if comparison data is incomplete"],"whenToPreferThis":"Use this endpoint when you need a multi-dimensional side-by-side comparison of two specific countries — especially when you want several comparison dimensions (size, borders, language, currency, driving side) in a single call rather than making multiple individual lookup calls. Prefer it over individual fact-sheet endpoints when the user's question is inherently comparative.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T00:34:50.200Z","isFirstParty":false,"canonicalSlug":"country-facts-country-comparison-d4dced69"}