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/10202/world+countries+areas+api/19589/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/10202/world+countries+areas+api/19595/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/10202/world+countries+areas+api/19600/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/10202/world+countries+areas+api/19603/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. This data is useful for understanding a country's geographical footprint relative to the global context.
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 a consistent and easy-to-parse structure.
Each endpoint requires the country name as a parameter to retrieve specific data. For instance, to get the total area, you must specify the country you want information about, which can be obtained from the "get countries with data available" endpoint.
If a request returns no data, users should check the country name for accuracy or ensure it is included in the dataset. The API provides informative error messages for invalid requests, guiding users to correct any issues.
The response includes the country name and its rank based on total area. This allows users to quickly identify a country's size ranking among others, facilitating comparisons and analyses of geographical data.
The API sources its data from reputable geographic databases, ensuring high accuracy. Regular updates and quality checks are implemented to maintain data integrity, providing reliable information for developers and applications.
This endpoint is useful for applications that require a comprehensive list of countries, such as educational tools, travel planning apps, or data visualization projects, enabling users to explore geographical data efficiently.
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:
448ms
Service Level:
100%
Response Time:
10,032ms
Service Level:
100%
Response Time:
59ms
Service Level:
100%
Response Time:
10,182ms
Service Level:
100%
Response Time:
3,420ms
Service Level:
100%
Response Time:
10,743ms
Service Level:
100%
Response Time:
597ms
Service Level:
100%
Response Time:
56ms
Service Level:
90%
Response Time:
636ms
Service Level:
100%
Response Time:
459ms
Service Level:
100%
Response Time:
0ms
Service Level:
100%
Response Time:
0ms
Service Level:
100%
Response Time:
0ms
Service Level:
100%
Response Time:
0ms
Service Level:
100%
Response Time:
0ms
Service Level:
100%
Response Time:
8,405ms
Service Level:
100%
Response Time:
22ms
Service Level:
100%
Response Time:
1,865ms
Service Level:
100%
Response Time:
97ms
Service Level:
100%
Response Time:
4,111ms