Skip to content

AAA API: Get gas prices

Gets AAA average gasoline and diesel prices for the US, a state, or a metro area listed on its state page, with yesterday, week, month and year-ago comparisons and record highs, as of the date AAA shows.

gasprices.aaa.com (opens in a new tab)Version 1ReadNo sign-inVerified Nov 2, 2026

Unofficial. Not affiliated with or endorsed by AAA.

Inputs

Values from the run on Oct 31, 2026, shown under Output.

Location optionallocation

US, a state name or two-letter code, or a metro name followed by its state, for example Houston, TX.

Houston, TX

Default US.

Output

From a run on Oct 31, 2026.
{  "date": "2026-09-28",  "link": "https://gasprices.aaa.com/?state=TX#state-metro",  "place": "Houston, TX",  "current": {    "diesel": 5.8545,    "premium": 4.9246,    "regular": 3.9152,    "mid_grade": 4.503  },  "currency": "USD",  "week_ago": {    "diesel": 5.8904,    "premium": 4.8859,    "regular": 3.8783,    "mid_grade": 4.4543  },  "year_ago": {    "diesel": 3.1334,    "premium": 3.678,    "regular": 2.6726,    "mid_grade": 3.2715  },  "month_ago": {    "diesel": 5.1073,    "premium": 4.5727,    "regular": 3.5428,    "mid_grade": 4.1367  },  "yesterday": {    "diesel": 5.866,    "premium": 4.9346,    "regular": 3.9199,    "mid_grade": 4.5048  },  "record_high_diesel": {    "date": "2026-09-23",    "price": 5.8996  },  "record_high_regular": {    "date": "2022-06-11",    "price": 4.6821  }}
Price
1 credit per completed run (1¢ with pay as you go); failed runs are free.
Method
gasprices.aaa.com/get_gas_prices
Returns
place, price date, current, yesterday, week-ago, month-ago and year-ago prices by grade, record highs for regular and diesel, AAA link

Use it from your agent

Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method gasprices.aaa.com/get_gas_prices with the inputs above.

Ask your agent

  • What's the national average price for regular gas today, and how does it compare to a year ago?
  • Check AAA for current diesel prices in Ohio, including the record high
  • How much is premium gas in Denver, CO right now versus last week and last month?
  • Pull the aaa.com average fuel prices for the Phoenix, AZ metro area by grade
  • Has the average price of gas in California gone up since yesterday? Show me the mid-grade and regular numbers.

See more

  • Gets GasBuddy's latest reported average regular gas price, its changes and the diesel benchmark for a US state or a listed metro area. Midgrade, premium and area low/high prices are not published with these averages; updates may lag the current day.

    gasbuddy.com/get_average_gas_prices
  • Gets the latest weekly EIA retail gasoline and on-highway diesel prices for a U.S. area, with changes from the prior week and from 52 weeks earlier.

    eia.gov/get_fuel_prices
  • Finds nearby GasBuddy stations for a US or Canadian city, address or postal code and lists their reported prices for a fuel grade, lowest listed price first.

    gasbuddy.com/list_cheapest_gas_stations
  • Gets a state's latest monthly electricity price for a customer type from EIA. It also returns the year-over-year change, the year-to-date average and the matching US average.

    eia.gov/get_electricity_prices
  • Finds the US Costco warehouses nearest a city, address or ZIP code, with today's and weekly hours, gas station hours, services and posted gas prices.

    costco.com/search_warehouses
  • Finds the AutoZone stores nearest a US ZIP code, city or street address, with contact details, opening hours, whether each is open now, distance and store page links.

    autozone.com/search_stores
  • Gets Zumper's current median monthly rents for studio through three-bedroom homes in a city, with monthly and yearly percentage changes. National rank is included only when the same-month U.S. national report ranks the city.

    zumper.com/get_average_rents
  • Returns official MPG or MPGe, range, annual fuel cost, five-year savings and emissions for every matching version of a vehicle. Costs use current fuel prices and 15,000 miles per year; plug-in hybrid costs include gasoline and electricity.

    fueleconomy.gov/get_fuel_economy