# Country Borders API

> Country Borders identifies adjacent nations by two-letter ISO country code. It returns the list of bordering countries along with region, subregion, and landlocked status.

**Endpoint:** `GET https://api.apiverve.com/v1/countryborders`  
**Category:** Geography  
**Cost:** 2 credits per call  
**Canonical page:** https://apiverve.com/marketplace/countryborders

## Overview

Country Borders is a country border list lookup: pass a two-letter ISO country code and get back the neighboring countries that share a land boundary with it. The response names the country and adds its region, subregion and a landlocked country check, so one call answers both who are this country's neighbors and whether it has access to the sea.

Travel and logistics apps use it to suggest overland routes and cross-border options, education and quiz apps use it for geography questions, and data teams use the bordering countries list to group or compare adjacent nations in maps and reports.

The Free plan returns the country name, its ISO code, region, subregion, landlocked flag and the full list of borders. Paid plans add a latitude and longitude for the requested country, a representative center point that is handy for placing a marker or centring a map on the country you looked up.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/countryborders?country=CA" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `country` | string | Yes | The Country 2 Letter ISO code (e.g., CA). length 2-2 |

## Response fields

- `country` — string · Full name of the country
- `cca2` — string · Two-letter ISO country code
- `landlocked` — boolean · Indicates if country is landlocked without ocean access
- `region` — string · Geographic continent or major world region
- `subregion` — string · More specific geographic subdivision within region
- `coordinates` — object
  - `coordinates.lat` — number · Latitude coordinate of country center point · (premium)
  - `coordinates.lng` — number · Longitude coordinate of country center point · (premium)
- `borders` — array · List of neighboring country names that share borders

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "country": "Canada",
    "cca2": "CA",
    "landlocked": false,
    "region": "Americas",
    "subregion": "Northern America",
    "coordinates": {
      "lat": 60,
      "lng": -95
    },
    "borders": [
      "USA"
    ]
  }
}
```

## Use cases

- **Cross-Border Route Planning** — Freight dispatchers check adjacent nations along transport corridors to verify transit jurisdictions and identify landlocked destinations needing sea-port rerouting.
- **Regional Market Expansion** — E-commerce platforms identify neighboring territories around existing warehouses to sequence regional delivery coverage country by country.
- **Geopolitical Strategy Games** — Game developers build realistic adjacency maps between territories to enforce valid troop movements across shared national borders.
- **Compliance Risk Screening** — When auditing vendor supply chains, trade compliance officers flag suppliers operating adjacent to sanctioned territories.

## SDKs

- **npm** — `npm install @apiverve/countryborders` (https://www.npmjs.com/package/@apiverve/countryborders)
- **PyPI** — `pip install apiverve-countryborders` (https://pypi.org/project/apiverve-countryborders/)
- **NuGet** — `dotnet add package APIVerve.API.CountryBorders` (https://www.nuget.org/packages/APIVerve.API.CountryBorders)
- **Source** — https://github.com/apiverve/countryborders-api

## More

- Full reference: https://docs.apiverve.com/ref/countryborders
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
