# Country Facts – Border Neighbours

> Country Facts – Border Neighbours 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-29).

Returns a country's direct land neighbours or all countries reachable within 1–3 border crossings, including landlocked status.

## Facts

- Endpoint: GET https://country-facts.x402tookit.com/borders?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/country-facts-border-neighbours-4290bc2e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rKTNmjUizyhBPHACXfCf4

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-border-neighbours-4290bc2e
```

Example prompt: What countries border Poland, and which ones can I reach within 2 border crossings? Also tell me if Poland is landlocked.

## When to prefer this

Choose this endpoint when you need structured, programmatic data about a country's land borders and geographic reachability — especially when you need multi-hop traversal (2–3 crossings) rather than just direct neighbours. Prefer over general-purpose geography APIs when landlocked status and ring-based reachability are needed together in a single call.

## Known failure modes

- Unknown country name or ISO code returns an error or empty result
- Depth value outside 1–3 range may be rejected or defaulted
- Island nations with no land borders return empty neighbour lists
- Disputed territories may not be consistently represented
- Payment failure (402) if USDC balance is insufficient

## How this service works

List a country's land neighbours, or all countries within 2-3 border crossings, with landlocked status.

## Output

Returns a structured response with the queried country's name and ISO codes, its landlocked status, and one or more 'rings' — each ring representing a border-crossing depth (1 = direct neighbours, 2 = neighbours of neighbours, etc.) with a list of countries at that depth (name, alpha2, alpha3), a count, and a human-readable summary. Also includes data freshness timestamp and source attribution.

## 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": [
      "country"
     ],
     "properties": {
      "depth": {
       "type": "integer",
       "description": "Border crossings out to include, 1-3 (default 1)"
      },
      "country": {
       "type": "string",
       "description": "ISO code or English name, e.g. Germany"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "rings": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "object",
        "properties": {
         "count": {
          "type": [
           "null",
           "number"
          ]
         },
         "countries": {
          "type": [
           "array",
           "null"
          ],
          "items": {
           "type": "object",
           "properties": {
            "name": {
             "type": [
              "null",
              "string"
             ]
            },
            "alpha2": {
             "type": [
              "null",
              "string"
             ]
            },
            "alpha3": {
             "type": [
              "null",
              "string"
             ]
            }
           }
          }
         },
         "crossings": {
          "type": [
           "null",
           "number"
          ]
         }
        }
       }
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "country": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "name": {
         "type": [
          "null",
          "string"
         ]
        },
        "alpha2": {
         "type": [
          "null",
          "string"
         ]
        },
        "alpha3": {
         "type": [
          "null",
          "string"
         ]
        }
       }
     
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/country-facts-border-neighbours-4290bc2e/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)
