/v1/countries
The country catalogue
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
curl "https://api.oanor.com/geoboundaries-api/v1/countries" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/geoboundaries-api/v1/countries", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/geoboundaries-api/v1/countries");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/geoboundaries-api/v1/countries",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"count": 230,
"query": null,
"total": 230,
"countries": [
{
"iso": "ABW",
"name": "Aruba",
"year": "2021",
"download_geojson": "https://github.com/wmgeolab/geoBoundaries/raw/9469f09/releaseData/gbOpen/ABW/ADM0/geoBoundaries-ABW-ADM0.geojson"
},
{
"iso": "AFG",
"name": "Afghanistan",
"year": "2014",
"download_geojson": "https://github.com/wmgeolab/geoBoundaries/raw/9469f09/releaseData/gbOpen/AFG/ADM0/geoBoundaries-AFG-ADM0.geojson"
},
{
"iso": "AGO",
"name": "Angola",
"year": "2021",
"download_geojson": "https://github.com/wmgeolab/geoBoundaries/raw/9469f09/releaseData/gbOpen/AGO/ADM0/geoBoundaries-AGO-ADM0.geojson"
},
{
"iso": "AIA",
"name": "Anguilla",
"year": "2021",
"download_geojson": "https://github.com/wmgeolab/geoBoundaries/raw/9469f09/releaseData/gbOpen/AIA/ADM0/geoBoundaries-AIA-ADM0.geojson"
},
{
"iso": "ALB",
"name": "Albania",
"year": "2003",
"download_geojson": "https://github.com/wmgeolab/geoBoundaries/raw/9469f09/releaseData/gbOpen/ALB/ADM0/geoBoundaries-ALB-ADM0.geojson"
},
{
"iso": "AND",
"name": "Andorra",
"year": "2007",
"download_geojson": "https://github.com/wmgeolab/geoBoundaries/raw/9469f09/releaseData/gbOpen/AND/ADM0/geoBoundaries-AND-ADM0.geojson"
},
{
"iso": "ARE",
"name": "United Arab Emirates",
"year": "1995",
"download_geojson": "https://github.com/wmgeolab/geoBoundaries/raw/9469f09/releaseData/gbOpen/ARE/ADM0/geoBoundaries-ARE-ADM0.geojson"
},
{
"iso": "ARG",
"name": "Argentina",
"year": "2006",
"download_geojson": "https://github.com/wmgeolab/geoBoundaries/raw/9469f09/releaseData/gbOpen/ARG/ADM0/geoBoundaries-ARG-ADM0.geojson"
},
{
"iso": "ARM",
"name": "Armenia",
"year": "2005",
"download_geojson": "https://github.com/wmgeolab/geoBoundaries/raw/9469f09/releaseData/gbOpen/ARM/ADM0/geoBoundaries-ARM-ADM0.geojson"
},
{
"iso": "ASM",
"name": "American Samoa",
"year": "2021",
"download_geojson": "https://github.com/wmgeolab/geoBoundaries/raw/9469f09/releaseData/gbOpen/ASM/ADM0/geoBoundaries-ASM-ADM0.geojson"
},
{
"iso": "ATA",
"name": "Antartica",
"ye
…