DEV Community

Алексей Спинов
Алексей Спинов

Posted on

REST Countries API: Get Population, Languages, and Currencies for Any Country

restcountries.com is a free API with data for every country in the world.

Quick Start

https://restcountries.com/v3.1/name/japan
Enter fullscreen mode Exit fullscreen mode

What You Get

  • Name (common, official, native)
  • Capital city
  • Population (Japan: 123M)
  • Area in km²
  • Languages (Japanese)
  • Currencies (JPY ¥)
  • Timezones
  • Calling codes
  • Top-level domain (.jp)
  • Flag emoji and image
  • Borders (neighboring countries)
  • Driving side

Filter by Region

https://restcountries.com/v3.1/region/europe
Enter fullscreen mode Exit fullscreen mode

Returns all European countries with full data.

Use Cases

  • Country selection dropdowns with real data
  • Educational apps and quizzes
  • Travel planning tools
  • Data enrichment pipelines
  • Demographic research

I built a Country Info Scraper on Apify — search knotless_cadence country-info.

Top comments (0)