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/10200/country+size+information+api/19587/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/10200/country+size+information+api/19592/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/10200/country+size+information+api/19598/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/10200/country+size+information+api/19604/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 quickly 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 and global significance of a country's land area.
Each endpoint returns data in a JSON format. For example, the "get total area by country" endpoint returns an array of objects, each containing the country name and its total area, ensuring easy parsing and integration into applications.
Each endpoint requires the country name as a parameter to retrieve specific data. Users can obtain a list of available countries from the "get countries with data available" endpoint to ensure valid requests.
Users can parse the JSON response to extract relevant information, such as total area or land area. This data can be used in applications for mapping, educational purposes, or data visualization, enhancing user engagement with geographical insights.
The API sources its data from reputable sources, ensuring high accuracy. Regular updates and validation processes are implemented to maintain data integrity, providing users with reliable country size information.
Typical use cases include developing educational tools that teach geography, creating travel applications that compare country sizes, and building data visualization projects that analyze land distribution and rankings among countries.
Users should implement error handling to manage cases where a country may not be found or if the API returns an empty response. This can include displaying a user-friendly message or prompting for a valid country name.
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,032ms
Service Level:
100%
Response Time:
10,743ms
Service Level:
100%
Response Time:
10,182ms
Service Level:
100%
Response Time:
601ms
Service Level:
100%
Response Time:
3,420ms
Service Level:
100%
Response Time:
1,045ms
Service Level:
100%
Response Time:
10,415ms
Service Level:
100%
Response Time:
373ms
Service Level:
100%
Response Time:
1,069ms
Service Level:
100%
Response Time:
597ms
Service Level:
100%
Response Time:
670ms
Service Level:
100%
Response Time:
871ms
Service Level:
100%
Response Time:
576ms
Service Level:
100%
Response Time:
787ms
Service Level:
100%
Response Time:
975ms
Service Level:
100%
Response Time:
148ms
Service Level:
100%
Response Time:
4,918ms
Service Level:
100%
Response Time:
1,277ms
Service Level:
100%
Response Time:
1,168ms
Service Level:
100%
Response Time:
1,057ms