The Countries Data API is a robust and comprehensive tool that provides access to a wealth of information about countries around the world. With seamless integration and an easy-to-use interface, this API allows users to retrieve a wide range of country-related data, making it an invaluable resource for a variety of applications.
This API offers a plethora of data, covering aspects such as geography, population, capital, calling code and much more for virtually every country on the planet. Whether you're building a travel app, conducting market research, or enhancing your data analytics, the Countries Data API gives you the data you need to make informed decisions and create engaging experiences.
One of the key advantages of this API is its versatility. It offers a broad set of endpoints that allow you to access specific data points or retrieve entire country profiles.
The API's ease of use is enhanced by its support for various programming languages, including Python, Java and JavaScript, among others. This ensures that developers can seamlessly integrate country data into their applications, regardless of their preferred programming language.
In conclusion, the Countries Data API is a powerful and versatile tool for accessing comprehensive country-related information. Its wide range of data points, customizable endpoints, and ease of integration make it an essential resource for users, developers, businesses, researchers, and organizations with global interests. Whether you want to enhance your travel application, conduct market research or analyze global demographics, this API provides you with the data you need to make informed decisions and create compelling data-driven solutions.
It will receive parameters and provide you with a JSON.
Travel planning applications: Integrate country data to provide users with information about their destination, including currency, capital city.
E-commerce localization: Customize product offerings and pricing based on country currency data, creating a tailored shopping experience.
Financial services: Use economic data to evaluate investment opportunities, track exchange rates and analyze economic trends across countries.
Demographic analysis: Research and analyze demographics and population growth for market segmentation and strategic planning.
Geographic mapping: Create interactive maps with geographic data, national borders and capital cities for educational and travel applications.
Besides the number of API calls, there is no other limitation.
To use this endpoint just run it and you will get the name of all the continents.
[{"Id": 1, "Name": "Asia"}, {"Id": 2, "Name": "Africa"}, {"Id": 3, "Name": "Oceania"}, {"Id": 4, "Name": "Europe"}, {"Id": 5, "Name": "North America"}, {"Id": 6, "Name": "South America"}, {"Id": 7, "Name": "Antarctica"}]
curl --location --request GET 'https://zylalabs.com/api/2656/countries+data+api/2680/continents' --header 'Authorization: Bearer YOUR_API_KEY'
To use this endpoint you must indicate the name of a continent.
Countries by continent - Endpoint Features
| Object | Description |
|---|
[{"Id": 1, "Name": "Afghanistan", "Flag": "http://media.tekbunny.com/countriesflags/images/af.png", "Independent": "Yes", "CountryCodes": ["AF", "AFG (ISO 3166-1)"], "OfficialName": "Islamic Emirate of Afghanistan", "CapitalCity": "Kabul", "Continent": "Asia", "MemberOf": ["United Nations", "Collective Security Treaty Organization", "Organisation of Islamic Cooperation"], "Population": "32\u00a0225\u00a0560 (2019)", "TotalArea": "652\u00a0230 km2", "HighestPoint": "Noshaq (7\u00a0492\u00a0m, 24\u00a0580\u00a0ft)", "LowestPoint": "Amu Darya (258\u00a0m, 846\u00a0ft)", "GdpPerCapita": "$ 521 (World Bank, 2018)", "Currency": "Afghan afghani (\u060b, AFN)", "CallingCode": ["+93"], "InternetTld": ".af"}, {"Id": 12, "Name": "Armenia", "Flag": "http://media.tekbunny.com/countriesflags/images/am.png", "Independent": "Yes", "CountryCodes": ["AM", "ARM (ISO 3166-1)"], "OfficialName": "Republic of Armenia", "CapitalCity": "Yerevan", "Continent": "Asia", "MemberOf": ["United Nations", "Collective Security Treaty Organization", "Commonwealth of Independent States", "Eurasian Economic Union"], "Population": "2\u00a0957\u00a0500 (2019)", "TotalArea": "29\u00a0743 km2", "HighestPoint": "Mount Aragats (4\u00a0090\u00a0m, 13\u00a0419\u00a0ft)", "LowestPoint": "Debed (400\u00a0m, 1\u00a0312\u00a0ft)", "GdpPerCapita": "$ 4\u00a0212 (World Bank, 2018)", "Currency": "Armenian dram (\u058f, AMD)", "CallingCode": ["+374"], "InternetTld": ".am"}, {"Id": 16, "Name": "Azerbaijan", "Flag": "http://media.tekbunny.com/countriesflags/images/az.png", "Independent": "Yes", "CountryCodes": ["AZ", "AZE (ISO 3166-1)"], "OfficialName": "Republic of Azerbaijan", "CapitalCity": "Baku", "Continent": "Asia", "MemberOf": ["United Nations", "Commonwealth of Independent States", "Turkic Council", "Organisation of Islamic Cooperation"], "Population": "10\u00a0067\u00a0108 (2020)", "TotalArea": "86\u00a0600 km2", "HighestPoint": "Mount Bazard\u00fcz\u00fc (4\u00a0485\u00a0m, 14\u00a0715\u00a0ft)", "LowestPoint": "Caspian Sea (-28\u00a0m, -92\u00a0ft)", "GdpPerCapita": "$ 4\u00a0721 (World Bank, 2018)", "Currency": "Azerbaijani manat (\u20bc, AZN)", "CallingCode": ["+994"], "InternetTld": ".az"}, {"Id": 18, "Name": "Bahrain", "Flag": "http://media.tekbunny.com/countriesflags/images/bh.png", "Independent": "Yes", "CountryCodes": ["BH", "BHR (ISO 3166-1)"], "OfficialName": "Kingdom of Bahrain", "CapitalCity": "Manama", "Continent": "Asia", "MemberOf": ["United Nations", "Gulf Cooperation Council", "Arab League", "Organisation of Islamic Cooperation"], "Population": "1\u00a0543\u00a0300 (2019)", "TotalArea": "778 km2", "HighestPoint": "Mountain of Smoke (122\u00a0m, 400\u00a0ft)", "LowestPoint": "Persian Gulf", "GdpPerCapita": "$ 24\u00a0051 (World Bank, 2018)", "Currency": "Bahraini dinar (.\u062f.\u0628, BHD)", "CallingCode": ["+973"], "InternetTld": ".bh"}, {"Id": 19, "Name": "Bangladesh", "Flag": "http://media.tekbunny.com/countriesflags/images/bd.png", "Independent": "Yes", "CountryCodes": ["BD", "BGD (ISO 3166-1)"], "OfficialName": "People's Republic of Bangladesh", "CapitalCity": "Dhaka", "Continent": "Asia", "MemberOf": ["United Nations", "Commonwealth of Nations", "Organisation of Islamic Cooperation"], "Population": "168\u00a0163\u00a0758 (2020)", "TotalArea": "147\u00a0570 km2", "HighestPoint": "Saka Haphong (1\u00a0052\u00a0m, 3\u00a0451\u00a0ft)", "LowestPoint": "Bay of Bengal", "GdpPerCapita": "$ 1\u00a0698 (World Bank, 2018)", "Currency": "Bangladeshi taka (\u09f3, BDT)", "CallingCode": ["+880"], "InternetTld": ".bd"}, {"Id": 26, "Name": "Bhutan", "Flag": "http://media.tekbunny.com/countriesflags/images/bt.png", "Independent": "Yes", "CountryCodes": ["BT", "BTN (ISO 3166-1)"], "OfficialName": "Kingdom of Bhutan", "CapitalCity": "Thimphu", "Continent": "Asia", "MemberOf": ["United Nations"], "Population": "741\u00a0672 (2019)", "TotalArea": "38\u00a0394 km2", "HighestPoint": "Gangkhar Puensum (7\u00a0570\u00a0m, 24\u00a0836\u00a0ft)", "LowestPoint": "Drangme Chhu (97\u00a0m, 318\u00a0ft)", "GdpPerCapita": "$ 3\u00a0243 (World Bank, 2018)", "Currency": "Bhutanese ngultrum (Nu., BTN)", "CallingCode": ["+975"], "InternetTld": ".bt"}, {"Id": 33, "Name": "Brunei", "Flag": "http://media.tekbunny.com/countriesflags/images/bn.png", "Independent": "Yes", "CountryCodes": ["BN", "BRN (ISO 3166-1)"], "OfficialName": "Nation of Brunei, Abode of Peace", "CapitalCity": "Bandar Seri Begawan", "Continent": "Asia", "MemberOf": ["United Nations", "Commonwealth of Nations", "Association of Southeast Asian Nations", "Organisation of Islamic Cooperation"], "Population": "442\u00a0400 (2018)", "TotalArea": "5\u00a0765 km2", "HighestPoint": "Bukit Pagon (1\u00a0850\u00a0m, 6\u00a0070\u00a0ft)", "LowestPoint": "South China Sea", "GdpPerCapita": "$ 31\u00a0628 (World Bank, 2018)", "Currency": "Brunei dollar ($, BND)", "CallingCode": ["+673"], "InternetTld": ".bn"}, {"Id": 37, "Name": "Cambodia", "Flag": "http://media.tekbunny.com/countriesflags/images/kh.png", "Independent": "Yes", "CountryCodes": ["KH", "KHM (ISO 3166-1)"], "OfficialName": "Kingdom of Cambodia", "CapitalCity": "Phnom Penh", "Continent": "Asia", "MemberOf": ["United Nations", "Association of Southeast Asian Nations"], "Population": "15\u00a0288\u00a0489 (2019)", "TotalArea": "181\u00a0035 km2", "HighestPoint": "Phnom Aural (1\u00a0810\u00a0m, 5\u00a0938\u00a0ft)", "LowestPoint": "Gulf of Thailand", "GdpPerCapita": "$ 1\u00a0510 (World Bank, 2018)", "Currency": "Cambodian riel (\u17db, KHR)", "CallingCode": ["+855"], "InternetTld": ".kh"}, {"Id": 46, "Name": "China", "Flag": "http://media.tekbunny.com/countriesflags/images/cn.png", "Independent": "Yes", "CountryCodes": ["CN", "CHN (ISO 3166-1)"], "OfficialName": "People's Republic of China", "CapitalCity": "Beijing", "Continent": "Asia", "MemberOf": ["United Nations"], "Population": "1\u00a0401\u00a0492\u00a0920 (2020)", "TotalArea": "9\u00a0596\u00a0960 km2", "HighestPoint": "Mount Everest (8\u00a0848\u00a0m, 29\u00a0029\u00a0ft)", "LowestPoint": "Ayding Lake (-154\u00a0m, -505\u00a0ft)", "GdpPerCapita": "$ 9\u00a0771 (World Bank, 2018)", "Currency": "Chinese yuan (\u00a5, CNY)", "CallingCode": ["+86"], "InternetTld": ".cn, .\u4e2d\u56fd, .\u4e2d\u570b, .\u516c\u53f8, .\u7f51\u7edc"}, {"Id": 66, "Name": "Egypt", "Flag": "http://media.tekbunny.com/countriesflags/images/eg.png", "Independent": "Yes", "CountryCodes": ["EG", "EGY (ISO 3166-1)"], "OfficialName": "Arab Republic of Egypt", "CapitalCity": "Cairo", "Continent": "Africa, Asia", "MemberOf": ["United Nations", "African Union", "Arab League", "Organisation of Islamic Cooperation"], "Population": "100\u00a0052\u00a0943 (2020)", "TotalArea": "1\u00a0002\u00a0450 km2", "HighestPoint": "Mount Catherine (2\u00a0629\u00a0m, 8\u00a0625\u00a0ft)", "LowestPoint": "Qattara Depression (-133\u00a0m, -436\u00a0ft)", "GdpPerCapita": "$ 2\u00a0549 (World Bank, 2018)", "Currency": "Egyptian pound (E\u00a3, EGP)", "CallingCode": ["+20"], "InternetTld": ".eg, .\u0645\u0635\u0631"}, {"Id": 84, "Name": "Georgia", "Flag": "http://media.tekbunny.com/countriesflags/images/ge.png", "Independent": "Yes", "CountryCodes": ["GE", "GEO (ISO 3166-1)"], "OfficialName": "Georgia", "CapitalCity": "Tbilisi", "Continent": "Asia", "MemberOf": ["United Nations"], "Population": "3\u00a0723\u00a0464 (2019)", "TotalArea": "69\u00a0700 km2", "HighestPoint": "Shkhara (5\u00a0201\u00a0m, 17\u00a0064\u00a0ft)", "LowestPoint": "Black Sea", "GdpPerCapita": "$ 4\u00a0717 (World Bank, 2018)", "Currency": "Georgian lari (\u20be, GEL)", "CallingCode": ["+995"], "InternetTld": ".ge"}, {"Id": 101, "Name": "Hong Kong", "Flag": "http://media.tekbunny.com/countriesflags/images/hk.png", "Independent": "No", "CountryCodes": ["HK", "HKG (ISO 3166-1)"], "OfficialName": "Hong Kong Special Administrative Region of the People's Republic of China", "CapitalCity": "City of Victoria", "Continent": "Asia", "Population": "7\u00a0500\u00a0700 (2019)", "TotalArea": "1\u00a0104 km2", "HighestPoint": "Tai Mo Shan (958\u00a0m, 3\u00a0143\u00a0ft)", "LowestPoint": "South China Sea", "GdpPerCapita": "$ 48\u00a0717 (World Bank, 2018)", "Currency": "Hong Kong dollar ($, HKD)", "CallingCode": ["+852"], "InternetTld": ".hk, .\u9999\u6e2f"}, {"Id": 104, "Name": "India", "Flag": "http://media.tekbunny.com/countriesflags/images/in.png", "Independent": "Yes", "CountryCodes": ["IN", "IND (ISO 3166-1)"], "OfficialName": "Republic of India", "CapitalCity": "New Delhi", "Continent": "Asia", "MemberOf": ["United Nations", "Commonwealth of Nations"], "Population": "1\u00a0359\u00a0072\u00a0550 (2020)", "TotalArea": "3\u00a0287\u00a0260 km2", "HighestPoint": "Kangchenjunga (8\u00a0586\u00a0m, 28\u00a0169\u00a0ft)", "LowestPoint": "Kuttanad (-2\u00a0m, -7\u00a0ft)", "GdpPerCapita": "$ 2\u00a0010 (World Bank, 2018)", "Currency": "Indian rupee (\u20b9, INR)", "CallingCode": ["+91"], "InternetTld": ".in"}, {"Id": 105, "Name": "Indonesia", "Flag": "http://media.tekbunny.com/countriesflags/images/id.png", "Independent": "Yes", "CountryCodes": ["ID", "IDN (ISO 3166-1)"], "OfficialName": "Republic of Indonesia", "CapitalCity": "Jakarta", "Continent": "Asia, Oceania", "MemberOf": ["United Nations", "Association of Southeast Asian Nations", "Organisation of Islamic Cooperation"], "Population": "266\u00a0911\u00a0900 (2019)", "TotalArea": "1\u00a0910\u00a0930 km2", "HighestPoint": "Puncak Jaya (4\u00a0884\u00a0m, 16\u00a0024\u00a0ft)", "LowestPoint": "Indian Ocean, South Pacific Ocean", "GdpPerCapita": "$ 3\u00a0894 (World Bank, 2018)", "Currency": "Indonesian rupiah (Rp, IDR)", "CallingCode": ["+62"], "InternetTld": ".id"}, {"Id": 106, "Name": "Iran", "Flag": "http://media.tekbunny.com/countriesflags/images/ir.png", "Independent": "Yes", "CountryCodes": ["IR", "IRN (ISO 3166-1)"], "OfficialName": "Islamic Republic of Iran", "CapitalCity": "Tehran", "Continent": "Asia", "MemberOf": ["United Nations", "Organisation of Islamic Cooperation", "OPEC"], "Population": "83\u00a0230\u00a0120 (2020)"},{"_note":"Response truncated for documentation purposes"}]
curl --location --request GET 'https://zylalabs.com/api/2656/countries+data+api/2681/countries+by+continent' --header 'Authorization: Bearer YOUR_API_KEY'
To use this endpoint you must indicate the name of a country in the parameter.
Country data by Name - Endpoint Features
| Object | Description |
|---|
[{"Id": 68, "Name": "England", "Flag": "http://media.tekbunny.com/countriesflags/images/gb-eng.png", "Independent": "No", "CountryCodes": ["GB-ENG (ISO 3166-2:GB)"], "OfficialName": "England", "CapitalCity": "London", "Population": "55\u00a0977\u00a0178 (2018)", "TotalArea": "130\u00a0279 km2", "Currency": "British pound (\u00a3, GBP)", "CallingCode": ["+44"], "InternetTld": ".uk"}]
curl --location --request GET 'https://zylalabs.com/api/2656/countries+data+api/2682/country+data+by+name' --header 'Authorization: Bearer YOUR_API_KEY'
| Header | Description |
|---|---|
Authorization
|
[Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed. |
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
To use this API the user must indicate the name of a country or continent.
There are different plans suits everyone including a free trial for small amount of requests, but it’s rate is limit to prevent abuse of the service.
Zyla provides a wide range of integration methods for almost all programming languages. You can use these codes to integrate with your project as you need.
The Country Data API is a service that provides detailed information on countries around the world, including demographic and economic data.
Each endpoint returns JSON data containing various country-related information. For example, the "GET Countries by continent" endpoint provides details like country name, capital city, population, area, and currency.
Key fields include "Name," "CapitalCity," "Population," "TotalArea," "Currency," and "CallingCode." These fields provide essential information about each country.
The API offers data on continents, countries by continent, and specific country details. This includes geographic, demographic, and economic information, such as GDP per capita and national flags.
The response data is structured as an array of JSON objects. Each object represents a country or continent, containing relevant fields like "Id," "Name," and "Population," making it easy to parse and utilize.
Parameters include the name of a continent for the "GET Countries by continent" endpoint and the name of a country for the "GET Country data by Name" endpoint. These parameters help filter the data returned.
Users can extract specific fields from the JSON response to display relevant information in their applications. For instance, a travel app can show the capital city and currency for a selected country.
The data is sourced from reputable global databases and organizations, ensuring accuracy and reliability. Regular updates help maintain the quality of the information provided.
Typical use cases include travel planning, e-commerce localization, financial analysis, demographic research, and geographic mapping. The API supports diverse applications across various industries.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
To obtain your API key, you first need to sign in to your account and subscribe to the API you want to use. Once subscribed, go to your Profile, open the Subscription section, and select the specific API. Your API key will be available there and can be used to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
If you don’t cancel before the 7th day, your free trial will end automatically and your subscription will switch to a paid plan under the same plan you originally subscribed to, meaning you will be charged and gain access to the API calls included in that plan.
The free trial ends when you reach 50 API requests or after 7 days, whichever comes first.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost, so you can test our APIs without any commitment.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
Service Level:
100%
Response Time:
600ms
Service Level:
100%
Response Time:
709ms
Service Level:
100%
Response Time:
583ms
Service Level:
100%
Response Time:
1,025ms
Service Level:
100%
Response Time:
373ms
Service Level:
100%
Response Time:
459ms
Service Level:
100%
Response Time:
3,420ms
Service Level:
100%
Response Time:
500ms
Service Level:
100%
Response Time:
756ms
Service Level:
100%
Response Time:
245ms
Service Level:
100%
Response Time:
878ms
Service Level:
100%
Response Time:
5,368ms
Service Level:
100%
Response Time:
236ms
Service Level:
100%
Response Time:
1,394ms
Service Level:
100%
Response Time:
764ms
Service Level:
100%
Response Time:
1,301ms
Service Level:
100%
Response Time:
2,381ms
Service Level:
100%
Response Time:
1,374ms
Service Level:
100%
Response Time:
11,307ms
Service Level:
100%
Response Time:
5,312ms