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/10201/countries+size+fetch+api/19590/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/10201/countries+size+fetch+api/19594/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/10201/countries+size+fetch+api/19599/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/10201/countries+size+fetch+api/19605/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 geographic analysis.
The response includes the country name, land area in square kilometers, and the percentage of the world's landmass that the country occupies. This data helps users understand both the size and significance of a country's land area.
The response is structured as a list of JSON objects, each containing the country name and its rank based on total area. This format allows for straightforward parsing and integration into applications that require ranking information.
Each endpoint requires the country name as a parameter to retrieve specific data. Users can obtain the list of countries from the "get countries with data available" endpoint to ensure valid input.
Users can specify different countries as parameters in the relevant endpoints to retrieve tailored data. For example, by providing "Canada" to the "get total area by country" endpoint, users can obtain Canada's specific area details.
This endpoint provides a comprehensive list of countries that have data available in the API. It serves as a foundational resource for users to identify which countries they can query for further details.
The API sources its data from reputable geographic databases, ensuring high accuracy. Regular updates and quality checks are implemented to maintain the integrity of the information provided.
Typical use cases include educational applications, geographic information systems (GIS), travel planning tools, and data visualization projects that require accurate country size and ranking information for analysis or display.
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:
10,743ms
Service Level:
100%
Response Time:
585ms
Service Level:
100%
Response Time:
583ms
Service Level:
100%
Response Time:
56ms
Service Level:
100%
Response Time:
60ms
Service Level:
100%
Response Time:
10,182ms
Service Level:
100%
Response Time:
597ms
Service Level:
100%
Response Time:
59ms
Service Level:
100%
Response Time:
467ms
Service Level:
100%
Response Time:
10,415ms
Service Level:
97%
Response Time:
4,309ms
Service Level:
92%
Response Time:
5,600ms
Service Level:
100%
Response Time:
6,661ms
Service Level:
100%
Response Time:
6,897ms
Service Level:
91%
Response Time:
4,632ms
Service Level:
100%
Response Time:
3,352ms
Service Level:
100%
Response Time:
3,927ms
Service Level:
100%
Response Time:
7,051ms
Service Level:
100%
Response Time:
2,901ms
Service Level:
100%
Response Time:
456ms