Geo & Travel

Countries API

Instant access to a vast database of countries worldwide. Whether you're a researcher, a business analyst, or simply curious about global geography, our API offers unparalleled insights into the world's nations.

Request Headers

Name Required Description
X-RapidAPI-Key required Your RapidAPI key. Get one free.
X-RapidAPI-Host required countries.p.rapidapi.com

Endpoints

GET /v1/countries

Look up countries by name or ISO code

Parameters

NameTypeRequiredDefaultConstraints
codestringoptional——
limitintegeroptional——
namestringoptional——
offsetintegeroptional——

Code Examples

curl --request GET \
  --url 'https://countries.p.rapidapi.com/v1/countries?code=example&limit=0' \
  --header 'x-rapidapi-key: YOUR_API_KEY' \
  --header 'x-rapidapi-host: countries.p.rapidapi.com'

Interactive Example

countries
$ GET /v1/countries?code=BG
{"data":[{"name":"Bulgaria","official":"Republic of Bulgaria","cca2":"BG","cca3":"BGR","capital":"Sofia","region":"Europe"}],"meta":{"total":1,"limit":10,"offset":0}}

Integration & Usage Guide

Embark on a journey across the globe with our comprehensive Countries API!

Our Countries API provides instant access to a vast database of countries worldwide. Whether you’re a researcher, a business analyst, or simply curious about global geography, our API offers unparalleled insights into the world’s nations.

Key Features

  • Global Coverage: Access a worldwide list of countries
  • Flexible Filtering: Easily filter results by name, region, or other criteria
  • Pagination Support: Manage large result sets with ease
  • Random Country Selection: Get instant inspiration with random country retrieval
  • Comprehensive Country Information: Retrieve extensive details about each nation

Endpoints

Our API offers two endpoints to cater to different needs:

  1. /v1/countries: Get a list of countries
  2. /v1/countries/random: Get a random country

Why Choose Our API?

  • Comprehensive Global Database: Access detailed information on every country worldwide
  • Real-time Updates: Stay current with the ever-changing geopolitical landscape
  • Customizable Insights: Tailor your data to meet specific research or analytical needs
  • Scalable Solutions: Handle large volumes of requests efficiently
  • Easy Integration: Simple RESTful API design for seamless incorporation into your projects

Subscribe & License

Access this API with commercial-ready tiers on RapidAPI. Flexible plans designed for side-projects, startups, and high-volume production architectures.

View Pricing & Subscribe

Developer Support

Need help integrating or have a custom endpoint request? Our engineering team is here to assist with authentication, payload schemas, and high-frequency rate limit increases.

Contact API Engineering

System Performance

Monitored 24/7 with a 99.9% uptime SLA. Built atop cloud-native microservices with globally distributed edge caching to ensure ultra-low latency response times.

All Systems Operational