REST Countries API

Maps & Geocoding · Development Tools

REST Countries is a free, open-source API providing comprehensive metadata for every country in the world. Without requiring an API key, account registration, or any authentication, the API returns structured data including official names, ISO country codes, capital cities, currencies, languages, calling codes, flag images (SVG and PNG), geographic coordinates, population, land area, timezones, bordering countries, and regional classifications for all 250 sovereign nations and territories globally — including Nigeria with complete data.

free

None (no authentication required)

No documented rate limit. Fair use expected.

✗ Not Available

Best For

Developers needing country metadata — flags, currencies, languages, calling codes, capitals, borders — for all 250 countries including Nigeria, without any API key or account setup.

Pricing

REST Countries is a free open-source API providing comprehensive metadata for every country in the world including Nigeria — flags, currencies, languages, calling codes, capitals, regions, and borders. No auth required.

Key Highlights

  • Free — no API key required
  • 250 countries including Nigeria
  • Nigerian flag, currency, calling code
  • Languages, capitals, borders, region
  • SVG and PNG flag images
  • Search by name, code, currency, language
  • CORS enabled for frontend use
  • Open source on GitHub

Required Access Documents

  • No Registration RequiredOptional
    REST Countries is a public API requiring no authentication. Call endpoints directly from frontend or backend. CORS is enabled.

Use Cases

  • Country Dropdown for Nigerian App Registration:Use REST Countries to populate a country selector in a Nigerian app's registration form — fetching all 250 countries with their ISO codes and names, with Nigeria pre-selected as default based on IP geolocation.
  • Currency Display with Country Flags:Use REST Countries to display currency symbols and country flags alongside exchange rates on a Nigerian forex or remittance platform — showing NGN flag for Nigeria, USD flag for the US, GBP flag for UK for visual clarity.
  • International Calling Code for Nigerian Form:Use REST Countries to build a phone number input with international calling code prefix selector — automatically populating the +234 code for Nigeria and allowing users to select other country codes from a flag-decorated dropdown.
  • Country Profile Cards for Nigerian EdTech:Use REST Countries to build interactive country profile cards for a Nigerian educational platform — displaying each country's flag, capital, language, currency, population, and bordering countries for geography education.

Discover similar API's

View All Alternatives →