The Worldwide Alcohol Statistics API is a RESTful API designed to serve alcohol consumption statistics by country. Users can: Retrieve the list of all countries in the dataset. Query overall alcohol consumption for a specific country. Get female-specific alcohol consumption statistics for a given country. Get male-specific alcohol consumption statistics for a given country. The API is built to support flexible queries, enabling developers, researchers, and policymakers to access structured, reliable, and easily filterable consumption data.
[
{
"countries": [
"Russia",
"Greece",
"Lesotho",
"Madagascar",
"Djibouti",
"Grenada",
"Poland",
"Belarus",
"Bulgaria",
"Australia",
"Tuvalu",
"Burkina Faso",
"Romania",
"United Kingdom",
"Malawi",
"Lebanon",
"Ivory Coast",
"United Arab Emirates",
"Fiji",
"Slovenia",
"Rwanda",
"Solomon Islands",
"Morocco",
"Georgia",
"Sierra Leone",
"Switzerland",
"Nicaragua",
"Indonesia",
"Cape Verde",
"Costa Rica",
"Andorra",
"Canada",
"Sweden",
"DR Congo",
"Saint Vincent and the Grenadines",
"Uganda",
"Spain",
"Gambia",
"North Korea",
"Portugal",
"Benin",
"New Zealand",
"Barbados",
"Germany",
"Argentina",
"Vietnam",
"Thailand",
"Iran",
"Seychelles",
"Republic of the Congo",
"Brazil",
"Montenegro",
"Cyprus",
"Chile",
"Norway",
"Guinea-Bissau",
"Botswana",
"South Korea",
"Mauritius",
"Japan",
"Micronesia",
"Finland",
"Cameroon",
"Antigua and Barbuda",
"Eswatini",
"El Salvador",
"Peru",
"Kazakhstan",
"Denmark",
"Cook Islands",
"Trinidad and Tobago",
"Cambodia",
"Suriname",
"Bosnia and Herzegovina",
"Guinea",
"Philippines",
"Paraguay",
"Samoa",
"Uruguay",
"Czech Republic",
"Mauritania",
"Nauru",
"Hungary",
"Egypt",
"Moldova",
"Saint Lucia",
"Panama",
"China",
"Kiribati",
"Albania",
"North Macedonia",
"Libya",
"Armenia",
"Guatemala",
"Colombia",
"Burundi",
"Angola",
"Iraq",
"Dominica",
"Niue",
"Honduras",
"Niger",
"Belize",
"Bahamas",
"Latvia",
"Zambia",
"Bolivia",
"Gabon",
"Croatia",
"Estonia",
"Iceland",
"Jordan",
"India",
"France",
"Sri Lanka",
"Chad",
"Saint Kitts and Nevis",
"Lithuania",
"Cuba",
"Jamaica",
"Nepal",
"Zimbabwe",
"Turkey",
"Equatorial Guinea",
"Azerbaijan",
"Kuwait",
"Sao Tome and Principe",
"Uzbekistan",
"Ukraine",
"Vanuatu",
"Mongolia",
"Venezuela",
"Dominican Republic",
"Myanmar",
"Slovakia",
"Central African Republic",
"Tunisia",
"Guyana",
"Malta",
"Somalia",
"Togo",
"Turkmenistan",
"Liberia",
"Bahrain",
"Papua New Guinea",
"Ethiopia",
"Netherlands",
"Qatar",
"Malaysia",
"Tanzania",
"Mali",
"Kyrgyzstan",
"Ghana",
"Algeria",
"Haiti",
"Israel",
"Oman",
"Brunei",
"Mozambique",
"Ecuador",
"Serbia",
"Tonga",
"Singapore",
"Italy",
"Kenya",
"Comoros",
"Bhutan",
"Timor-Leste",
"Nigeria",
"Eritrea",
"Bangladesh",
"Syria",
"Pakistan",
"Ireland",
"Yemen",
"Sudan",
"Luxembourg"
]
}
]
curl --location --request POST 'https://zylalabs.com/api/9376/worldwide+alcohol+statistics+api/16977/get+list+of+all+countries+available' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{}'
[
{
"country": "Russia",
"total_consumption": "16.8"
}
]
curl --location --request POST 'https://zylalabs.com/api/9376/worldwide+alcohol+statistics+api/16979/get+total+alcohol+consumption+for+country' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"country":"Required"}'
[
{
"country": "Mozambique",
"female_consumption": "0.12"
}
]
curl --location --request POST 'https://zylalabs.com/api/9376/worldwide+alcohol+statistics+api/16983/get+female+alcohol+consumption+for+country' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"country":"Required"}'
[
{
"country": "France",
"male_consumption": 5.2
}
]
curl --location --request POST 'https://zylalabs.com/api/9376/worldwide+alcohol+statistics+api/16987/get+male+alcohol+consumption+for+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 overall alcohol consumption statistics, as well as male-specific and female-specific consumption statistics for each country.
You can query the API by specifying the country name to retrieve overall alcohol consumption statistics, or you can specify gender to get male or female-specific statistics.
The API offers structured, reliable, and easily filterable alcohol consumption data, making it a valuable resource for researchers, policymakers, and analysts focused on public health and alcohol-related issues.
The API returns data in a structured format, typically JSON, which includes specific fields for country names, overall consumption, and gender-specific statistics.
The API can be used for research studies, public health initiatives, policy-making, and analytics to understand alcohol consumption trends and their implications on health and society.
Each endpoint returns specific alcohol consumption statistics. The "get list of all countries" endpoint returns a list of country names. The "get total alcohol consumption" endpoint provides overall consumption in litres per capita. The "get female alcohol consumption" and "get male alcohol consumption" endpoints return gender-specific consumption statistics for the specified country.
The key fields in the response data include "country" for the country's name, "total_consumption" for overall consumption, "female_consumption" for female-specific data, and "male_consumption" for male-specific data. Each field provides essential insights into alcohol consumption patterns.
The response data is organized in a JSON format, structured as an array of objects. Each object contains relevant fields such as "country" and consumption statistics, making it easy to parse and utilize in applications or analyses.
The primary parameter used with the consumption endpoints is the "country" name, which must be specified to retrieve data. Users can obtain valid country names from the "get list of all countries" endpoint to ensure accurate queries.
The "get list of all countries" endpoint provides a comprehensive list of countries. The "get total alcohol consumption" endpoint offers overall consumption data, while the "get female alcohol consumption" and "get male alcohol consumption" endpoints provide gender-specific statistics for the specified country.
Users can analyze the returned data to identify trends in alcohol consumption by country and gender. For example, researchers can compare male and female consumption rates or assess overall consumption levels to inform public health initiatives and policy decisions.
The Worldwide Alcohol Statistics API aggregates data from reputable global health organizations and research studies. This ensures that the statistics provided are based on reliable sources, enhancing the credibility of the information for users.
Typical use cases include academic research on alcohol consumption trends, public health assessments, policy formulation regarding alcohol regulations, and analytics for understanding the social impacts of alcohol use across different demographics.
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:
210ms
Service Level:
100%
Response Time:
237ms
Service Level:
100%
Response Time:
152ms
Service Level:
100%
Response Time:
152ms
Service Level:
100%
Response Time:
122ms
Service Level:
100%
Response Time:
812ms
Service Level:
100%
Response Time:
364ms
Service Level:
100%
Response Time:
283ms
Service Level:
100%
Response Time:
261ms
Service Level:
100%
Response Time:
264ms