{"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"}'
After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Smoking Stats API simply include your bearer token in the Authorization header.
| 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.
(Save 2 months with annual billing 🎉)
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, 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