# AAA Gas Price Scraper

**Use case:** 

Scrape AAA gas price averages by state and metro area, including regular, mid-grade, premium, and diesel prices.

## Input

```json
{
  "stateCodes": [
    "CA",
    "TX",
    "NY"
  ],
  "mode": "all",
  "includeMetroAreas": true,
  "includeHistoricalAverages": true,
  "maxItems": 100
}
```

## Output

```json
{
  "locationType": {
    "label": "Type",
    "format": "text"
  },
  "locationName": {
    "label": "Location",
    "format": "text"
  },
  "stateCode": {
    "label": "State",
    "format": "text"
  },
  "period": {
    "label": "Period",
    "format": "text"
  },
  "regularUsd": {
    "label": "Regular",
    "format": "number"
  },
  "midGradeUsd": {
    "label": "Mid-grade",
    "format": "number"
  },
  "premiumUsd": {
    "label": "Premium",
    "format": "number"
  },
  "dieselUsd": {
    "label": "Diesel",
    "format": "number"
  },
  "priceDate": {
    "label": "Price date",
    "format": "text"
  },
  "sourceUrl": {
    "label": "Source URL",
    "format": "link"
  },
  "scrapedAt": {
    "label": "Scraped at",
    "format": "date"
  }
}
```

## About this Actor

This example demonstrates how to use [AAA Fuel Prices Scraper](https://apify.com/automation-lab/aaa-fuel-prices-scraper) with a specific input configuration. Visit the [Actor detail page](https://apify.com/automation-lab/aaa-fuel-prices-scraper) to learn more, explore other use cases, and run it yourself.