Fuel Prices Scraper avatar

Fuel Prices Scraper

Pricing

from $1.00 / 1,000 results

Go to Apify Store
Fuel Prices Scraper

Fuel Prices Scraper

Daily US fuel prices (regular, mid-grade, premium, diesel) at national, state, and metro level. HTTP-only, no proxy, no auth. Filters: states allowlist, fuelTypes, minPrice/maxPrice, sortBy. Source: AAA Fuel Gauge.

Pricing

from $1.00 / 1,000 results

Rating

5.0

(13)

Developer

Crawler Bros

Crawler Bros

Maintained by Community

Actor stats

13

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Share

Daily US fuel prices from the AAA Fuel Gauge. National, state (50 + DC), and metro/county averages for regular, mid-grade, premium, and diesel — with current/yesterday/week/month/year-ago history. HTTP-only — no cookies, no proxy, no auth.

What this actor does

  • Fetches the public AAA Fuel Gauge pages
  • Parses national, state, and metro-level fuel prices
  • Returns one record per scope (1 national / 51 state / hundreds of metro records)
  • Includes price history (yesterday / week ago / month ago / year ago) and derived change metrics (in cents)
  • Pro filters narrow output to specific states, fuel types, price bands, or metro substring matches

Modes

ModeWhat it does
national1 record — current US national average for all 4 fuel grades
state (default)51 records — current + history for each of 50 states + DC
metroPer-state metro/county tables (~200+ records when no state filter is set)

Output per record

State / metro records include:

  • scope (national / state / metro)
  • country (national only — always US)
  • state, stateCode (state and metro records)
  • metro (metro records only)
  • regular, midGrade, premium, diesel (USD/gal — only fuels actually published)
  • history (object — yesterday / weekAgo / monthAgo / yearAgo × fuel grade)
  • changeFromYesterday, changeFromWeekAgo, changeFromMonthAgo, changeFromYearAgo (cents — computed from primaryFuelType, default regular)
  • recordType: "fuelPrices", scrapedAt

Empty fields are omitted from the output (no nulls).

Input

FieldTypeDefaultDescription
modeenumstatenational / state / metro
statesarray[]Two-letter state codes or full names — e.g. ["NY","CA"] or ["New York","California"]. Empty = all 50 + DC
fuelTypesarrayall fourSubset of regular / midGrade / premium / diesel. Drops other grades from each record
includeHistorybooltrueInclude yesterday/week-ago/month-ago/year-ago averages
includeChangeMetricsbooltrueCompute changeFromYesterday etc. (in cents) for the primary fuel
minPricenumberDrop records whose primary fuel is below this price
maxPricenumberDrop records whose primary fuel is above this price
primaryFuelTypeenumregularWhich fuel grade minPrice/maxPrice/sort/change use
sortByenumstate_ascprice_asc / price_desc / state_asc
metroNameFilterarray[]Only emit metro records whose name contains one of these substrings (case-insensitive)
maxItemsint500Hard cap on emitted records

Example: state averages

{
"mode": "state",
"states": [],
"includeHistory": true,
"includeChangeMetrics": true,
"sortBy": "price_asc"
}

Example: metros in NY + CA

{
"mode": "metro",
"states": ["NY", "CA"],
"metroNameFilter": ["new york", "los angeles", "san francisco"]
}

Example: cheapest diesel by state

{
"mode": "state",
"primaryFuelType": "diesel",
"fuelTypes": ["diesel"],
"sortBy": "price_asc",
"maxItems": 10
}

Use cases

  • Fleet planning — compare diesel prices across states for routing
  • News + editorial — daily "where gas is cheapest" digest, broken out by state and metro
  • Consumer apps — power a "national fuel price" widget with one daily run
  • Trend tracking — monitor changeFromYearAgo to flag big YoY moves
  • Inflation dashboards — fuel is a leading retail-inflation indicator

FAQ

Does it require a login or cookies? No. The AAA Fuel Gauge is fully public.

Is a proxy needed? No. Datacenter IPs work fine.

Does it cover countries other than the US? Not yet. AAA's Fuel Gauge is US-only.

Why aren't station-level (per-pump) prices included? Per-station data sources (e.g. GasBuddy) are heavily rate-limited and blocked from datacenter IPs. State + metro aggregates from AAA are the most reliable, free, datacenter-friendly source.

How fresh is the data? AAA updates daily (overnight). The actor reads the page directly so each run reflects the latest published averages.

Why do some states miss a fuel grade? Some states don't publish every grade. The omit-empty contract drops missing fields rather than emit nulls.

Why is changeFromMonthAgo sometimes missing? It's computed only when both current price and the relevant history bucket are present.

What does metroNameFilter match against? Case-insensitive substring of the metro/county name as published by AAA (e.g. Albany-Schenectady-Troy, Nassau-Suffolk).