Countries Data API

The Countries Data API offers comprehensive country information, aiding travel apps, market research, economic analysis, and demographic insights.

About the API:  

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.

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

It will receive parameters and provide you with a JSON.

 

What are the most common uses cases of this API?

  1. Travel planning applications: Integrate country data to provide users with information about their destination, including currency, capital city.

  2. E-commerce localization: Customize product offerings and pricing based on country currency data, creating a tailored shopping experience.

  3. Financial services: Use economic data to evaluate investment opportunities, track exchange rates and analyze economic trends across countries.

  4. Demographic analysis: Research and analyze demographics and population growth for market segmentation and strategic planning.

  5. Geographic mapping: Create interactive maps with geographic data, national borders and capital cities for educational and travel applications.

Are there any limitations to your plans?

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

API Documentation

Endpoints


To use this endpoint just run it and you will get the name of all the continents.



                                                                            
GET https://zylalabs.com/api/2656/countries+data+api/2680/continents
                                                                            
                                                                        

Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            [{"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"}]
                                                                                                                                                                                                                    
                                                                                                    

Continents - CODE SNIPPETS


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.



                                                                            
GET https://zylalabs.com/api/2656/countries+data+api/2681/countries+by+continent
                                                                            
                                                                        

Countries by continent - Endpoint Features

Object Description
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            [{"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)", "Tota...
                                                                                                                                                                                                                    
                                                                                                    

Countries by continent - CODE SNIPPETS


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.



                                                                            
GET https://zylalabs.com/api/2656/countries+data+api/2682/country+data+by+name
                                                                            
                                                                        

Country data by Name - Endpoint Features

Object Description
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            [{"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"}]
                                                                                                                                                                                                                    
                                                                                                    

Country data by Name - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/2656/countries+data+api/2682/country+data+by+name' --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 Countries Data API REST API, simply include your bearer token in the Authorization header.
Headers
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
  • Specialized Customer Support
  • Real-Time API Monitoring

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

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.

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.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). 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 paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.

The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.

Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]

Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.

API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.

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.

To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.

To check how many API calls you have left for the current month, refer to the β€˜X-Zyla-API-Calls-Monthly-Remaining’ field in the response header. For example, if your plan allows 1000 requests per month and you've used 100, this field in the response header will indicate 900 remaining calls.

To see the maximum number of API requests your plan allows, check the β€˜X-Zyla-RateLimit-Limit’ response header. For instance, if your plan includes 1000 requests per month, this header will display 1000.

The β€˜X-Zyla-RateLimit-Reset’ header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3600, it means 3600 seconds are left until the limit resets.

Yes, you can cancel your plan anytime by going to your account and selecting the cancellation option on the Billing page. Please note that upgrades, downgrades, and cancellations take effect immediately. Additionally, upon cancellation, you will no longer have access to the service, even if you have remaining calls left in your quota.

You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

To let you experience our APIs without any commitment, we offer a 7-day free trial that allows you to make API calls at no cost during this period. Please note that you can only use this trial once, so make sure to use it with the API that interests you the most. Most of our APIs provide a free trial, but some may not support it.

After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it’s important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.

When you subscribe to an API trial, you can make only 25% of the calls allowed by that plan. For example, if the API plan offers 1000 calls, you can make only 250 during the trial. To access the full number of calls offered by the plan, you will need to subscribe to the full plan.

 Service Level
100%
 Response Time
539ms

Category:


Related APIs