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, 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:
216ms
Service Level:
100%
Response Time:
192ms
Service Level:
100%
Response Time:
312ms
Service Level:
100%
Response Time:
193ms
Service Level:
100%
Response Time:
388ms
Service Level:
100%
Response Time:
138ms
Service Level:
100%
Response Time:
595ms
Service Level:
100%
Response Time:
419ms
Service Level:
100%
Response Time:
521ms
Service Level:
100%
Response Time:
520ms