# GasBuddy API: Get average gas prices

> 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.

Unofficial. Not affiliated with or endorsed by GasBuddy.

- Page: https://fous.com/methods/gasbuddy.com/get-average-gas-prices
- Method: `gasbuddy.com/get_average_gas_prices`, version 1
- Website: gasbuddy.com
- Returns: place, regular price, regular price changes (day, week, month, year), diesel price, last updated date, GasBuddy link
- Effect: read (it gets data and changes nothing)
- Sign-in: none needed
- Cost: 1 credit per completed run (1¢ with pay as you go); failed runs are free
- Verified: Nov 2, 2026

## Inputs

| Field | Type | Required | In the run below | Description |
|---|---|---|---|---|
| `location` | string | yes | `"Chicago, IL"` | US state name or two-letter code, or city and state, for example "Chicago, IL". |

## Output

From a run on Oct 31, 2026. Its input:

```json
{
  "location": "Chicago, IL"
}
```

Its output:

```json
{
  "place": "Chicago, IL",
  "currency": "USD",
  "gasbuddy_link": "https://fuelinsights.gasbuddy.com/#Home/US/Illinois/Chicago",
  "last_updated_date": "2026-09-28",
  "diesel_price_per_gallon": 6.816,
  "premium_price_per_gallon": null,
  "regular_price_per_gallon": 4.866,
  "midgrade_price_per_gallon": null,
  "regular_change_from_week_ago": -0.177,
  "regular_change_from_year_ago": 1.281,
  "regular_change_from_month_ago": 0.436,
  "regular_change_from_yesterday": 0.009,
  "lowest_regular_price_per_gallon": null,
  "highest_regular_price_per_gallon": null
}
```

## Run it

From code, with a Fous API key in `FOUS_API_KEY`; the answer's `data` holds the output:

```bash
curl https://api.fous.com/v1/runs \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"method":"gasbuddy.com/get_average_gas_prices","input":{"location":"Chicago, IL"}}'
```

From an AI agent connected to the Fous MCP server: its `run` with the same method and input. To connect one, give it `set up https://fous.com/SKILL.md`.

## Ask your agent

- What's the average price of regular gas in Ohio right now, and how much has it changed since last week?
- Check gasbuddy.com for the current average regular and diesel prices in Phoenix, AZ.
- How does today's average regular unleaded price in Colorado compare to a year ago?
- Pull the GasBuddy average gas price for Atlanta, GA, including the monthly change and the diesel average.
- I'm driving through TX tomorrow. What's the statewide average for regular fuel and diesel, and when was it last updated?

## Input schema

```json
{
  "type": "object",
  "required": [
    "location"
  ],
  "properties": {
    "location": {
      "type": "string",
      "description": "US state name or two-letter code, or city and state, for example \"Chicago, IL\"."
    }
  }
}
```

## Output schema

```json
{
  "type": "object",
  "required": [
    "place",
    "currency",
    "regular_price_per_gallon",
    "midgrade_price_per_gallon",
    "premium_price_per_gallon",
    "diesel_price_per_gallon",
    "regular_change_from_yesterday",
    "regular_change_from_week_ago",
    "regular_change_from_month_ago",
    "regular_change_from_year_ago",
    "lowest_regular_price_per_gallon",
    "highest_regular_price_per_gallon",
    "last_updated_date",
    "gasbuddy_link"
  ],
  "properties": {
    "place": {
      "type": "string",
      "description": "State or GasBuddy metro area."
    },
    "currency": {
      "enum": [
        "USD"
      ],
      "type": "string",
      "description": "Currency of all prices and changes."
    },
    "gasbuddy_link": {
      "type": "string"
    },
    "last_updated_date": {
      "type": [
        "string",
        "null"
      ],
      "format": "date",
      "description": "Date of the latest reported average, not necessarily today."
    },
    "diesel_price_per_gallon": {
      "type": [
        "number",
        "null"
      ]
    },
    "premium_price_per_gallon": {
      "type": [
        "number",
        "null"
      ]
    },
    "regular_price_per_gallon": {
      "type": [
        "number",
        "null"
      ]
    },
    "midgrade_price_per_gallon": {
      "type": [
        "number",
        "null"
      ]
    },
    "regular_change_from_week_ago": {
      "type": [
        "number",
        "null"
      ]
    },
    "regular_change_from_year_ago": {
      "type": [
        "number",
        "null"
      ]
    },
    "regular_change_from_month_ago": {
      "type": [
        "number",
        "null"
      ]
    },
    "regular_change_from_yesterday": {
      "type": [
        "number",
        "null"
      ]
    },
    "lowest_regular_price_per_gallon": {
      "type": [
        "number",
        "null"
      ]
    },
    "highest_regular_price_per_gallon": {
      "type": [
        "number",
        "null"
      ]
    }
  },
  "additionalProperties": false
}
```

## See more

- [GasBuddy API: List cheapest gas stations](https://fous.com/methods/gasbuddy.com/list-cheapest-gas-stations.md): 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.
- [AAA API: Get gas prices](https://fous.com/methods/gasprices.aaa.com/get-gas-prices.md): 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.
- [EIA API: Get weekly fuel prices](https://fous.com/methods/eia.gov/get-fuel-prices.md): 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 API: Get electricity prices](https://fous.com/methods/eia.gov/get-electricity-prices.md): 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.
- [Costco API: Find nearby warehouses](https://fous.com/methods/costco.com/search-warehouses.md): 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.
- [Numbeo API: Get cost of living](https://fous.com/methods/numbeo.com/get-cost-of-living.md): Gets a city's current Numbeo cost of living indices, monthly estimates without rent, and typical prices. Add a country or state to tell apart cities with the same name.
- [CarGurus API: Get used car market value](https://fous.com/methods/cargurus.com/get-market-value.md): Gets the current average used asking price, the CarGurus price range and the 12-month price history for a model year (all trims), from CarGurus price trends.
- [Zumper API: Get average rents by city](https://fous.com/methods/zumper.com/get-average-rents.md): 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.
- [All GasBuddy methods](https://fous.com/methods/gasbuddy.com.md)
