Find All Countries That Share Borders

Country Borders API.

Retrieve a list of all countries that share land borders with any specified country. Returns country names and ISO codes for each neighboring nation. Essential for geography applications, travel route planning, and international logistics.

Free tier, no card< 200ms responses99.9% uptime SLA
GET/v1/countryborderslive
Response200 OK · sample
{
  "status": "ok",
  "error": null,
  "data": {
    "country": "Canada",
    "cca2": "CA",
    "landlocked": false,
    "region": "Americas",
    "subregion": "Northern America",
    "coordinates": {
      "lat": 60,
      "lng": -95
    },
    "borders": [
      "USA"
    ]
  }
}
Sample response · verify to run one live call, no signup
Integrates with your favorite tools
LangChainn8nZapierMakePipedreamPower AutomatePostman

Country Borders API

Retrieve a list of all countries that share land borders with any specified country. Returns country names and ISO codes for each neighboring nation. Essential for geography applications, travel route planning, and international logistics.

  • Complete border data for all countries
  • ISO country codes included
  • Fast response times for real-time apps
  • Accurate, up-to-date geopolitical data
  1. 1

    Send one request

    A single authenticated GET with the location you care about — no SDK required.

    GET /v1/countryborders?query=
    x-api-key: your_key
  2. 2

    We do the aggregation

    Each request pulls from multiple upstream sources and computes the derived fields for you.

  3. 3

    Get clean JSON back

    One structured object, typically under 200 ms — ready to render.

    { country, cca2, landlocked, }

Everything in a single call.

/v1/countrybordersapplication/json
country"Canada"
cca2"CA"
landlockedfalse
region"Americas"
subregion"Northern America"
coordinateslat, lng
bordersarray of 1

What developers build with it.

Real applications shipping on this endpoint today — each with the numbers that made it worth wiring up.

See every use case

Call it in your language.

Copy a working request, or install a typed SDK. Same endpoint, same key.

const res = await fetch("https://api.apiverve.com/v1/countryborders?country=CA", {
  headers: { "x-api-key": "YOUR_API_KEY" },
});
const { data } = await res.json();
console.log(data);

One subscription, the whole find all countries that share borders stack.

Every related API ships with your key — no separate plans, no extra keys, one bill.

See pricing
8APIs in this bundle
99.9%uptime SLA

Wire it into the tools you already run.

Ready-made recipes for Zapier, Make, and n8n — trigger on an event, and the data lands where your team works.

Google Sheets
Build a country neighbors reference sheet
WhenScheduled weekly
ThenFetch country borders → append rows
Slack
Share bordering countries on demand
WhenSlash command received
ThenFetch country borders → post message
Airtable
Build a geopolitical reference database
WhenScheduled weekly
ThenFetch country borders → create records
Notion
Build a country borders wiki
WhenScheduled weekly
ThenFetch country borders → create database items
Salesforce
Enrich account records with geographic data
WhenNew account created
ThenFetch country borders → update custom fields
GitHub
Update a borders reference file in a repo
WhenScheduled weekly
ThenFetch country borders → commit file update
Browse all integrations

Questions about the API

What country code format should I use?
Use ISO 3166-1 alpha-2 country codes (e.g., US, CA, MX, GB). The API also accepts full country names.
Does it include maritime borders?
This API focuses on land borders only. Maritime boundaries and exclusive economic zones are not included.
How are island nations handled?
Island nations with no land borders return an empty borders array. This is accurate - they share no land boundaries with other countries.
How current is the border data?
Border data reflects current internationally recognized boundaries. We update the data when geopolitical changes occur.
Can I query by country name instead of code?
Yes, you can use either the ISO 2-letter code or the full country name as the parameter.
Does this include disputed territories?
The API uses internationally recognized borders. Disputed territories may vary based on recognition status.

Start building with the Country Borders API. Free tier, no card required — your key is live in minutes.

Bonus: 300+ more APIs

The same key unlocks every other APIVerve endpoint — reach for them when you need them.

Browse the catalog