The US Smoking Stats API offers structured and filterable access to smoking rate statistics across all 50 U.S. states. Sourced from authoritative data provided by World Population Review, this API breaks down smoking prevalence by state, and other relevant indicators. It is designed to be modular, with endpoints representing each major column in the dataset, and query parameters allowing targeted access based on state or value ranges. The API supports use cases in public health, policy analysis, research, and education by making data accessible, reusable, and filterable without over-fetching.
{"states":["West Virginia","Kentucky","Louisiana","Tennessee","Arkansas","Mississippi","Indiana","Ohio","Alaska","Alabama","Missouri","Oklahoma","Michigan","South Dakota","South Carolina","Pennsylvania","Wyoming","North Dakota","Nevada","Georgia","New Mexico","Kansas","Maine","Montana","North Carolina","Iowa","Delaware","Virginia","Florida","Oregon","Wisconsin","Vermont","New Hampshire","Texas","Arizona","Illinois","Nebraska","Rhode Island","Colorado","Minnesota","District of Columbia","Idaho","New York","Maryland","Massachusetts","New Jersey","Washington","Hawaii","Connecticut","California","Utah"]}
curl --location --request POST 'https://zylalabs.com/api/6665/us+smoking+stats+api+/9817/get+all+usa+states' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{}'
{"state":"California","smoking_rate":"11.3%","current_smokers":"3,203,562"}
curl --location --request POST 'https://zylalabs.com/api/6665/us+smoking+stats+api+/9818/get+smoking+percentage+by+state' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"state":"Required"}'
{"state":"California","percentage_tried_to_quit":"58.9%","tried_to_quit":"1,870,042"}
curl --location --request POST 'https://zylalabs.com/api/6665/us+smoking+stats+api+/9819/get+percentage+tried+to+quit+by+state' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"state":"Required"}'
{"state":"California","never_smoked":18762085}
curl --location --request POST 'https://zylalabs.com/api/6665/us+smoking+stats+api+/9820/get+never+smoked+by+state' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"state":"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 US Smoking Stats API provides comprehensive demographic data and statistics related to smoking rates across all 50 U.S. states, including various socio-economic indicators.
You can access specific smoking rate statistics for a particular state by using the API's endpoints that represent each major column in the dataset, along with query parameters that allow you to filter by state.
Yes, the data is sourced from authoritative organizations, specifically the World Population Review, ensuring that the statistics provided are reliable and accurate.
The API can be used in various fields such as public health, policy analysis, research, and education, making data accessible and reusable for different applications.
Yes, the API supports modular access with query parameters that allow for targeted filtering based on state or value ranges, enabling users to retrieve specific data without over-fetching.
Each endpoint returns specific smoking-related statistics for U.S. states. For example, the "get smoking percentage by state" endpoint returns the smoking rate and number of current smokers, while the "get never smoked by state" endpoint provides the total number of individuals who have never smoked.
Key fields in the response data include "state," "smoking_rate," "current_smokers," "percentage_tried_to_quit," "tried_to_quit," and "never_smoked." These fields provide essential insights into smoking behaviors and demographics for each state.
The response data is structured in JSON format, with each endpoint returning an object containing relevant fields. For instance, the response for smoking rates includes the state name and corresponding statistics, making it easy to parse and utilize in applications.
Each endpoint provides distinct information: the "get all usa states" endpoint lists states, while the "get smoking percentage by state" endpoint details smoking rates. Other endpoints reveal data on attempts to quit smoking and the number of individuals who have never smoked.
Each endpoint requires a state parameter to specify which state's data to retrieve. Users can obtain the list of states from the "get all usa states" endpoint and then use that information to query smoking statistics for specific states.
Users can analyze the returned data to identify trends in smoking rates, assess public health needs, or inform policy decisions. For example, comparing smoking rates across states can highlight areas needing targeted interventions.
The data is sourced from the World Population Review, a reputable organization known for compiling demographic and health statistics. This ensures that the information provided through the API is reliable and credible.
Typical use cases include public health research, policy formulation, educational projects, and health awareness campaigns. Researchers and policymakers can leverage the data to understand smoking trends and develop effective strategies for smoking cessation.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
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:
0ms
Service Level:
100%
Response Time:
3,409ms
Service Level:
100%
Response Time:
3,948ms
Service Level:
100%
Response Time:
53ms
Service Level:
100%
Response Time:
3,174ms
Service Level:
100%
Response Time:
1,384ms
Service Level:
100%
Response Time:
67ms
Service Level:
100%
Response Time:
6,613ms
Service Level:
100%
Response Time:
2,083ms
Service Level:
100%
Response Time:
18,736ms
Service Level:
100%
Response Time:
18,666ms
Service Level:
100%
Response Time:
5,878ms
Service Level:
100%
Response Time:
20,003ms
Service Level:
100%
Response Time:
20,003ms
Service Level:
100%
Response Time:
20,003ms
Service Level:
100%
Response Time:
947ms
Service Level:
100%
Response Time:
1,151ms
Service Level:
100%
Response Time:
5,864ms
Service Level:
100%
Response Time:
710ms
Service Level:
100%
Response Time:
173ms