The Country Data Extraction 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.
Provides quick access to reliable statistics on the economy, population, education, environment, and society of any country.
Country Information - Endpoint Features
| Object | Description |
|---|---|
name |
[Required] Enter a country name or country code |
[{"gdp": 20580223.0, "sex_ratio": 97.9, "surface_area": 9833517.0, "life_expectancy_male": 76.3, "unemployment": 3.9, "imports": 2567490.0, "homicide_rate": 5.0, "currency": {"code": "USD", "name": "Us Dollar"}, "iso2": "US", "employment_services": 79.0, "employment_industry": 19.7, "urban_population_growth": 0.9, "secondary_school_enrollment_female": 98.7, "employment_agriculture": 1.3, "capital": "Washington, D.C.", "co2_emissions": 4761.3, "forested_area": 33.9, "tourists": 79746.0, "exports": 1644280.0, "life_expectancy_female": 81.3, "post_secondary_enrollment_female": 102.0, "post_secondary_enrollment_male": 75.0, "primary_school_enrollment_female": 101.4, "infant_mortality": 5.8, "gdp_growth": 2.9, "threatened_species": 1655.0, "population": 331003.0, "urban_population": 82.5, "secondary_school_enrollment_male": 99.2, "name": "United States", "pop_growth": 0.6, "region": "Northern America", "pop_density": 36.2, "internet_users": 87.3, "gdp_per_capita": 62917.9, "fertility": 1.8, "refugees": 1043.2, "primary_school_enrollment_male": 102.2, "telephone_country_codes": ["1"]}]
curl --location --request GET 'https://zylalabs.com/api/9946/country+data+extraction+api/18756/country+information?name=united states' --header 'Authorization: Bearer YOUR_API_KEY'
Returns a complete list of cities by country code, including name, coordinates, state, and associated code.
Cities by Country - Endpoint Features
| Object | Description |
|---|---|
countrycode |
[Required] Enter a country code |
[{"name":"Abbeville","countryCode":"US","stateCode":"AL","latitude":"31.57184000","longitude":"-85.25049000"},{"name":"Abbeville","countryCode":"US","stateCode":"GA","latitude":"31.99212000","longitude":"-83.30682000"},{"name":"Abbeville","countryCode":"US","stateCode":"LA","latitude":"29.97465000","longitude":"-92.13429000"},{"name":"Abbeville","countryCode":"US","stateCode":"SC","latitude":"34.17817000","longitude":"-82.37901000"},{"name":"Abbeville County","countryCode":"US","stateCode":"SC","latitude":"34.22257000","longitude":"-82.45871000"},{"name":"Abbotsford","countryCode":"US","stateCode":"WI","latitude":"44.94636000","longitude":"-90.31597000"},{"name":"Abbottstown","countryCode":"US","stateCode":"PA","latitude":"39.88649000","longitude":"-76.98470000"},{"name":"Aberdeen","countryCode":"US","stateCode":"FL","latitude":"26.55063000","longitude":"-80.14866000"},{"name":"Aberdeen","countryCode":"US","stateCode":"ID","latitude":"42.94408000","longitude":"-112.83833000"},{"name":"Aberdeen","countryCode":"US","stateCode":"IN","latitude":"41.43893000","longitude":"-87.11142000"},{"name":"Aberdeen","countryCode":"US","stateCode":"MD","latitude":"39.50956000","longitude":"-76.16412000"},{"name":"Aberdeen","countryCode":"US","stateCode":"MS","latitude":"33.82511000","longitude":"-88.54366000"},{"name":"Aberdeen","countryCode":"US","stateCode":"NC","latitude":"35.13155000","longitude":"-79.42948000"},{"name":"Aberdeen","countryCode":"US","stateCode":"SD","latitude":"45.46470000","longitude":"-98.48648000"},{"name":"Aberdeen","countryCode":"US","stateCode":"WA","latitude":"46.97537000","longitude":"-123.81572000"},{"name":"Aberdeen Proving Ground","countryCode":"US","stateCode":"MD","latitude":"39.46686000","longitude":"-76.13066000"},{"name":"Abernathy","countryCode":"US","stateCode":"TX","latitude":"33.83230000","longitude":"-101.84295000"},{"name":"Abilene","countryCode":"US","stateCode":"KS","latitude":"38.91722000","longitude":"-97.21391000"},{"name":"Abilene","countryCode":"US","stateCode":"TX","latitude":"32.44874000","longitude":"-99.73314000"},{"name":"Abingdon","countryCode":"US","stateCode":"IL","latitude":"40.80448000","longitude":"-90.40180000"},{"name":"Abingdon","countryCode":"US","stateCode":"VA","latitude":"36.70983000","longitude":"-81.97735000"},{"name":"Abington","countryCode":"US","stateCode":"MA","latitude":"42.10482000","longitude":"-70.94532000"},{"name":"Abita Springs","countryCode":"US","stateCode":"LA","latitude":"30.47864000","longitude":"-90.04008000"},{"name":"Abram","countryCode":"US","stateCode":"TX","latitude":"26.19980000","longitude":"-98.41113000"},{"name":"Absarokee","countryCode":"US","stateCode":"MT","latitude":"45.52050000","longitude":"-109.44294000"},{"name":"Absecon","countryCode":"US","stateCode":"NJ","latitude":"39.42845000","longitude":"-74.49571000"},{"name":"Acadia Parish","countryCode":"US","stateCode":"LA","latitude":"30.29053000","longitude":"-92.41198000"},{"name":"Acalanes Ridge","countryCode":"US","stateCode":"CA","latitude":"37.90472000","longitude":"-122.07857000"},{"name":"Accokeek","countryCode":"US","stateCode":"MD","latitude":"38.66762000","longitude":"-77.02831000"},{"name":"Accomac","countryCode":"US","stateCode":"VA","latitude":"37.71957000","longitude":"-75.66548000"},{"name":"Accomack County","countryCode":"US","stateCode":"VA","latitude":"37.76494000","longitude":"-75.75656000"},{"name":"Ackerman","countryCode":"US","stateCode":"MS","latitude":"33.31012000","longitude":"-89.17284000"},{"name":"Ackley","countryCode":"US","stateCode":"IA","latitude":"42.55415000","longitude":"-93.05326000"},{"name":"Acres Green","countryCode":"US","stateCode":"CO","latitude":"39.55666000","longitude":"-104.89609000"},{"name":"Acton","countryCode":"US","stateCode":"CA","latitude":"34.46999000","longitude":"-118.19674000"},{"name":"Acton","countryCode":"US","stateCode":"MA","latitude":"42.48509000","longitude":"-71.43284000"},{"name":"Acton","countryCode":"US","stateCode":"ME","latitude":"43.53425000","longitude":"-70.90978000"},{"name":"Acushnet","countryCode":"US","stateCode":"MA","latitude":"41.68066000","longitude":"-70.90782000"},{"name":"Acushnet Center","countryCode":"US","stateCode":"MA","latitude":"41.68508000","longitude":"-70.90642000"},{"name":"Acworth","countryCode":"US","stateCode":"GA","latitude":"34.06635000","longitude":"-84.67837000"},{"name":"Ada","countryCode":"US","stateCode":"MN","latitude":"47.29969000","longitude":"-96.51535000"},{"name":"Ada","countryCode":"US","stateCode":"OH","latitude":"40.76950000","longitude":"-83.82271000"},{"name":"Ada","countryCode":"US","stateCode":"OK","latitude":"34.77453000","longitude":"-96.67834000"},{"name":"Ada County","countryCode":"US","stateCode":"ID","latitude":"43.45112000","longitude":"-116.24109000"},{"name":"Adair County","countryCode":"US","stateCode":"IA","latitude":"41.33075000","longitude":"-94.47094000"},{"name":"Adair County","countryCode":"US","stateCode":"KY","latitude":"37.10416000","longitude":"-85.28065000"},{"name":"Adair County","countryCode":"US","stateCode":"MO","latitude":"40.19056000","longitude":"-92.60072000"},{"name":"Adair County","countryCode":"US","stateCode":"OK","latitude":"35.88393000","longitude":"-94.65868000"},{"name":"Adairsville","countryCode":"US","stateCode":"GA","latitude":"34.36870000","longitude":"-84.93411000"},{"name":"Adams","countryCode":"US","stateCode":"MA","latitude":"42.62425000","longitude":"-73.11760000"},{"name":"Adams","countryCode":"US","stateCode":"NY","latitude":"43.80923000","longitude":"-76.02409000"},{"name":"Adams","countryCode":"US","stateCode":"WI","latitude":"43.95608000","longitude":"-89.81818000"},{"name":"Adams Center","countryCode":"US","stateCode":"NY","latitude":"43.86006000","longitude":"-76.00548000"},{"name":"Adams County","countryCode":"US","stateCode":"CO","latitude":"39.87363000","longitude":"-104.33791000"},{"name":"Adams County","countryCode":"US","stateCode":"IA","latitude":"41.02898000","longitude":"-94.69918000"},{"name":"Adams County","countryCode":"US","stateCode":"ID","latitude":"44.88965000","longitude":"-116.45387000"},{"name":"Adams County","countryCode":"US","stateCode":"IL","latitude":"39.98789000","longitude":"-91.18849000"},{"name":"Adams County","countryCode":"US","stateCode":"IN","latitude":"40.74566000","longitude":"-84.93665000"},{"name":"Adams County","countryCode":"US","stateCode":"MS","latitude":"31.48294000","longitude":"-91.35350000"},{"name":"Adams County","countryCode":"US","stateCode":"ND","latitude":"46.09684000","longitude":"-102.52853000"},{"name":"Adams County","countryCode":"US","stateCode":"NE","latitude":"40.52447000","longitude":"-98.50121000"},{"name":"Adams County","countryCode":"US","stateCode":"OH","latitude":"38.84551000","longitude":"-83.47215000"},{"name":"Adams County","countryCode":"US","stateCode":"PA","latitude":"39.87145000","longitude":"-77.21789000"},{"name":"Adams County","countryCode":"US","stateCode":"WA","latitude":"46.98338000","longitude":"-118.56050000"},{"name":"Adams County","countryCode":"US","stateCode":"WI","latitude":"43.96963000","longitude":"-89.77064000"},{"name":"Adams Morgan","countryCode":"US","stateCode":"DC","latitude":"38.92150000","longitude":"-77.04220000"},{"name":"Adamstown","countryCode":"US","stateCode":"MD","latitude":"39.31094000","longitude":"-77.47471000"},{"name":"Adamstown","countryCode":"US","stateCode":"PA","latitude":"40.24120000","longitude":"-76.05633000"},{"name":"Adamsville","countryCode":"US","stateCode":"AL","latitude":"33.60094000","longitude":"-86.95611000"},{"name":"Adamsville","countryCode":"US","stateCode":"TN","latitude":"35.23591000","longitude":"-88.39060000"},{"name":"Addis","countryCode":"US","stateCode":"LA","latitude":"30.35380000","longitude":"-91.26539000"},{"name":"Addison","countryCode":"US","stateCode":"IL","latitude":"41.93170000","longitude":"-87.98896000"},{"name":"Addison","countryCode":"US","stateCode":"ME","latitude":"44.61841000","longitude":"-67.74416000"},{"name":"Addison","countryCode":"US","stateCode":"NY","latitude":"42.10285000","longitude":"-77.23359000"},{"name":"Addison","countryCode":"US","stateCode":"TX","latitude":"32.96179000","longitude":"-96.82917000"},{"name":"Addison","countryCode":"US","stateCode":"VT","latitude":"44.08867000","longitude":"-73.30262000"},{"name":"Addison","countryCode":"US","stateCode":"WI","latitude":"43.42278000","longitude":"-88.37454000"},{"name":"Addison County","countryCode":"US","stateCode":"VT","latitude":"44.03091000","longitude":"-73.14094000"},{"name":"Adel","countryCode":"US","stateCode":"GA","latitude":"31.13727000","longitude":"-83.42408000"},{"name":"Adel","countryCode":"US","stateCode":"IA","latitude":"41.61443000","longitude":"-94.01745000"},{"name":"Adelanto","countryCode":"US","stateCode":"CA","latitude":"34.58277000","longitude":"-117.40922000"},{"name":"Adelphi","countryCode":"US","stateCode":"MD","latitude":"39.00317000","longitude":"-76.97192000"},{"name":"Adjuntas","countryCode":"US","stateCode":"PR","latitude":"18.16277778","longitude":"-66.72222222"},{"name":"Adrian","countryCode":"US","stateCode":"MI","latitude":"41.89755000","longitude":"-84.03717000"},{"name":"Adrian","countryCode":"US","stateCode":"MN","latitude":"43.63497000","longitude":"-95.93280000"},{"name":"Adrian","countryCode":"US","stateCode":"MO","latitude":"38.39752000","longitude":"-94.35162000"},{"name":"Advance","countryCode":"US","stateCode":"MO","latitude":"37.10455000","longitude":"-89.90953000"},{"name":"Advance","countryCode":"US","stateCode":"NC","latitude":"35.94125000","longitude":"-80.40922000"},{"name":"Adwolf","countryCode":"US","stateCode":"VA","latitude":"36.78928000","longitude":"-81.58206000"},{"name":"Affton","countryCode":"US","stateCode":"MO","latitude":"38.55061000","longitude":"-90.33317000"},{"name":"Afton","countryCode":"US","stateCode":"MN","latitude":"44.90275000","longitude":"-92.78354000"},{"name":"Afton","countryCode":"US","stateCode":"OK","latitude":"36.69369000"},{"_note":"Response truncated for documentation purposes"}]
curl --location --request GET 'https://zylalabs.com/api/9946/country+data+extraction+api/18758/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.
States by country code - Endpoint Features
| Object | Description |
|---|---|
countrycode |
[Required] Enter a country code |
{"Example Response":"No response example available for now."}
curl --location --request GET 'https://zylalabs.com/api/9946/country+data+extraction+api/18762/states+by+country+code?countrycode=us' --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.
The GET Country Information endpoint returns economic, demographic, educational, and environmental statistics for a specified country. The GET Cities by Country endpoint provides a list of cities, including their names, coordinates, and associated codes. The GET States by Country Code endpoint returns similar information for states within a specified country.
For the GET Country Information endpoint, key fields include GDP, population, life expectancy, and CO₂ emissions. The GET Cities by Country and GET States by Country Code endpoints typically include city/state names, coordinates, and codes, allowing for easy identification and mapping.
The response data is structured in JSON format, with each endpoint returning an array of objects. For example, the GET Country Information endpoint provides a single object with various fields, while the city and state endpoints return arrays of objects, each representing a city or state with relevant attributes.
Users can customize their requests by specifying parameters such as country code for the GET Cities by Country and GET States by Country Code endpoints. The GET Country Information endpoint may allow parameters like specific indicators to filter the data returned, enhancing the relevance of the response.
The Country Data Extraction API aggregates data from reputable global databases, including government statistics, international organizations, and research institutions. This ensures a comprehensive and reliable dataset for users.
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, enhancing user insights into global trends.
Users can leverage the structured JSON response to extract specific fields for analysis or visualization. For instance, they can create charts comparing GDP across countries or analyze population growth trends over time, facilitating informed decision-making.
Data accuracy is maintained through regular updates and validation against multiple sources. The API employs quality checks to ensure consistency and reliability, allowing users to trust the information provided for their projects.
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:
583ms
Service Level:
100%
Response Time:
373ms
Service Level:
100%
Response Time:
709ms
Service Level:
100%
Response Time:
597ms
Service Level:
100%
Response Time:
245ms
Service Level:
100%
Response Time:
500ms
Service Level:
100%
Response Time:
459ms
Service Level:
100%
Response Time:
756ms
Service Level:
100%
Response Time:
353ms
Service Level:
100%
Response Time:
300ms
Service Level:
100%
Response Time:
2,287ms
Service Level:
100%
Response Time:
760ms
Service Level:
100%
Response Time:
3,174ms
Service Level:
100%
Response Time:
500ms
Service Level:
75%
Response Time:
1,498ms
Service Level:
100%
Response Time:
1,831ms
Service Level:
100%
Response Time:
10,154ms
Service Level:
100%
Response Time:
2,892ms
Service Level:
100%
Response Time:
2,099ms