All free APIs
Free APIGeo & WeatherAPI keyOfficial

REST Countries (v5)

Free reference data for every country: flags, currencies, languages, borders, codes

REST Countries serves structured reference data for every country, including names, capitals, regions, currencies, languages, calling codes, flags, borders and more. The legacy v3.1 keyless API has been deprecated and shut off; the current v5 API stays free but now needs a free API key (no credit card).

Free tier

Free tier: 500 requests/month with a free API key, no credit card. Paid plans add volume, premium data and an SLA.

Rate limits

Free plan: 500 requests/month, 2 API keys. Per-second limits not published.

Auth

API key

Base URL

https://api.restcountries.com/countries/v5

What you'd build with it

  • Populate country/currency/calling-code dropdowns without bundling a dataset
  • Enrich a record with flag URLs, languages or region from an ISO code
  • Validate or normalize country names and codes in an automation
  • Map currencies to countries for finance or localization logic

Key endpoints

  • GET/countries/v5All countries (supports ?q=, region filters, pagination)
  • GET/countries/v5/names.common/{name}Look up by common country name
  • GET/countries/v5/codes.alpha_2/{code}Look up by ISO alpha-2 code (alpha_3 variant also available)
  • GET/countries/v5/name?q={query}Fuzzy name search
  • GET/countries/v5?region={region}Countries in a region
Members

Members get the runnable recipe

Sign in free to copy the example request, see a sample response, and read the gotchas.

Tags

countriesreference-datageocurrenciesflags