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/10199/world+countries+info+api/19586/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/10199/world+countries+info+api/19591/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/10199/world+countries+info+api/19596/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/10199/world+countries+info+api/19601/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.
Each endpoint returns specific data about countries. The "get countries with data available" endpoint lists all countries. The "get total area by country" endpoint provides the total area in km² for a specified country. The "get land area and world share by country" endpoint returns land area and the percentage of the world's landmass for a country. The "get size ranking by country" endpoint gives the ranking of a country based on its area.
The key fields vary by endpoint. For "get countries with data available," it returns a list of country names. The "get total area by country" endpoint includes "country" and "total_area_sq_km." The "get land area and world share by country" endpoint provides "country," "land_area," and "world_landmass_percentage." The "get size ranking by country" endpoint returns "country" and "rank."
The response data is organized in JSON format. Each endpoint returns either a list of countries or an array of objects containing specific data points for each country. For example, the total area endpoint returns an array with objects that include the country name and its total area, ensuring a consistent structure for easy parsing.
Each endpoint requires a specific parameter. For the "get total area by country," "get land area and world share by country," and "get size ranking by country" endpoints, users must specify the country name as a parameter. This allows users to retrieve targeted information for a specific country from the dataset.
Users can utilize the returned data by parsing the JSON response to extract relevant information. For instance, developers can display a country's total area or ranking in their applications. The structured format allows for easy integration into data visualization tools, educational platforms, or geographic analysis applications.
Typical use cases include educational applications that teach geography, travel apps that provide country statistics, and data analysis tools that visualize land area comparisons. Researchers may also use the data for studies on land distribution and environmental impact assessments.
The API sources its data from reputable datasets, ensuring high accuracy. Regular updates and quality checks are implemented to verify the consistency and reliability of the information provided, allowing users to trust the data for their applications.
Each endpoint provides distinct information: the "get countries with data available" endpoint lists all countries; the "get total area by country" endpoint gives total area in km²; the "get land area and world share by country" endpoint offers land area and world percentage; and the "get size ranking by country" endpoint provides the ranking based on area.
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.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
Service Level:
100%
Response Time:
448ms
Service Level:
100%
Response Time:
3,420ms
Service Level:
100%
Response Time:
597ms
Service Level:
100%
Response Time:
10,415ms
Service Level:
100%
Response Time:
10,182ms
Service Level:
100%
Response Time:
601ms
Service Level:
100%
Response Time:
381ms
Service Level:
100%
Response Time:
1,069ms
Service Level:
100%
Response Time:
500ms
Service Level:
100%
Response Time:
1,045ms
Service Level:
100%
Response Time:
56ms
Service Level:
100%
Response Time:
65ms
Service Level:
100%
Response Time:
7,456ms
Service Level:
100%
Response Time:
52ms
Service Level:
100%
Response Time:
18,540ms
Service Level:
100%
Response Time:
1,718ms
Service Level:
100%
Response Time:
53ms
Service Level:
100%
Response Time:
17,187ms
Service Level:
100%
Response Time:
53ms
Service Level:
100%
Response Time:
17,126ms