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, 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:
2,148ms
Service Level:
67%
Response Time:
1,963ms
Service Level:
100%
Response Time:
3,862ms
Service Level:
100%
Response Time:
3,187ms
Service Level:
91%
Response Time:
664ms
Service Level:
100%
Response Time:
642ms
Service Level:
100%
Response Time:
17ms
Service Level:
100%
Response Time:
309ms
Service Level:
100%
Response Time:
1,292ms
Service Level:
100%
Response Time:
1,000ms
Service Level:
100%
Response Time:
166ms
Service Level:
100%
Response Time:
642ms
Service Level:
100%
Response Time:
1,289ms
Service Level:
100%
Response Time:
1,736ms
Service Level:
100%
Response Time:
7,377ms
Service Level:
100%
Response Time:
19ms
Service Level:
100%
Response Time:
752ms
Service Level:
100%
Response Time:
349ms
Service Level:
100%
Response Time:
18ms
Service Level:
100%
Response Time:
709ms