Free APIs › Weather & Geography › REST Countries
No keyCORS ✓B · 79

REST Countries

Every country on Earth — capitals, currencies, languages, borders, flags. A portfolio favorite.

StatusLive · verified 23 Oct 2026 · 2268 ms
AuthenticationNone — call it right now
Browser CORSYes — works from front-end code
Free limitsFree, no key
Official docs ↗ ▶ Open the playground

▶ Live playground

This runs in your browser, straight against the real API. Edit the URL and experiment — break nothing, learn everything.

Press Run to call REST Countries live.

📸 Real response, captured by us

Not a mockup — this is what REST Countries actually returned when we verified it on 23 Oct 2026 (in 2268 ms).

{
  "success": false,
  "data": null,
  "errors": [
    {
      "message": "This API version has been deprecated. Please visit https://restcountries.com/docs/countries/legacy-api-deprecation to migrate to our new version (v5)."
    }
  ]
}

💻 Copy-paste code

Three ways to call REST Countries — pick your weapon.

// REST Countries — no build step, no library. Just fetch.
const res = await fetch("https://restcountries.com/v3.1/name/pakistan");
const data = await res.json();
console.log(data);

🏅 Own this API?

Add the live-verified badge to your docs or repo — it only ever displays the status from our latest check.

<a href="https://freeapis.akclnt.com/api/rest-countries/"><img src="https://freeapis.akclnt.com/badge/rest-countries.svg" alt="REST Countries — live-verified free API on AKCLNT Free APIs"></a>

📜 Full check history & uptime · Status as JSON · Health score: B · 79/100

🔔 Watch this API — a quiet feed that only speaks the week its status changes (down, recovered, reclassified). How it works

Similar free APIs

Open-Meteo

No keyCORS ✓B · 84

Free weather forecast, current conditions and historical data for any coordinates. No key, no signup.

Live · verified 23 Oct 2026 · 1458 ms📁 Weather & Geography · Free for non-commercial use, ~10k calls/day

OpenWeatherMap

Free keyCORS ✓C · 55

The classic weather API — current weather, forecasts and maps for any city on Earth.

Free key required📁 Weather & Geography · Free tier: 1,000 calls/day
Done