Country API

Country API

Dive into a world of insights with the Country Information API, unveiling a rich tapestry of statistics for every nation. From GDP and life expectancy to education metrics and environmental indices, explore the dynamic details that define nations, including the United States, where facts and figures come alive in a captivating mosaic of data.

About the API: 

Welcome to the Country Information API, your comprehensive guide to understanding every facet of the world's nations. This robust API unfolds a trove of statistics for each country, offering a nuanced view of their economic, social, and environmental landscapes.

For instance, delve into the United States, where the API reveals a plethora of data, including a GDP of 20,580,223 million USD, a life expectancy of 76.3 years for males and 81.3 years for females, and a low unemployment rate of 3.9%. Explore intricate details such as a sex ratio of 97.9, a diverse currency landscape with the USD at the forefront, and an urban population of 82.5%.

Education metrics abound, showcasing enrollment rates in primary, secondary, and post-secondary education for both genders. Environmentalists can assess CO2 emissions, forested areas, and the number of threatened species (1655) in the United States.

Economic indicators like GDP per capita (62,917.9 USD) and employment distribution across industries (19.7%) offer a holistic view. Whether you're a researcher, developer, or policymaker, the Country Information API is a powerful tool, providing unparalleled access to the intricate details that define and differentiate nations across the globe. Enrich your applications, analyses, and understanding of the world with this expansive and insightful API.


What this API receives and what your API provides (input/output)?

The Country API provides useful statistics about every country in the world


What are the most common uses cases of this API?

  1. Economic Research and Analysis: Researchers and economists can leverage the Country Information API to conduct in-depth economic analyses. Explore GDP, unemployment rates, and GDP growth to gain insights into a country's economic health. This information is invaluable for making informed decisions, identifying trends, and understanding economic landscapes.

  2. Educational Platforms: Educational applications can integrate the API to provide students with real-world data for various countries. Students can explore diverse metrics, such as population density, education enrollment rates, and GDP per capita, fostering a deeper understanding of global socio-economic dynamics.

  3. Travel Planning Services: Travel platforms can use the API to enrich user experiences by offering detailed country information. Travelers can access data on life expectancy, urbanization rates, and tourist numbers, aiding them in making informed decisions about destinations and understanding the cultural and environmental aspects of their chosen locations.

  4. Environmental Sustainability Initiatives: Environmental organizations and policymakers can utilize the API's data on CO2 emissions, forested areas, and threatened species to assess a country's environmental impact. This information is crucial for developing sustainability initiatives, monitoring conservation efforts, and making informed policy decisions.

  5. Business Expansion Strategies: Companies exploring international expansion can employ the API to gather essential data for decision-making. Factors such as population density, urbanization rates, and economic indicators like GDP per capita and unemployment rates can guide businesses in identifying suitable markets and tailoring their strategies to specific country profiles.


Are there any limitations to your plans?

Besides the number of API calls, there is no other limitation

API Documentation


Get country data from given parameters. Returns a list of country statistics that satisfy the parameters.


Get Data - Endpoint Features
Object Description
name [Required] Country Name
Test Endpoint


                                                                                                                                                                                                                            [{"gdp": 20580223.0, "sex_ratio": 97.9, "surface_area": 9833517.0, "life_expectancy_male": 76.3, "unemployment": 3.9, "imports": 2567490.0, "homicide_rate": 5.0, "currency": {"code": "USD", "name": "Us Dollar"}, "iso2": "US", "employment_services": 79.0, "employment_industry": 19.7, "urban_population_growth": 0.9, "secondary_school_enrollment_female": 98.7, "employment_agriculture": 1.3, "capital": "Washington, D.C.", "co2_emissions": 4761.3, "forested_area": 33.9, "tourists": 79746.0, "exports": 1644280.0, "life_expectancy_female": 81.3, "post_secondary_enrollment_female": 102.0, "post_secondary_enrollment_male": 75.0, "primary_school_enrollment_female": 101.4, "infant_mortality": 5.8, "gdp_growth": 2.9, "threatened_species": 1655.0, "population": 331003.0, "urban_population": 82.5, "secondary_school_enrollment_male": 99.2, "name": "United States", "pop_growth": 0.6, "region": "Northern America", "pop_density": 36.2, "internet_users": 87.3, "gdp_per_capita": 62917.9, "fertility": 1.8, "refugees": 1043.2, "primary_school_enrollment_male": 102.2}]


curl --location --request GET ' States' --header 'Authorization: Bearer YOUR_API_KEY' 


API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Country API REST API, simply include your bearer token in the Authorization header.


Header Description
Authorization [Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.

Simple Transparent Pricing

No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.

🚀 Enterprise
Starts at $10,000/Year

  • Custom Volume
  • Dedicated account manager
  • Service-level agreement (SLA)

Customer favorite features

  • ✔︎ Only Pay for Successful Requests
  • ✔︎ Free 7-Day Trial
  • ✔︎ Multi-Language Support
  • ✔︎ One API Key, All APIs.
  • ✔︎ Intuitive Dashboard
  • ✔︎ Comprehensive Error Handling
  • ✔︎ Developer-Friendly Docs
  • ✔︎ Postman Integration
  • ✔︎ Secure HTTPS Connections
  • ✔︎ Reliable Uptime

The API delivers a comprehensive set of statistics, including economic indicators (GDP, unemployment), demographic details (population, life expectancy), education metrics, environmental factors (CO2 emissions, forested area), and more.

The data is periodically updated based on reliable sources, but it may not be real-time. Users are encouraged to check the API documentation for specific update intervals and data freshness.

Users can make HTTP requests to the API endpoint, specifying the country of interest. The API will respond with detailed information about the requested country in a structured format.

The API primarily focuses on current statistics; however, some historical data points, such as GDP growth rates, may be available. Check the API documentation for specific details on historical data.

Yes, the API is designed to provide information for every country globally. Users can access data for any specific country using the country's name or ISO code.

Zyla API Hub is, in other words, an API MarketPlace. An all-in-one solution for your developing needs. You will be accessing our extended list of APIs with only your user. Also, you won't need to worry about storing API keys, only one API key for all our products is needed.

Prices are listed in USD. We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world’s most reliable payment companies. If you have any trouble with paying by card, just contact us at [email protected]

Sometimes depending on the bank's fraud protection settings, a bank will decline the validation charge we make when we attempt to be sure a card is valid. We recommend first contacting your bank to see if they are blocking our charges. If more help is needed, please contact [email protected] and our team will investigate further

Prices are based on a recurring monthly subscription depending on the plan selected — plus overage fees applied when a developer exceeds a plan’s quota limits. In this example, you'll see the base plan amount as well as a quota limit of API requests. Be sure to notice the overage fee because you will be charged for each additional request.

Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.

Just go to the pricing page of that API and select the plan that you want to upgrade to. You will only be charged the full amount of that plan, but you will be enjoying the features that the plan offers right away.

Yes, absolutely. If you want to cancel your plan, simply go to your account and cancel on the Billing page. Upgrades, downgrades, and cancellations are immediate.

You can contact us through our chat channel to receive immediate assistance. We are always online from 9 am to 6 pm (GMT+1). If you reach us after that time, we will be in contact when we are back. Also you can contact us via email to [email protected]

 Service Level
 Response Time


Related APIs