apilayer/restcountries
Get information about countries via a RESTful API observed · 2026-08-28
Health v2 · maintenance only
10/100
- Activity 0
- Release rhythm 8
- Longevity 100
Flags: archived
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4711
- days_rel: n/a
- days_push: 1010
- n_releases_24m: 0
Adoption not part of the score
2273 stars · 358 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
REST Countries is a Java-based RESTful API that serves information about world countries, including names, ISO codes, currencies, languages, capitals, calling codes, regions, and flags, queryable via endpoints like /name, /alpha, /currency, and /region. It can be self-hosted from this repository, while the hosted version has been commercialized by apilayer as countrylayer.
Use cases
- get country data by iso code in my app
- look up countries by currency or language
- populate a country dropdown with capitals and flags
- self-host a free countries rest api
- filter countries by region or regional bloc
- find a country by its calling code
- fetch country names and translations in
When to choose
- you need free, structured country reference data without licensing hassle
- you want to self-host the API and control availability and rate limits
- your app needs lookups by name, code, currency, language, capital, calling code, or region
When to avoid
- you need frequently updated demographic or economic data rather than static reference data
- you want a managed commercial API with support and SLAs (consider countrylayer)
- you need geocoding or address-level data instead of country-level facts
Facets
service · maturity maintenance
http-server api-framework search-engine apis web-development backend self-hosted jvm self-hosted cross-platform rest-api country-data iso-3166 geolocation -api open-data geospatial web-server
4 sources
- readme: https://github.com/apilayer/restcountries · fetched 2026-08-28 · e3ba130ae238
- homepage: https://restcountries.eu · fetched 2026-08-29 · 10b0826982a2
- site_page: https://countrylayer.com/pricing · fetched 2026-08-29 · e559b9d4af3b
- site_page: https://countrylayer.com/faq · fetched 2026-08-29 · 8e858ea873a6
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| apilayer/restcountries | main | 10 |
For agents
markdown · JSON · MCP: product_card(name="apilayer/restcountries")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem