The Texas Gasoline Data API specializes in delivering historical data on retail gasoline prices in Texas, specifically focusing on conventional regular gasoline. It processes data fields structured by year and month, with weekly price values recorded in dollars per gallon. Each entry consists of an end date and the corresponding price value for each week of the month, allowing users to track price fluctuations over time.
{"year":2002,"month":"June","price":1.288}
curl --location --request POST 'https://zylalabs.com/api/6291/texas+gasoline+data+api/8898/get+historical+gasoline+prices' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"month":"Required","year":"Required"}'
{"year":2025,"month":1,"price":2.698}
curl --location --request POST 'https://zylalabs.com/api/6291/texas+gasoline+data+api/8899/get+average+gasoline+price' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{}'
| 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 Texas Gasoline Data API provides historical weekly retail gasoline prices for conventional regular gasoline in Texas, formatted by month and year.
The data is structured by year and month, with weekly price values recorded in dollars per gallon. Each entry includes an end date and the corresponding price value for each week of the month.
You can track price fluctuations by accessing the weekly price data provided by the API, which allows you to analyze changes in gasoline prices over time.
Yes, the Texas Gasoline Data API is suitable for research purposes as it offers detailed historical data on gasoline prices, enabling users to conduct analyses and draw insights regarding price trends.
The "get historical gasoline prices" endpoint returns weekly gasoline prices for a specified month and year, while the "get average gasoline price by month" endpoint provides the most recent monthly average gasoline price.
The key fields in the response data include "year," "month," and "price," which represent the year of the data, the month, and the gasoline price in dollars per gallon, respectively.
The "get historical gasoline prices" endpoint requires parameters for "month" and "year" to specify the desired data, while the "get average gasoline price by month" endpoint does not require additional parameters.
The response data is organized in a JSON format, with each entry containing the year, month, and corresponding price, allowing for easy parsing and analysis of gasoline price trends.
Typical use cases include market analysis, economic research, and trend forecasting, where users can analyze historical price fluctuations or monitor current gasoline price trends in Texas.
Data accuracy is maintained through regular updates and validation processes, ensuring that the gasoline prices reflect reliable and consistent information sourced from reputable data providers.
Users can customize their data requests by specifying the desired month and year for historical prices, allowing them to focus on specific timeframes relevant to their analysis.
Users can expect to see weekly price variations within a month, with prices typically reflecting seasonal trends, economic factors, and regional market conditions in Texas.
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:
2,148ms
Service Level:
67%
Response Time:
1,982ms
Service Level:
100%
Response Time:
3,862ms
Service Level:
100%
Response Time:
3,187ms
Service Level:
100%
Response Time:
705ms
Service Level:
91%
Response Time:
670ms
Service Level:
100%
Response Time:
17ms
Service Level:
100%
Response Time:
309ms
Service Level:
100%
Response Time:
1,524ms
Service Level:
100%
Response Time:
1,000ms
Service Level:
100%
Response Time:
8,360ms
Service Level:
100%
Response Time:
76ms
Service Level:
100%
Response Time:
840ms
Service Level:
100%
Response Time:
1,963ms
Service Level:
100%
Response Time:
3,976ms
Service Level:
100%
Response Time:
277ms
Service Level:
100%
Response Time:
957ms
Service Level:
100%
Response Time:
18,705ms
Service Level:
100%
Response Time:
52ms
Service Level:
100%
Response Time:
11,173ms