# Country Facts - Country Comparison

> Country Facts - Country Comparison is a paid API for AI agents from country-facts.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-30).

Compares two countries across size ratio, land border crossings, shared currency and language, driving side, and geographic distance.

## Facts

- Endpoint: GET https://country-facts.x402tookit.com/country-compare?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/country-facts-country-comparison-d4dced69
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QyiTd-H9cn8vSAznt7ZWG

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability country-facts-country-comparison-d4dced69
```

Example prompt: 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?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Compare two countries: size ratio, border crossings between them, shared currency and language, driving side, distance.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
         ]
  
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/country-facts-country-comparison-d4dced69/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from country-facts.x402tookit.com](https://www.zero.xyz/host/country-facts.x402tookit.com/llms.txt)
