Countries Data API

Countries Data API

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

API description

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
  • 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

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.

Sure, you can use it and pay only when you use it. The credit can’t be expired.

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, 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
100%
 Response Time
412ms

Category:


Tags:


Related APIs