Country Data API

Country Data API provides comprehensive information on the economy, society, education, environment, and demographics of countries, with up-to-date and reliable data.

The Country Data API provides reliable, up-to-date, and structured information on different countries around the world. With this API, users can access a comprehensive set of indicators covering multiple areas, making it an essential resource for users who need to integrate statistical information into their projects or applications.

The available data includes economic aspects such as gross domestic product (GDP), economic growth, exports, and imports, as well as unemployment and employment rates broken down by sector (agriculture, industry, and services). This information provides insight into a country's economic performance and allows for the analysis of trends over time.

In the social and demographic sphere, the API offers data on total population, population growth, population density, urbanization, life expectancy by gender, infant mortality rates, fertility, migration, and refugees. It also includes education indicators such as enrollment rates in primary, secondary, and higher education, broken down by gender, which provides insight into human development and equal opportunities in each country.

The API also incorporates key environmental statistics, including total land area, forested area, CO₂ emissions, and endangered species, which are relevant factors for assessing sustainability and environmental impact.

API Documentation

Endpoints


Provides quick access to reliable statistics on the economy, population, education, environment, and society of any country.



                                                                            
GET https://www.zylalabs.com/api/9935/country+data+api/18723/country+information
                                                                            
                                                                        

Country Information - Endpoint Features

Object Description
name [Required] Enter a country name or country code
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            [
  {
    "gdp": 518475,
    "sex_ratio": 95.3,
    "surface_area": 2780400,
    "life_expectancy_male": 73,
    "unemployment": 10.4,
    "imports": 49125,
    "homicide_rate": 5.3,
    "currency": {
      "code": "ARS",
      "name": "Argentine Peso"
    },
    "iso2": "AR",
    "employment_services": 78.9,
    "employment_industry": 21,
    "urban_population_growth": 1.2,
    "secondary_school_enrollment_female": 111,
    "employment_agriculture": 0.1,
    "capital": "Buenos Aires",
    "co2_emissions": 183.4,
    "forested_area": 9.9,
    "tourists": 6942,
    "exports": 65114,
    "life_expectancy_female": 79.8,
    "post_secondary_enrollment_female": 112.8,
    "post_secondary_enrollment_male": 67.8,
    "primary_school_enrollment_female": 109.6,
    "infant_mortality": 10.2,
    "gdp_growth": -2.5,
    "threatened_species": 285,
    "population": 45196,
    "urban_population": 92,
    "secondary_school_enrollment_male": 106.5,
    "name": "Argentina",
    "pop_growth": 1,
    "region": "South America",
    "pop_density": 16.5,
    "internet_users": 74.3,
    "gdp_per_capita": 11687.6,
    "fertility": 2.3,
    "refugees": 165.6,
    "primary_school_enrollment_male": 109.9,
    "telephone_country_codes": [
      "54"
    ]
  }
]
                                                                                                                                                                                                                    
                                                                                                    

Country Information - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/9935/country+data+api/18723/country+information?name=Required' --header 'Authorization: Bearer YOUR_API_KEY' 


    

Returns a complete list of cities by country code, including name, coordinates, state, and associated code.



                                                                            
GET https://www.zylalabs.com/api/9935/country+data+api/18729/cities+by+country
                                                                            
                                                                        

Cities by Country - Endpoint Features

Object Description
countrycode [Required] Enter a country code
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            [{"name":"Abbaretz","countryCode":"FR","stateCode":"PDL","latitude":"47.55314000","longitude":"-1.53200000"},{"name":"Abbeville","countryCode":"FR","stateCode":"HDF","latitude":"50.10521000","longitude":"1.83547000"},{"name":"Abeilhan","countryCode":"FR","stateCode":"OCC","latitude":"43.44925000","longitude":"3.29529000"},{"name":"Abilly","countryCode":"FR","stateCode":"CVL","latitude":"46.93333000","longitude":"0.73333000"},{"name":"Ablain-Saint-Nazaire","countryCode":"FR","stateCode":"HDF","latitude":"50.39320000","longitude":"2.70880000"},{"name":"Ableiges","countryCode":"FR","stateCode":"IDF","latitude":"49.08932000","longitude":"1.98154000"},{"name":"Ablis","countryCode":"FR","stateCode":"IDF","latitude":"48.51720000","longitude":"1.83624000"},{"name":"Ablon","countryCode":"FR","stateCode":"NOR","latitude":"49.39214000","longitude":"0.29584000"},{"name":"Ablon-sur-Seine","countryCode":"FR","stateCode":"IDF","latitude":"48.72732000","longitude":"2.42686000"},{"name":"Abondance","countryCode":"FR","stateCode":"ARA","latitude":"46.27874000","longitude":"6.72105000"},{"name":"Abondant","countryCode":"FR","stateCode":"CVL","latitude":"48.78590000","longitude":"1.44006000"},{"name":"Abreschviller","countryCode":"FR","stateCode":"GES","latitude":"48.63698000","longitude":"7.09607000"},{"name":"Abrest","countryCode":"FR","stateCode":"ARA","latitude":"46.09859000","longitude":"3.44461000"},{"name":"Abscon","countryCode":"FR","stateCode":"HDF","latitude":"50.33333000","longitude":"3.30000000"},{"name":"Abzac","countryCode":"FR","stateCode":"NAQ","latitude":"45.01667000","longitude":"-0.13333000"},{"name":"Achenheim","countryCode":"FR","stateCode":"GES","latitude":"48.58070000","longitude":"7.62803000"},{"name":"Achicourt","countryCode":"FR","stateCode":"HDF","latitude":"50.27429000","longitude":"2.75779000"},{"name":"Achiet-le-Grand","countryCode":"FR","stateCode":"HDF","latitude":"50.13067000","longitude":"2.78119000"},{"name":"Achères","countryCode":"FR","stateCode":"IDF","latitude":"48.96115000","longitude":"2.06882000"},{"name":"Achères-la-Forêt","countryCode":"FR","stateCode":"IDF","latitude":"48.35458000","longitude":"2.57035000"},{"name":"Acigné","countryCode":"FR","stateCode":"BRE","latitude":"48.13333000","longitude":"-1.53704000"},{"name":"Acquigny","countryCode":"FR","stateCode":"NOR","latitude":"49.17350000","longitude":"1.17650000"},{"name":"Afa","countryCode":"FR","stateCode":"20R","latitude":"41.98396000","longitude":"8.79833000"},{"name":"Agde","countryCode":"FR","stateCode":"OCC","latitude":"43.31083000","longitude":"3.47583000"},{"name":"Agen","countryCode":"FR","stateCode":"NAQ","latitude":"44.19991000","longitude":"0.62664000"},{"name":"Agneaux","countryCode":"FR","stateCode":"NOR","latitude":"49.11905000","longitude":"-1.10610000"},{"name":"Agnetz","countryCode":"FR","stateCode":"HDF","latitude":"49.38118000","longitude":"2.38621000"},{"name":"Agny","countryCode":"FR","stateCode":"HDF","latitude":"50.25914000","longitude":"2.76002000"},{"name":"Agon-Coutainville","countryCode":"FR","stateCode":"NOR","latitude":"49.04167000","longitude":"-1.57500000"},{"name":"Agonac","countryCode":"FR","stateCode":"NAQ","latitude":"45.29248000","longitude":"0.75025000"},{"name":"Ahetze","countryCode":"FR","stateCode":"NAQ","latitude":"43.40432000","longitude":"-1.57191000"},{"name":"Ahuillé","countryCode":"FR","stateCode":"PDL","latitude":"48.02086000","longitude":"-0.86906000"},{"name":"Ahun","countryCode":"FR","stateCode":"NAQ","latitude":"46.08594000","longitude":"2.04479000"},{"name":"Ahuy","countryCode":"FR","stateCode":"BFC","latitude":"47.36944000","longitude":"5.02089000"},{"name":"Aiffres","countryCode":"FR","stateCode":"NAQ","latitude":"46.29449000","longitude":"-0.42101000"},{"name":"Aiglemont","countryCode":"FR","stateCode":"GES","latitude":"49.78031000","longitude":"4.76483000"},{"name":"Aigné","countryCode":"FR","stateCode":"PDL","latitude":"48.06471000","longitude":"0.11908000"},{"name":"Aigre","countryCode":"FR","stateCode":"NAQ","latitude":"45.89377000","longitude":"0.00963000"},{"name":"Aigrefeuille-sur-Maine","countryCode":"FR","stateCode":"PDL","latitude":"47.07888000","longitude":"-1.40254000"},{"name":"Aigueblanche","countryCode":"FR","stateCode":"ARA","latitude":"45.50455000","longitude":"6.50184000"},{"name":"Aiguefonde","countryCode":"FR","stateCode":"OCC","latitude":"43.49394000","longitude":"2.31686000"},{"name":"Aigueperse","countryCode":"FR","stateCode":"ARA","latitude":"46.02255000","longitude":"3.20228000"},{"name":"Aigues-Mortes","countryCode":"FR","stateCode":"OCC","latitude":"43.56683000","longitude":"4.19068000"},{"name":"Aigues-Vives","countryCode":"FR","stateCode":"OCC","latitude":"43.73790000","longitude":"4.18066000"},{"name":"Aiguillon","countryCode":"FR","stateCode":"NAQ","latitude":"44.29893000","longitude":"0.34020000"},{"name":"Aigurande","countryCode":"FR","stateCode":"CVL","latitude":"46.43397000","longitude":"1.83026000"},{"name":"Aillant-sur-Tholon","countryCode":"FR","stateCode":"BFC","latitude":"47.87426000","longitude":"3.35049000"},{"name":"Aillevillers-et-Lyaumont","countryCode":"FR","stateCode":"BFC","latitude":"47.92033000","longitude":"6.33775000"},{"name":"Ailly-sur-Noye","countryCode":"FR","stateCode":"HDF","latitude":"49.75707000","longitude":"2.36367000"},{"name":"Ailly-sur-Somme","countryCode":"FR","stateCode":"HDF","latitude":"49.92886000","longitude":"2.19615000"},{"name":"Aimargues","countryCode":"FR","stateCode":"OCC","latitude":"43.68448000","longitude":"4.20999000"},{"name":"Aime","countryCode":"FR","stateCode":"ARA","latitude":"45.55559000","longitude":"6.65042000"},{"name":"Ainay-le-Château","countryCode":"FR","stateCode":"ARA","latitude":"46.71125000","longitude":"2.69238000"},{"name":"Airaines","countryCode":"FR","stateCode":"HDF","latitude":"49.96826000","longitude":"1.94266000"},{"name":"Aire-sur-la-Lys","countryCode":"FR","stateCode":"HDF","latitude":"50.63871000","longitude":"2.39876000"},{"name":"Airvault","countryCode":"FR","stateCode":"NAQ","latitude":"46.82533000","longitude":"-0.13634000"},{"name":"Aiserey","countryCode":"FR","stateCode":"BFC","latitude":"47.17229000","longitude":"5.16260000"},{"name":"Aiton","countryCode":"FR","stateCode":"ARA","latitude":"45.56123000","longitude":"6.25955000"},{"name":"Aix-Noulette","countryCode":"FR","stateCode":"HDF","latitude":"50.42568000","longitude":"2.70554000"},{"name":"Aix-en-Othe","countryCode":"FR","stateCode":"GES","latitude":"48.22391000","longitude":"3.73425000"},{"name":"Aix-en-Provence","countryCode":"FR","stateCode":"PAC","latitude":"43.52830000","longitude":"5.44973000"},{"name":"Aix-les-Bains","countryCode":"FR","stateCode":"ARA","latitude":"45.69173000","longitude":"5.90863000"},{"name":"Aixe-sur-Vienne","countryCode":"FR","stateCode":"NAQ","latitude":"45.79862000","longitude":"1.13884000"},{"name":"Aizenay","countryCode":"FR","stateCode":"PDL","latitude":"46.74004000","longitude":"-1.60834000"},{"name":"Ajaccio","countryCode":"FR","stateCode":"20R","latitude":"41.91886000","longitude":"8.73812000"},{"name":"Ajain","countryCode":"FR","stateCode":"NAQ","latitude":"46.20635000","longitude":"1.99850000"},{"name":"Alata","countryCode":"FR","stateCode":"20R","latitude":"41.97636000","longitude":"8.74208000"},{"name":"Alba-la-Romaine","countryCode":"FR","stateCode":"ARA","latitude":"44.55537000","longitude":"4.59846000"},{"name":"Albens","countryCode":"FR","stateCode":"ARA","latitude":"45.78786000","longitude":"5.94528000"},{"name":"Albert","countryCode":"FR","stateCode":"HDF","latitude":"50.00091000","longitude":"2.65096000"},{"name":"Albertville","countryCode":"FR","stateCode":"ARA","latitude":"45.67452000","longitude":"6.39061000"},{"name":"Albi","countryCode":"FR","stateCode":"OCC","latitude":"43.92980000","longitude":"2.14800000"},{"name":"Albias","countryCode":"FR","stateCode":"OCC","latitude":"44.09049000","longitude":"1.44821000"},{"name":"Albigny-sur-Saône","countryCode":"FR","stateCode":"ARA","latitude":"45.86667000","longitude":"4.83333000"},{"name":"Albitreccia","countryCode":"FR","stateCode":"20R","latitude":"41.86301000","longitude":"8.94262000"},{"name":"Alby-sur-Chéran","countryCode":"FR","stateCode":"ARA","latitude":"45.81667000","longitude":"6.01667000"},{"name":"Alençon","countryCode":"FR","stateCode":"NOR","latitude":"48.43476000","longitude":"0.09311000"},{"name":"Alfortville","countryCode":"FR","stateCode":"IDF","latitude":"48.80575000","longitude":"2.42040000"},{"name":"Algolsheim","countryCode":"FR","stateCode":"GES","latitude":"48.00629000","longitude":"7.55945000"},{"name":"Algrange","countryCode":"FR","stateCode":"GES","latitude":"49.36276000","longitude":"6.05094000"},{"name":"Alignan-du-Vent","countryCode":"FR","stateCode":"OCC","latitude":"43.46945000","longitude":"3.34165000"},{"name":"Alissas","countryCode":"FR","stateCode":"ARA","latitude":"44.71253000","longitude":"4.62936000"},{"name":"Alixan","countryCode":"FR","stateCode":"ARA","latitude":"44.97426000","longitude":"5.02850000"},{"name":"Alizay","countryCode":"FR","stateCode":"NOR","latitude":"49.32158000","longitude":"1.17854000"},{"name":"Allaire","countryCode":"FR","stateCode":"BRE","latitude":"47.63752000","longitude":"-2.16324000"},{"name":"Allan","countryCode":"FR","stateCode":"ARA","latitude":"44.49713000","longitude":"4.79068000"},{"name":"Allanche","countryCode":"FR","stateCode":"ARA","latitude":"45.22907000","longitude":"2.93449000"},{"name":"Allassac","countryCode":"FR","stateCode":"NAQ","latitude":"45.25840000","longitude":"1.47550000"},{"name":"Allauch","countryCode":"FR","stateCode":"PAC","latitude":"43.33573000","longitude":"5.48201000"},{"name":"Alleins","countryCode":"FR","stateCode":"PAC","latitude":"43.70387000","longitude":"5.16203000"},{"name":"Allennes-les-Marais","countryCode":"FR","stateCode":"HDF","latitude":"50.53754000","longitude":"2.95361000"},{"name":"Allevard","countryCode":"FR","stateCode":"ARA","latitude":"45.39449000","longitude":"6.07519000"},{"name":"A...
                                                                                                                                                                                                                    
                                                                                                    

Cities by Country - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/9935/country+data+api/18729/cities+by+country?countrycode=fr' --header 'Authorization: Bearer YOUR_API_KEY' 


    

Returns a complete list of cities by country code, including the name, coordinates, state, and associated code.



                                                                            
GET https://www.zylalabs.com/api/9935/country+data+api/18750/states+by+country+code
                                                                            
                                                                        

States by country code - Endpoint Features

Object Description
countrycode [Required] Enter a country code
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            [{"name":"Alabama","isoCode":"AL","countryCode":"US","latitude":"32.31823140","longitude":"-86.90229800"},{"name":"Alaska","isoCode":"AK","countryCode":"US","latitude":"64.20084130","longitude":"-149.49367330"},{"name":"American Samoa","isoCode":"AS","countryCode":"US","latitude":"-14.27097200","longitude":"-170.13221700"},{"name":"Arizona","isoCode":"AZ","countryCode":"US","latitude":"34.04892810","longitude":"-111.09373110"},{"name":"Arkansas","isoCode":"AR","countryCode":"US","latitude":"35.20105000","longitude":"-91.83183340"},{"name":"Baker Island","isoCode":"UM-81","countryCode":"US","latitude":"0.19362660","longitude":"-176.47690800"},{"name":"California","isoCode":"CA","countryCode":"US","latitude":"36.77826100","longitude":"-119.41793240"},{"name":"Colorado","isoCode":"CO","countryCode":"US","latitude":"39.55005070","longitude":"-105.78206740"},{"name":"Connecticut","isoCode":"CT","countryCode":"US","latitude":"41.60322070","longitude":"-73.08774900"},{"name":"Delaware","isoCode":"DE","countryCode":"US","latitude":"38.91083250","longitude":"-75.52766990"},{"name":"District of Columbia","isoCode":"DC","countryCode":"US","latitude":"38.90719230","longitude":"-77.03687070"},{"name":"Florida","isoCode":"FL","countryCode":"US","latitude":"27.66482740","longitude":"-81.51575350"},{"name":"Georgia","isoCode":"GA","countryCode":"US","latitude":"32.16562210","longitude":"-82.90007510"},{"name":"Guam","isoCode":"GU","countryCode":"US","latitude":"13.44430400","longitude":"144.79373100"},{"name":"Hawaii","isoCode":"HI","countryCode":"US","latitude":"19.89676620","longitude":"-155.58278180"},{"name":"Howland Island","isoCode":"UM-84","countryCode":"US","latitude":"0.81132190","longitude":"-176.61827360"},{"name":"Idaho","isoCode":"ID","countryCode":"US","latitude":"44.06820190","longitude":"-114.74204080"},{"name":"Illinois","isoCode":"IL","countryCode":"US","latitude":"40.63312490","longitude":"-89.39852830"},{"name":"Indiana","isoCode":"IN","countryCode":"US","latitude":"40.26719410","longitude":"-86.13490190"},{"name":"Iowa","isoCode":"IA","countryCode":"US","latitude":"41.87800250","longitude":"-93.09770200"},{"name":"Jarvis Island","isoCode":"UM-86","countryCode":"US","latitude":"-0.37435030","longitude":"-159.99672060"},{"name":"Johnston Atoll","isoCode":"UM-67","countryCode":"US","latitude":"16.72950350","longitude":"-169.53364770"},{"name":"Kansas","isoCode":"KS","countryCode":"US","latitude":"39.01190200","longitude":"-98.48424650"},{"name":"Kentucky","isoCode":"KY","countryCode":"US","latitude":"37.83933320","longitude":"-84.27001790"},{"name":"Kingman Reef","isoCode":"UM-89","countryCode":"US","latitude":"6.38333300","longitude":"-162.41666700"},{"name":"Louisiana","isoCode":"LA","countryCode":"US","latitude":"30.98429770","longitude":"-91.96233270"},{"name":"Maine","isoCode":"ME","countryCode":"US","latitude":"45.25378300","longitude":"-69.44546890"},{"name":"Maryland","isoCode":"MD","countryCode":"US","latitude":"39.04575490","longitude":"-76.64127120"},{"name":"Massachusetts","isoCode":"MA","countryCode":"US","latitude":"42.40721070","longitude":"-71.38243740"},{"name":"Michigan","isoCode":"MI","countryCode":"US","latitude":"44.31484430","longitude":"-85.60236430"},{"name":"Midway Atoll","isoCode":"UM-71","countryCode":"US","latitude":"28.20721680","longitude":"-177.37349260"},{"name":"Minnesota","isoCode":"MN","countryCode":"US","latitude":"46.72955300","longitude":"-94.68589980"},{"name":"Mississippi","isoCode":"MS","countryCode":"US","latitude":"32.35466790","longitude":"-89.39852830"},{"name":"Missouri","isoCode":"MO","countryCode":"US","latitude":"37.96425290","longitude":"-91.83183340"},{"name":"Montana","isoCode":"MT","countryCode":"US","latitude":"46.87968220","longitude":"-110.36256580"},{"name":"Navassa Island","isoCode":"UM-76","countryCode":"US","latitude":"18.41006890","longitude":"-75.01146120"},{"name":"Nebraska","isoCode":"NE","countryCode":"US","latitude":"41.49253740","longitude":"-99.90181310"},{"name":"Nevada","isoCode":"NV","countryCode":"US","latitude":"38.80260970","longitude":"-116.41938900"},{"name":"New Hampshire","isoCode":"NH","countryCode":"US","latitude":"43.19385160","longitude":"-71.57239530"},{"name":"New Jersey","isoCode":"NJ","countryCode":"US","latitude":"40.05832380","longitude":"-74.40566120"},{"name":"New Mexico","isoCode":"NM","countryCode":"US","latitude":"34.51994020","longitude":"-105.87009010"},{"name":"New York","isoCode":"NY","countryCode":"US","latitude":"40.71277530","longitude":"-74.00597280"},{"name":"North Carolina","isoCode":"NC","countryCode":"US","latitude":"35.75957310","longitude":"-79.01929970"},{"name":"North Dakota","isoCode":"ND","countryCode":"US","latitude":"47.55149260","longitude":"-101.00201190"},{"name":"Northern Mariana Islands","isoCode":"MP","countryCode":"US","latitude":"15.09790000","longitude":"145.67390000"},{"name":"Ohio","isoCode":"OH","countryCode":"US","latitude":"40.41728710","longitude":"-82.90712300"},{"name":"Oklahoma","isoCode":"OK","countryCode":"US","latitude":"35.46756020","longitude":"-97.51642760"},{"name":"Oregon","isoCode":"OR","countryCode":"US","latitude":"43.80413340","longitude":"-120.55420120"},{"name":"Palmyra Atoll","isoCode":"UM-95","countryCode":"US","latitude":"5.88850260","longitude":"-162.07866560"},{"name":"Pennsylvania","isoCode":"PA","countryCode":"US","latitude":"41.20332160","longitude":"-77.19452470"},{"name":"Puerto Rico","isoCode":"PR","countryCode":"US","latitude":"18.22083300","longitude":"-66.59014900"},{"name":"Rhode Island","isoCode":"RI","countryCode":"US","latitude":"41.58009450","longitude":"-71.47742910"},{"name":"South Carolina","isoCode":"SC","countryCode":"US","latitude":"33.83608100","longitude":"-81.16372450"},{"name":"South Dakota","isoCode":"SD","countryCode":"US","latitude":"43.96951480","longitude":"-99.90181310"},{"name":"Tennessee","isoCode":"TN","countryCode":"US","latitude":"35.51749130","longitude":"-86.58044730"},{"name":"Texas","isoCode":"TX","countryCode":"US","latitude":"31.96859880","longitude":"-99.90181310"},{"name":"United States Minor Outlying Islands","isoCode":"UM","countryCode":"US","latitude":"19.28231920","longitude":"166.64704700"},{"name":"United States Virgin Islands","isoCode":"VI","countryCode":"US","latitude":"18.33576500","longitude":"-64.89633500"},{"name":"Utah","isoCode":"UT","countryCode":"US","latitude":"39.32098010","longitude":"-111.09373110"},{"name":"Vermont","isoCode":"VT","countryCode":"US","latitude":"44.55880280","longitude":"-72.57784150"},{"name":"Virginia","isoCode":"VA","countryCode":"US","latitude":"37.43157340","longitude":"-78.65689420"},{"name":"Wake Island","isoCode":"UM-79","countryCode":"US","latitude":"19.27961900","longitude":"166.64993480"},{"name":"Washington","isoCode":"WA","countryCode":"US","latitude":"47.75107410","longitude":"-120.74013850"},{"name":"West Virginia","isoCode":"WV","countryCode":"US","latitude":"38.59762620","longitude":"-80.45490260"},{"name":"Wisconsin","isoCode":"WI","countryCode":"US","latitude":"43.78443970","longitude":"-88.78786780"},{"name":"Wyoming","isoCode":"WY","countryCode":"US","latitude":"43.07596780","longitude":"-107.29028390"}]
                                                                                                                                                                                                                    
                                                                                                    

States by country code - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/9935/country+data+api/18750/states+by+country+code?countrycode=us' --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 Data 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 commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.

🚀 Enterprise

Starts at
$ 10,000/Year


  • Custom Volume
  • Custom Rate Limit
  • 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

Country Data API FAQs

The GET Country Information endpoint returns statistics on the economy, population, education, environment, and society of a specified country. The GET Cities by Country and GET States by Country endpoints return lists of cities and states, respectively, including details like name, coordinates, and associated codes.

For the GET Country Information endpoint, key fields include GDP, population, education enrollment rates, and CO₂ emissions. For the GET Cities and States endpoints, key fields include city/state name, coordinates, and state/country codes.

The response data is structured in JSON format, with each endpoint returning an object containing relevant fields. For example, the GET Country Information endpoint provides a single object with various statistics, while the GET Cities by Country returns an array of city objects.

The GET Country Information endpoint provides economic, demographic, educational, and environmental data. The GET Cities by Country and GET States by Country endpoints provide geographical data, including lists of cities and states associated with a specific country code.

The GET Country Information endpoint typically accepts a country code as a parameter to specify which country's data to retrieve. The GET Cities and GET States endpoints also accept a country code to filter results accordingly.

The data is sourced from reputable international organizations, government databases, and statistical agencies, ensuring a high level of accuracy and reliability. Regular updates and cross-verification processes help maintain data quality.

Typical use cases include economic analysis, demographic studies, educational research, and environmental assessments. Developers can integrate this data into applications for visualizations, reports, or decision-making tools.

Users can parse the JSON response to extract specific fields relevant to their needs. For instance, they can analyze GDP trends over time or compare education enrollment rates between countries, facilitating informed insights and decisions.

General FAQs

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 1,000 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 1,000 requests per month, this header will display 1,000.

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 3,600, it means 3,600 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 give you the opportunity to experience our APIs without any commitment, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost. This trial can be used only once, so we recommend applying it to the API that interests you the most. While most of our APIs offer a free trial, some may not. The trial concludes after 7 days or once you've made 50 requests, whichever occurs first. If you reach the 50 request limit during the trial, you will need to "Start Your Paid Plan" to continue making requests. You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab. Alternatively, if you don't cancel your subscription before the 7th day, your free trial will end, and your plan will automatically be billed, granting you access to all the API calls specified in your plan. Please keep this in mind to avoid unwanted charges.

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 free trial, you can make up to 50 API calls. If you wish to make additional API calls beyond this limit, the API will prompt you to perform an "Start Your Paid Plan." You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab.

Payout Orders are processed between the 20th and the 30th of each month. If you submit your request before the 20th, your payment will be processed within this timeframe.


Related APIs