[{"gdp": 414179.0, "sex_ratio": 223.8, "surface_area": 83600.0, "life_expectancy_male": 77.1, "unemployment": 2.4, "imports": 244712.0, "homicide_rate": 0.5, "currency": {"code": "AED", "name": "Uae Dirham"}, "iso2": "AE", "employment_services": 64.4, "employment_industry": 34.2, "urban_population_growth": 2.4, "secondary_school_enrollment_female": 100.4, "employment_agriculture": 1.4, "capital": "Abu Dhabi", "co2_emissions": 196.5, "forested_area": 4.5, "tourists": 21286.0, "exports": 412260.0, "life_expectancy_female": 79.1, "primary_school_enrollment_female": 107.3, "infant_mortality": 5.5, "gdp_growth": 1.7, "threatened_species": 69.0, "population": 9890.0, "urban_population": 86.8, "secondary_school_enrollment_male": 109.3, "name": "United Arab Emirates", "pop_growth": 1.3, "region": "Western Asia", "pop_density": 118.3, "internet_users": 98.4, "gdp_per_capita": 43005.0, "fertility": 1.4, "refugees": 8.7, "primary_school_enrollment_male": 109.4, "telephone_country_codes": ["971"]}]
curl --location --request GET 'https://pr213-testing.zylalabs.com/api/9945/country+data+fetcher+api/18755/country+information?name=united states' --header 'Authorization: Bearer YOUR_API_KEY'
[{"name":"Abu Dhabi Island and Internal Islands City","countryCode":"AE","stateCode":"AZ","latitude":"24.45110000","longitude":"54.39690000"},{"name":"Abu Dhabi Municipality","countryCode":"AE","stateCode":"AZ","latitude":"24.41361000","longitude":"54.43295000"},{"name":"Adh Dhayd","countryCode":"AE","stateCode":"SH","latitude":"25.28812000","longitude":"55.88157000"},{"name":"Ajman","countryCode":"AE","stateCode":"AJ","latitude":"25.40328000","longitude":"55.52341000"},{"name":"Ajman City","countryCode":"AE","stateCode":"AJ","latitude":"25.40177000","longitude":"55.47878000"},{"name":"Al Ain City","countryCode":"AE","stateCode":"AZ","latitude":"24.19167000","longitude":"55.76056000"},{"name":"Al Ain Municipality","countryCode":"AE","stateCode":"AZ","latitude":"24.15223000","longitude":"55.82040000"},{"name":"Al Batayih","countryCode":"AE","stateCode":"SH","latitude":"25.22317000","longitude":"55.74272000"},{"name":"Al Dhafra","countryCode":"AE","stateCode":"AZ","latitude":"23.65745000","longitude":"53.72225000"},{"name":"Al Fujairah City","countryCode":"AE","stateCode":"FU","latitude":"25.11641000","longitude":"56.34141000"},{"name":"Al Fujairah Municipality","countryCode":"AE","stateCode":"FU","latitude":"25.13557000","longitude":"56.33279000"},{"name":"Al Hamriyah","countryCode":"AE","stateCode":"SH","latitude":"25.46121000","longitude":"55.54813000"},{"name":"Al Madam","countryCode":"AE","stateCode":"SH","latitude":"24.95536000","longitude":"55.76820000"},{"name":"Al Shamkhah City","countryCode":"AE","stateCode":"AZ","latitude":"24.39268000","longitude":"54.70779000"},{"name":"Ar Ruways","countryCode":"AE","stateCode":"AZ","latitude":"24.11028000","longitude":"52.73056000"},{"name":"Bani Yas City","countryCode":"AE","stateCode":"AZ","latitude":"24.30978000","longitude":"54.62944000"},{"name":"Dhaid","countryCode":"AE","stateCode":"SH","latitude":"25.26951000","longitude":"55.92024000"},{"name":"Dibba Al Fujairah Municipality","countryCode":"AE","stateCode":"FU","latitude":"25.58580000","longitude":"56.24792000"},{"name":"Dibba Al Hesn","countryCode":"AE","stateCode":"SH","latitude":"25.61593000","longitude":"56.26899000"},{"name":"Dibba Al-Fujairah","countryCode":"AE","stateCode":"FU","latitude":"25.59246000","longitude":"56.26176000"},{"name":"Dibba Al-Hisn","countryCode":"AE","stateCode":"FU","latitude":"25.61955000","longitude":"56.27291000"},{"name":"Dubai","countryCode":"AE","stateCode":"DU","latitude":"25.06570000","longitude":"55.17128000"},{"name":"Kalba","countryCode":"AE","stateCode":"SH","latitude":"24.99816000","longitude":"56.27207000"},{"name":"Khalifah A City","countryCode":"AE","stateCode":"AZ","latitude":"24.42588000","longitude":"54.60500000"},{"name":"Khawr Fakkān","countryCode":"AE","stateCode":"SH","latitude":"25.33132000","longitude":"56.34199000"},{"name":"Khor Fakkan","countryCode":"AE","stateCode":"SH","latitude":"25.33966000","longitude":"56.30280000"},{"name":"Manama","countryCode":"AE","stateCode":"AJ","latitude":"25.32568000","longitude":"56.00259000"},{"name":"Masfout","countryCode":"AE","stateCode":"AJ","latitude":"24.83982000","longitude":"56.05158000"},{"name":"Milehah","countryCode":"AE","stateCode":"SH","latitude":"25.10097000","longitude":"55.91282000"},{"name":"Murbaḩ","countryCode":"AE","stateCode":"SH","latitude":"25.27623000","longitude":"56.36256000"},{"name":"Musaffah","countryCode":"AE","stateCode":"AZ","latitude":"24.35893000","longitude":"54.48267000"},{"name":"Muzayri‘","countryCode":"AE","stateCode":"AZ","latitude":"23.14355000","longitude":"53.78810000"},{"name":"Ras Al Khaimah","countryCode":"AE","stateCode":"RK","latitude":"25.46116000","longitude":"56.04058000"},{"name":"Ras Al Khaimah City","countryCode":"AE","stateCode":"RK","latitude":"25.78953000","longitude":"55.94320000"},{"name":"Reef Al Fujairah City","countryCode":"AE","stateCode":"FU","latitude":"25.14479000","longitude":"56.24764000"},{"name":"Sharjah","countryCode":"AE","stateCode":"SH","latitude":"25.33737000","longitude":"55.41206000"},{"name":"Umm AL Quwain","countryCode":"AE","stateCode":"UQ","latitude":"25.49326000","longitude":"55.73520000"},{"name":"Umm Al Quwain City","countryCode":"AE","stateCode":"UQ","latitude":"25.56473000","longitude":"55.55517000"},{"name":"Zayed City","countryCode":"AE","stateCode":"AZ","latitude":"23.65416000","longitude":"53.70522000"}]
curl --location --request GET 'https://pr213-testing.zylalabs.com/api/9945/country+data+fetcher+api/18760/cities+by+country?countrycode=fr' --header 'Authorization: Bearer YOUR_API_KEY'
[{"name":"Andijan Region","isoCode":"AN","countryCode":"UZ","latitude":"40.76859410","longitude":"72.23637900"},{"name":"Bukhara Region","isoCode":"BU","countryCode":"UZ","latitude":"40.25041620","longitude":"63.20321510"},{"name":"Fergana Region","isoCode":"FA","countryCode":"UZ","latitude":"40.45680810","longitude":"71.28742090"},{"name":"Jizzakh Region","isoCode":"JI","countryCode":"UZ","latitude":"40.47064150","longitude":"67.57085360"},{"name":"Karakalpakstan","isoCode":"QR","countryCode":"UZ","latitude":"43.80413340","longitude":"59.44579880"},{"name":"Namangan Region","isoCode":"NG","countryCode":"UZ","latitude":"41.05100370","longitude":"71.09731700"},{"name":"Navoiy Region","isoCode":"NW","countryCode":"UZ","latitude":"42.69885750","longitude":"64.63376850"},{"name":"Qashqadaryo Region","isoCode":"QA","countryCode":"UZ","latitude":"38.89862310","longitude":"66.04635340"},{"name":"Samarqand Region","isoCode":"SA","countryCode":"UZ","latitude":"39.62701200","longitude":"66.97497310"},{"name":"Sirdaryo Region","isoCode":"SI","countryCode":"UZ","latitude":"40.38638080","longitude":"68.71549750"},{"name":"Surxondaryo Region","isoCode":"SU","countryCode":"UZ","latitude":"37.94090050","longitude":"67.57085360"},{"name":"Tashkent","isoCode":"TK","countryCode":"UZ","latitude":"41.29949580","longitude":"69.24007340"},{"name":"Tashkent Region","isoCode":"TO","countryCode":"UZ","latitude":"41.22132340","longitude":"69.85974060"},{"name":"Xorazm Region","isoCode":"XO","countryCode":"UZ","latitude":"41.35653360","longitude":"60.85666860"}]
curl --location --request GET 'https://pr213-testing.zylalabs.com/api/9945/country+data+fetcher+api/18764/states+by+country+code?countrycode=us' --header 'Authorization: Bearer YOUR_API_KEY'
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 Fetcher API simply include your bearer token in the Authorization header.
| 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.
(Save 2 months with annual billing 🎉)
Trusted by leading companies
The Country Data Fetcher 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.
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 state codes. The "GET States by Country Code" endpoint returns similar information for states within a specified country.
For "GET Country Information," key fields include GDP, population, life expectancy, and CO₂ emissions. The "GET Cities by Country" and "GET States by Country Code" endpoints return fields such as city/state name, coordinates, and associated codes.
The response data is structured in JSON format, with each endpoint returning an object containing relevant fields. For example, the "GET Country Information" returns a single object with various statistics, while the city and state endpoints return arrays of objects, each representing a city or state.
Users can specify parameters such as country code for the "GET Country Information," "GET Cities by Country," and "GET States by Country Code" endpoints. This allows for targeted data retrieval based on specific countries or regions.
The "GET Country Information" endpoint provides comprehensive statistics on economic performance, demographics, education, and environmental factors. The city and state endpoints offer geographical data, including names and coordinates of cities and states within a specified country.
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 assessments, and environmental impact evaluations. Researchers, developers, and policymakers can leverage this data for informed decision-making and reporting.
Users can analyze the structured data to identify trends, compare countries, or visualize statistics. For instance, comparing GDP and education enrollment rates can provide insights into a country's development status.
To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key 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.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
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. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
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.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund