Nager.Date API: Get country info
Looks up a country on Nager.Date by name or two-letter code and returns its common and official names, code, region and land-border neighbours.
Unofficial. Not affiliated with or endorsed by Nager.Date.
Inputs
Values from the run on Oct 31, 2026, shown under Output.
- Country, required
country Country name or two-letter country code, for example Austria or AT.
Austria
Input as JSON
{ "country": "Austria"}Output
{ "region": "Europe", "page_url": "https://date.nager.at/api/v3/CountryInfo/AT" , "neighbours": [ { "page_url": "https://date.nager.at/api/v3/CountryInfo/CZ" , "common_name": "Czechia", "country_code": "CZ", "official_name": "Czech Republic" }, { "page_url": "https://date.nager.at/api/v3/CountryInfo/DE" , "common_name": "Germany", "country_code": "DE", "official_name": "Federal Republic of Germany" }, { "page_url": "https://date.nager.at/api/v3/CountryInfo/HU" , "common_name": "Hungary", "country_code": "HU", "official_name": "Hungary" } ], "common_name": "Austria", "country_code": "AT", "official_name": "Republic of Austria"}Code
curl https://api.fous.com/v1/runs \ -H "Authorization: Bearer $FOUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{"method":"date.nager.at/get_country_info","input":{"country":"Austria"}}' # Save as fous.py, then run: python3 fous.pyimport json, os, timefrom urllib.error import HTTPErrorfrom urllib.request import Request, urlopenAPI = "https://api.fous.com/v1/runs" KEY = os.environ["FOUS_API_KEY"]HEADERS = { "Authorization": f"Bearer {KEY}", "Content-Type": "application/json" ,}def call(url, body=None): data = json.dumps(body).encode() if body else None request = Request(url, data, HEADERS) try: with urlopen(request, timeout=120) as r: return r.status, json.load(r) except HTTPError as error: message = json.load(error)["error"]["message"] raise RuntimeError(message) from errorstatus, run = call(API, { "method": "date.nager.at/get_country_info" , "input": { "country": "Austria" }})# 202: still going after 30 s. Ask again until it ends.while status == 202: time.sleep(2) status, run = call(f"{API}/{run['id']}")print(json.dumps(run["data"], indent=2))// Save as fous.mjs, then run: node fous.mjsconst api = "https://api.fous.com/v1/runs" ;const headers = { Authorization: `Bearer ${process.env.FOUS_API_KEY}`, "Content-Type": "application/json" ,};let response = await fetch(api, { method: "POST", headers, body: JSON.stringify({ "method": "date.nager.at/get_country_info" , "input": { "country": "Austria" } }), signal: AbortSignal.timeout(120_000),});let run = await response.json();// 202: still going after 30 s. Ask again until it ends.while (response.status === 202) { await new Promise((done) => setTimeout(done, 2_000)); response = await fetch(`${api}/${run.id}`, { headers }); run = await response.json();}if (!response.ok) throw new Error(run.error.message);console.log(run.data);# Connect your agent to Fous once, over MCP (Streamable HTTP):# https://api.fous.com/mcp# Set FOUS_API_KEY first: create a key at https://app.fous.com/keys.# Claude Codeclaude mcp add \ --scope user \ --transport http fous https://api.fous.com/mcp \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Codexcodex mcp add fous \ --url https://api.fous.com/mcp \ --bearer-token-env-var FOUS_API_KEY# Cursor, VS Code, Windsurf, Cline and morenpx -y add-mcp https://api.fous.com/mcp -g -n fous \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Then ask your agent:# "Use Fous to run date.nager.at/get_country_info# with {"country":"Austria"}"Over HTTP, the answer’s data holds the output. A run still going after 30 seconds answers 202 with its id: ask GET /v1/runs/{id} until it ends.
Schema
Input schema
{ "type": "object", "required": [ "country" ], "properties": { "country": { "type": "string", "description": "Country name or two-letter country code, for example Austria or AT." } }}Output schema
{ "type": "object", "required": [ "common_name", "official_name", "country_code", "region", "page_url", "neighbours" ], "properties": { "region": { "type": "string", "description": "World region." }, "page_url": { "type": "string", "description": "Link to this country’s details." }, "neighbours": { "type": "array", "items": { "type": "object", "required": [ "common_name", "official_name", "country_code", "page_url" ], "properties": { "page_url": { "type": "string", "description": "Link to the neighbouring country’s details." }, "common_name": { "type": "string", "description": "Common country name." }, "country_code": { "type": "string", "description": "Two-letter country code." }, "official_name": { "type": "string", "description": "Official country name." } }, "additionalProperties": false }, "description": "Countries sharing a land border with this country." }, "common_name": { "type": "string", "description": "Common country name." }, "country_code": { "type": "string", "description": "Two-letter country code." }, "official_name": { "type": "string", "description": "Official country name." } }, "additionalProperties": false}- Price
- 1 credit per completed run (1¢ with pay as you go); failed runs are free.
- Method
date.nager.at/get_country_info- Returns
- common name, official name, country code, region, page URL, neighbours
Use it from your agent
Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method date.nager.at/get_country_info with the inputs above.
Ask your agent
- What's the official name of Germany and which countries border it?
- Look up country code CH on Nager.Date and tell me its region and neighbouring countries
- Which countries share a land border with Poland?
- I need the full official name and two-letter code for Bolivia
- Using nager.at, get the common name, region and bordering nations for the country with code HU
See more
All Nager.Date methodsChecks whether a date is a public holiday or weekend in a country. By default only nationwide holidays count; give a region to include holidays observed there.
date.nager.at/check_public_holidayLists a country's public holidays for a year from Nager.Date, with local names, regional coverage and holiday types.
date.nager.at/list_public_holidaysLooks up the places, regions and coordinates for a postal code in a supported country on Zippopotam.us.
zippopotam.us/get_postal_codeLooks up an official Eurostat statistic for an EU or EEA country and the EU27 figure for the same period. Quarterly and half-yearly series return the reporting period that contains a requested month.
ec.europa.eu/get_statisticLooks up a country's passport on Passport Index and returns its global rank, mobility score, visa requirement counts and optionally every destination's requirement.
passportindex.org/get_passport_rankLists EU Sanctions Map regimes concerning a country, with measures, EUR-Lex legal acts, amendment dates and listed person and entity counts.
sanctionsmap.eu/get_country_sanctionsGets a Zara item's price, colours, sizes with availability, materials and images by item name or Zara item link in a chosen country. A name returns the closest match from Zara's search.
zara.com/get_productLooks up an artist or band on MusicBrainz by name, optionally narrowed by country, and returns reference details, recorded members, aliases, genres and official links.
musicbrainz.org/get_artist