This API exposes data extracted from a reputable source, providing a structured dataset of countries ranked by their total area. Developers can retrieve information on each country, including its rank, name, total area (in square kilometers and square miles), land area, water area, and the percentage of the world's landmass it occupies. The API returns this data in a JSON format, specifically as a list of JSON objects, where each object represents a country and contains key-value pairs for each data point. Each country's data is meticulously structured, ensuring consistency and ease of parsing. The API employs a simple and intuitive RESTful architecture with a single endpoint to access this data. Developers can use standard HTTP GET requests to retrieve the entire dataset. Error handling is implemented to provide informative messages for invalid requests. The data schema is consistent and well-documented, enabling effortless integration into diverse applications. The API is designed for efficient data retrieval and is optimized to handle a high volume of requests. The primary endpoint allows developers to programmatically access and utilize this geographically focused information in a convenient and easily integrable way.
{
"countries": [
"Russia",
"Canada",
"China",
"United States",
"Brazil",
"Australia",
"India",
"Argentina",
"Kazakhstan",
"Algeria",
"DR Congo",
"Saudi Arabia",
"Mexico",
"Indonesia",
"Libya",
"Iran",
"Mongolia",
"Peru",
"Chad",
"Niger",
"Mali",
"South Africa",
"Colombia",
"Ethiopia",
"Bolivia",
"Egypt",
"Tanzania",
"Nigeria",
"Venezuela",
"Pakistan",
"Mozambique",
"Namibia",
"Turkey",
"Chile",
"Myanmar",
"Afghanistan",
"Gambia",
"Central African Republic",
"South Sudan",
"Ukraine",
"Botswana",
"Kenya",
"Angola",
"France",
"Sudan",
"Vietnam",
"Guinea",
"Germany",
"Philippines",
"Congo",
"Finland",
"Poland",
"Malaysia",
"Cote d'Ivoire",
"Spain",
"Sweden",
"Uzbekistan",
"Madagascar",
"New Zealand",
"Papua New Guinea",
"Western Sahara",
"Gabon",
"United Kingdom",
"Oman",
"Ecuador",
"Burkina Faso",
"Laos",
"Bulgaria",
"Kyrgyzstan",
"Senegal",
"Cambodia",
"Uruguay",
"Honduras",
"Benin",
"Bangladesh",
"Nepal",
"Tajikistan",
"Nicaragua",
"North Korea",
"Malawi",
"Eritrea",
"Armenia",
"Liberia",
"Lithuania",
"Cuba",
"Guatemala",
"South Korea",
"Hungary",
"Portugal",
"Serbia",
"Austria",
"Dominican Republic",
"United Arab Emirates",
"French Guiana",
"Cambodia",
"Panama",
"Serbia",
"Thailand",
"Georgia",
"Sri Lanka",
"Latvia",
"Togo",
"Croatia",
"Bosnia and Herzegovina",
"Costa Rica",
"Dominica",
"Equatorial Guinea",
"Denmark",
"Solomon Islands",
"Netherlands Antilles",
"Bahrain",
"Taiwan",
"Tonga",
"Guinea-Bissau",
"Belize",
"Mauritius",
"Comoros",
"Grenada",
"Mozambique",
"Albania",
"Equatorial Guinea",
"Burundi",
"Haiti",
"Republic of North Macedonia",
"Djibouti",
"El Salvador",
"Jamaica",
"Samoa",
"Montenegro",
"Palestine",
"Palau",
"Qatar",
"Gambia",
"Lebanon",
"Cyprus",
"Puerto Rico",
"State of Palestine",
"Brunei",
"Trinidad and Tobago",
"Swaziland",
"Czech Republic",
"Serbia",
"Luxembourg",
"Mauritius",
"Maldives",
"Comoros",
"Guyana",
"Sao Tome and Principe",
"Macao",
"Bahrain",
"Djibouti",
"Slovenia",
"Tonga",
"Singapore",
"Micronesia",
"Saint Lucia",
"East Timor",
"Andorra",
"Armenia",
"Northern Mariana Islands",
"Palau",
"Seychelles",
"Curacao",
"Antigua and Barbuda",
"Barbados",
"Saint Vincent and the Grenadines",
"Guyana",
"Mayotte",
"United States",
"Virgin Islands",
"Greenland",
"Northern Mariana Islands",
"Maldives",
"Cayman Islands",
"Guam",
"Saint Kitts and Nevis",
"Mendoza",
"Saint Pierre and Miquelon",
"Marshall Islands",
"Brunei",
"Liechtenstein",
"British Virgin Islands",
"Republic of Palau",
"Montserrat",
"Anguilla",
"Bermuda",
"Gorno-Badakhshan",
"China, Macao SAR",
"San Marino",
"Tuvalu",
"Maldives",
"Saint Barthelemy",
"Tel Aviv",
"Micronesia",
"Holy See"
]
}
curl --location --request POST 'https://zylalabs.com/api/10203/countries+size+data+extraction+api/19588/get+countries+with+data+available' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{}'
[
{
"country": "Argentina",
"total_area_sq_km": 2736690
}
]
curl --location --request POST 'https://zylalabs.com/api/10203/countries+size+data+extraction+api/19593/get+total+area+by+country' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"country":"Required"}'
[
{
"country": "Russia",
"land_area": 16376870,
"world_landmass_percentage": 11
}
]
curl --location --request POST 'https://zylalabs.com/api/10203/countries+size+data+extraction+api/19597/get+land+area+and+world+share+by+country' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"country":"Required"}'
[
{
"country": "Spain",
"rank": 52
}
]
curl --location --request POST 'https://zylalabs.com/api/10203/countries+size+data+extraction+api/19602/get+size+ranking+by+country' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"country":"Required"}'
| 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 API provides a comprehensive dataset of countries ranked by their total area, including details such as rank, name, total area in square kilometers and square miles, land area, water area, and the percentage of the world's landmass each country occupies.
The API returns data in a structured JSON format, specifically as a list of JSON objects, where each object represents a country with key-value pairs for each data point.
Developers can use this API to create applications that require geographical information, such as educational tools, travel apps, data visualization projects, or any application that needs to display or analyze country sizes and rankings.
The API's output includes fields such as rank, country name, total area (in square kilometers and square miles), land area, water area, and the percentage of the world's landmass occupied by each country.
Developers can easily integrate the API by making standard HTTP GET requests to the primary endpoint to retrieve the entire dataset, allowing for seamless incorporation of geographical data into various applications.
This endpoint returns the total area of a specified country in square kilometers. The response includes the country name and its total area, allowing users to easily access size information for geographical analysis.
This endpoint provides the land area in square kilometers and the percentage of the world's landmass occupied by a specified country. It helps users understand both the size of the land and its global significance.
Each endpoint requires the country name as a parameter in the request. You can obtain a list of available countries from the "get countries with data available" endpoint to ensure valid input.
The response is structured as a JSON array containing objects, each with the country name and its rank. This format allows for easy parsing and integration into applications that require ranking information.
The API sources its data from reputable references, ensuring accuracy. Regular updates and quality checks are implemented to maintain the reliability of the information provided.
Common use cases include creating educational tools, developing data visualization dashboards, and enhancing travel applications that require geographical size comparisons and rankings of countries.
If a country is not found, the API will return an informative error message. Users should ensure they are using valid country names obtained from the "get countries with data available" endpoint to avoid such issues.
The response includes a list of country names, allowing users to easily access and select countries for further data retrieval from other endpoints.
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
Service Level:
100%
Response Time:
10,032ms
Service Level:
100%
Response Time:
56ms
Service Level:
100%
Response Time:
1,025ms
Service Level:
100%
Response Time:
10,182ms
Service Level:
100%
Response Time:
600ms
Service Level:
100%
Response Time:
597ms
Service Level:
100%
Response Time:
583ms
Service Level:
100%
Response Time:
500ms
Service Level:
100%
Response Time:
1,045ms
Service Level:
100%
Response Time:
1,069ms