The Smoking Stats API is dedicated to the domain of public health, specifically focusing on smoking prevalence across various countries. It processes data fields such as total smoking rates, male and female smoking percentages, and country identifiers. The API utilizes standard data formats like JSON for data exchange, ensuring compatibility with web applications and data analytics tools. Key terminology includes 'total smokers', which refers to the overall percentage of the population that smokes, and 'gender-specific rates', which indicate the smoking prevalence among males and females separately. The API requires valid country identifiers as input parameters and returns structured data in a predefined schema that includes fields for country name, total smokers percentage, male smokers percentage, and female smokers percentage. This specialized output format allows for easy integration into health-related applications and research tools, providing valuable insights into smoking trends globally.
{"countries":["Nauru","Myanmar","Serbia","Bulgaria","Indonesia","Papua New Guinea","Croatia","Timor-Leste","Kiribati","Andorra","Jordan","Solomon Islands","Bosnia and Herzegovina","Cyprus","France","Lebanon","Slovakia","Latvia","Tuvalu","Georgia","Hungary","Montenegro","Tonga","Bangladesh","Greece","Moldova","Marshall Islands","Turkey","Lithuania","Czech Republic","Romania","Mongolia","Russia","Belarus","Spain","Chile","Fiji","Kyrgyzstan","Estonia","Belgium","Egypt","Portugal","Cook Islands","Nepal","Switzerland","Madagascar","Laos","Maldives","Armenia","Lesotho","Malta","United States","Ukraine","China","Argentina","Austria","Luxembourg","Italy","Poland","India","Vietnam","Afghanistan","Algeria","Malaysia","Kazakhstan","Samoa","Finland","Albania","Yemen","South Africa","Sweden","Mauritius","Kuwait","Netherlands","Germany","Seychelles","Tunisia","Slovenia","Iraq","Israel","Philippines","Uruguay","Azerbaijan","South Korea","Sri Lanka","Thailand","Japan","Ireland","Botswana","Bhutan","Pakistan","Palau","Brunei","Republic of the Congo","Singapore","Uzbekistan","Cuba","Comoros","North Korea","Cambodia","Saudi Arabia","Denmark","Bahrain","Mexico","Zambia","Rwanda","Saint Lucia","Namibia","Burkina Faso","Iran","United Kingdom","Qatar","Morocco","Norway","Australia","Honduras","Guatemala","DR Congo","Bahamas","Brazil","Bolivia","Sierra Leone","New Zealand","Canada","Zimbabwe","Cape Verde","Burundi","Kenya","Ecuador","Dominican Republic","Guyana","Gambia","Paraguay","Eswatini","Jamaica","Malawi","Oman","Mauritania","El Salvador","Belize","United Arab Emirates","Tanzania","Costa Rica","Sao Tome and Principe","Ivory Coast","Iceland","Haiti","Colombia","Niger","Liberia","Mali","Guinea-Bissau","Chad","Barbados","Uganda","Peru","Cameroon","Senegal","Togo","Benin","Ethiopia","Turkmenistan","Panama","Ghana","Nigeria"]}
curl --location --request POST 'https://zylalabs.com/api/6533/smoking+stats+api/9467/get+countries+with+smoking+data' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{}'
{"countries":"Chile","total_smoking_rate":27}
curl --location --request POST 'https://zylalabs.com/api/6533/smoking+stats+api/9468/get+smoking+rate+by+country' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"country":"Required"}'
{"country":"Chile","male_smoking_rate":"28.8%"}
curl --location --request POST 'https://zylalabs.com/api/6533/smoking+stats+api/9469/get+male+smoking+rate' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"country":"Required"}'
{"country":"Chile","female_smoking_rate":25.2}
curl --location --request POST 'https://zylalabs.com/api/6533/smoking+stats+api/9470/get+female+smoking+rate' --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 Smoking Stats API provides comprehensive statistics on smoking rates by country, including total smoking rates, male and female smoking percentages, and country identifiers for the year 2025.
To access gender-specific smoking rates, you need to input a valid country identifier into the API. The response will include structured data that specifies the percentage of male and female smokers for that country.
The Smoking Stats API uses standard data formats like JSON for data exchange, ensuring compatibility with web applications and data analytics tools.
Each endpoint returns specific smoking statistics for countries. The "get countries with smoking data" endpoint lists countries, while "get smoking rate by country" provides overall smoking rates. The "get male smoking rate" and "get female smoking rate" endpoints return gender-specific smoking percentages for the specified country.
The key fields in the response data include "countries" for the list of countries, "total_smoking_rate" for overall smoking rates, and "male_smoking_rate" and "female_smoking_rate" for gender-specific statistics, all structured in JSON format.
The response data is organized in a structured JSON format. Each endpoint returns a JSON object containing relevant fields, such as country names and smoking rates, making it easy to parse and integrate into applications.
The primary parameter required is a valid country identifier, which can be obtained from the "get countries with smoking data" endpoint. This parameter is necessary for the other endpoints to retrieve specific smoking rates.
The "get countries with smoking data" endpoint provides a list of countries. The "get smoking rate by country" endpoint returns the overall smoking rate, while the "get male smoking rate" and "get female smoking rate" endpoints provide gender-specific smoking rates for the specified country.
Typical use cases include public health research, policy-making, and educational purposes. Researchers can analyze smoking trends, compare rates between genders, and assess the impact of smoking on public health across different countries.
Users can utilize the returned data by integrating it into health-related applications, conducting comparative analyses, or generating reports on smoking trends. The structured format allows for easy manipulation and visualization of the data.
Data accuracy is maintained through rigorous data collection methods and validation processes. The API sources its data from reputable public health organizations and research studies, ensuring reliable statistics on smoking rates.
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:
3,123ms
Service Level:
100%
Response Time:
3,409ms
Service Level:
100%
Response Time:
52ms
Service Level:
100%
Response Time:
18,736ms
Service Level:
100%
Response Time:
5,204ms
Service Level:
100%
Response Time:
17,244ms
Service Level:
100%
Response Time:
3,174ms
Service Level:
100%
Response Time:
1,049ms
Service Level:
100%
Response Time:
55ms
Service Level:
100%
Response Time:
53ms
Service Level:
100%
Response Time:
4,907ms
Service Level:
100%
Response Time:
2,171ms
Service Level:
100%
Response Time:
4,146ms
Service Level:
100%
Response Time:
1,321ms
Service Level:
100%
Response Time:
694ms
Service Level:
100%
Response Time:
644ms
Service Level:
100%
Response Time:
20,003ms
Service Level:
100%
Response Time:
1,291ms
Service Level:
100%
Response Time:
144ms
Service Level:
100%
Response Time:
310ms