Fuel Price β US Gas & Diesel Prices
Pricing
from $0.70 / 1,000 results
Fuel Price β US Gas & Diesel Prices
Get today's average US gas and diesel prices for the nation, any state, metro, city or ZIP code. See change vs yesterday, last week, last year, record highs and cheapest-state rankings. Great for fleets, travel planning, journalists and price tracking.
Pricing
from $0.70 / 1,000 results
Rating
0.0
(0)
Developer
Data WiKi
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
6 days ago
Last modified
Categories
Security
Limited permissionsShare
Fuel Price β US Gas & Diesel Averages, Trends, Rankings
Fuel Price collects today's average US gas and diesel prices for the nation, any state, metro area, ZIP code or city. Each row carries the current price, yesterday, last week, last month and last year, the change in dollars and percent, the record-high price and a rising / falling / stable trend. Optional extras add every metro area of a state, a cheapest-state ranking across all 51 states, and weekly price history back to 1990. Every response is structured JSON β ready to pass directly to an LLM, index into a vector store, or feed a price-monitoring pipeline. No login, cookies or API key needed. Run it daily to track where pump prices are heading next.
Why choose Fuel Price?
- Averages, not guesses β official daily averages with the date they were published on every row.
- One input, many places β mix
US, states, ZIP codes and cities in one run; duplicates are merged. - Context built in β change versus yesterday / week / month / year, record high, gap to the national and state average.
- Live results β rows appear in the Output tab while the run is still going, split into separate tables per section.
Key features
- National, state and metro fuel price averages for regular, midgrade, premium, diesel and E85
- ZIP code and city lookup that finds the right state and metro area
- Weekly fuel price history, last N weeks or everything since 1990
- Cheapest-state ranking for all 51 states (50 + DC)
- Prices in US dollars per gallon or per liter
- Starts without a proxy and switches to a stronger one on its own when a request is refused
Input
{"urls": ["US", "NY", "11507", "Texas"],"fuel_types": ["regular", "diesel"],"include": ["metros", "history"],"history_weeks": 26,"price_unit": "gallon","proxyConfiguration": { "useApifyProxy": false }}
| Field | What it does |
|---|---|
π urls (required) | One location per line: US, a state code or name, a 5-digit ZIP code, or a city such as Austin, TX. |
β½ fuel_types | regular, midgrade, premium, diesel, e85 or all. E85 is published for the whole US only. |
π§ include | metros (every metro area of each state location), history (weekly series), all_states (a row per state with its rank). |
π history_weeks | Weeks of history per series when history is on; 0 returns everything since 1990. |
π΅ price_unit | gallon or liter. |
π proxyConfiguration | Optional. No proxy by default. |
Output
Every price, history and error row goes to the default dataset and to a table for its section; the locations table shows how each input was understood. Tables: national, states, metros, history, locations (how each input was understood) and errors.
{"record_type": "average","scope": "state","query": "Texas","location": "Texas","state_code": "TX","fuel_type": "regular","price_unit": "USD/gal","price_current": 3.7105,"change_1w_pct": -1.73,"trend_1w": "falling","record_high_price": 5.0,"state_rank_cheapest": 3,"states_total": 51,"price_date": "2026-10-27"}
Average rows hold the price columns above plus price_yesterday, price_week_ago, price_month_ago, price_year_ago, change_*, record_high_date, pct_below_record, vs_national and vs_state. History rows hold week_ending, price, change_vs_prior_week and the area the series describes. When no state series exists for a fuel, the row shows a regional series and says so in note.
A test run with US, NY, 11507, Texas, regular and diesel, metros and 8 weeks of history returned 140 rows: 92 price averages and 48 weekly rows.
π How to use (Apify Console)
- Log in at https://console.apify.com and open Actors.
- Open Fuel Price.
- Enter your locations, pick fuels and extras.
- Click Start and watch the log.
- Open the Output tab, then export to JSON, CSV or Excel.
π€ Use via API / MCP
curl -X POST "https://api.apify.com/v2/actors/<ACTOR_ID>/runs" \-H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \-d '{"urls":["US","Texas"],"fuel_types":["regular"]}'
To call it from an AI agent, add the Apify MCP server: claude mcp add --transport http apify "https://mcp.apify.com". The agent finds this Actor through the server's search, details and call tools.
Best use cases
- Daily pump-price monitoring for a state or city
- Fleet and logistics fuel budgeting with diesel trends
- Journalists and analysts comparing states against the record highs
- Dashboards and alerts on weekly price moves
Pricing
Each saved price or history row is one billable result. Error rows are not billed. Free plan runs return up to 10 results.
Frequently asked questions
Does it return single gas stations? No. It returns averages for the nation, states, metro areas and the metro that matches a ZIP code or city.
Which places are supported? US locations only: the nation, the 50 states, DC, ZIP codes and cities.
How fresh is the data? Averages are published daily; every row shows its price_date. Weekly history updates once a week.
Why is a metro area missing for my ZIP code? If no metro area matches the place, the row shows the state average and says so in note.
Why does a history row say "regional"? Some states have no weekly series of their own for a fuel, so the matching region is shown and labelled.
What if the page layout changes? The Actor reports the problem as an error row instead of returning silent empty results.
Is a proxy needed? No. It starts without one and switches automatically if a request is refused.
Support and feedback
Found a bug or need another field? Open an issue from the Actor page in Apify Console.
Legal
Only publicly available data is collected. You are responsible for using it in line with applicable laws and the terms of the data publishers.