The US Cigarette Price API is designed to provide programmatic access to detailed information about the cost and taxation of cigarettes across all 50 U.S. states. The data includes cigarette prices, state taxes, the average cost per pack, and annual smoking expenses. The API is built with RESTful principles and supports individual endpoints for each dataset column. It offers a primary endpoint to retrieve the list of states, followed by focused endpoints that allow querying specific metrics using the state as a parameter. This API is ideal for researchers, health economists, and developers looking to integrate tobacco cost data into their applications or analysis tools.
{"states":["New York","Maryland","District of Columbia","Rhode Island","Connecticut","Massachusetts","Alaska","Hawaii","Washington","Minnesota","Illinois","Vermont","Pennsylvania","California","New Jersey","Oregon","Colorado","Wisconsin","Arizona","Maine","New Mexico","Utah","Michigan","Nevada","Delaware","Ohio","South Dakota","Arkansas","Texas","Kansas","New Hampshire","Oklahoma","Montana","Virginia","Florida","Louisiana","Iowa","West Virginia","Indiana","Idaho","Kentucky","Wyoming","Nebraska","South Carolina","Alabama","Georgia","Tennessee","Mississippi","North Dakota","Missouri","North Carolina"]}
curl --location --request POST 'https://zylalabs.com/api/6724/us+cigarette+price+api/10025/get+states+in+the+usa' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{}'
{"state":"New York","excise_tax_per_pack":"$5.35"}
curl --location --request POST 'https://zylalabs.com/api/6724/us+cigarette+price+api/10026/get+excise+tax+per+pack+by+state' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"state":"Required"}'
{"state":"New York","sales_tax_per_pack":"4%"}
curl --location --request POST 'https://zylalabs.com/api/6724/us+cigarette+price+api/10027/get+sales+tax+per+pack+by+state' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"state":"Required"}'
{"state":"New York","total_taxes_per_pack":"$5.91"}
curl --location --request POST 'https://zylalabs.com/api/6724/us+cigarette+price+api/10028/get+total+taxes+per+pack+by+state' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"state":"Required"}'
{"state":"New York","total_average_price_per_pack":"$14.55"}
curl --location --request POST 'https://zylalabs.com/api/6724/us+cigarette+price+api/10029/get+total+average+price+per+pack+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 Cigarette Price API provides access to data on cigarette prices, state taxes, average cost per pack, and annual smoking expenses for all 50 U.S. states.
You can query specific information by using the state as a parameter in the API endpoints. Each endpoint is designed to return focused data related to cigarette prices and taxes for the specified state.
Yes, the US Cigarette Price API is built with RESTful principles, allowing for clean, efficient, and modular data consumption.
Researchers, health economists, and developers looking to integrate tobacco cost data into their applications or analysis tools can benefit from using the US Cigarette Price API.
Each endpoint returns specific data related to cigarette prices and taxes for a given U.S. state. For example, the "get excise tax per pack by state" endpoint returns the excise tax amount, while the "get total average price per pack by state" endpoint provides the average price per pack.
Key fields in the response data include "state," which indicates the U.S. state, and specific metrics such as "excise_tax_per_pack," "sales_tax_per_pack," "total_taxes_per_pack," and "total_average_price_per_pack," depending on the endpoint used.
The response data is organized in JSON format, with each response containing a state identifier and the corresponding metric value. For example, a response from the "get total taxes per pack by state" endpoint would look like: {"state":"New York","total_taxes_per_pack":"$5.91"}.
Each endpoint provides distinct information: the "get states" endpoint lists all states, while the "get excise tax per pack by state" provides excise tax data. Other endpoints cover sales tax, total taxes, and average prices, allowing users to access comprehensive tobacco cost data.
The primary parameter used across the endpoints is the "state," which must be specified to retrieve relevant data. Users can obtain a list of states from the "get states" endpoint to ensure valid parameter input for other queries.
Users can utilize the returned data to analyze cigarette pricing trends, compare tax burdens across states, and inform public health initiatives. For instance, comparing excise taxes can help assess the financial impact of tobacco control policies.
The data is sourced from state government reports and public health databases, ensuring that it reflects current taxation and pricing policies. This helps maintain accuracy and reliability in the information provided by the API.
Typical use cases include academic research on smoking costs, policy analysis for tobacco regulation, and application development for health-related tools. Developers can integrate this data to enhance user awareness of cigarette pricing and taxation.
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:
424ms
Service Level:
100%
Response Time:
705ms
Service Level:
100%
Response Time:
3,862ms
Service Level:
100%
Response Time:
861ms
Service Level:
100%
Response Time:
3,720ms
Service Level:
100%
Response Time:
309ms
Service Level:
67%
Response Time:
1,982ms
Service Level:
91%
Response Time:
670ms
Service Level:
100%
Response Time:
1,463ms
Service Level:
100%
Response Time:
63ms
Service Level:
100%
Response Time:
5,659ms
Service Level:
100%
Response Time:
57ms
Service Level:
100%
Response Time:
52ms
Service Level:
100%
Response Time:
8,683ms
Service Level:
100%
Response Time:
1,476ms
Service Level:
100%
Response Time:
70ms
Service Level:
100%
Response Time:
53ms
Service Level:
100%
Response Time:
55ms
Service Level:
100%
Response Time:
1,674ms