# EIA Gas Prices by State Scraper

**Use case:** 

Scrape U.S. gasoline prices by state from official EIA energy data. Get up-to-date regional fuel price figures in structured JSON.

## Input

```json
{
  "dataset": "gas-prices-by-state",
  "maxItems": 5
}
```

## Output

```json
{
  "location": {
    "label": "Location",
    "format": "text"
  },
  "currentPrice": {
    "label": "Current Price",
    "format": "number"
  },
  "priceNumeric": {
    "label": "Price Numeric",
    "format": "number"
  },
  "previousWeekPrice": {
    "label": "Previous Week Price",
    "format": "number"
  },
  "twoWeeksAgoPrice": {
    "label": "Two Weeks Ago Price",
    "format": "number"
  },
  "changeFromTwoYearsAgo": {
    "label": "Change From Two Years Ago",
    "format": "number"
  },
  "changeFromYearAgo": {
    "label": "Change From Year Ago",
    "format": "number"
  },
  "changeFromLastWeek": {
    "label": "Change From Last Week",
    "format": "number"
  },
  "date": {
    "label": "Date",
    "format": "text"
  },
  "fuelType": {
    "label": "Fuel Type",
    "format": "text"
  },
  "scrapedAt": {
    "label": "Scraped At",
    "format": "text"
  }
}
```

## About this Actor

This example demonstrates how to use [EIA Energy Data Scraper](https://apify.com/parseforge/eia-energy-data-scraper) with a specific input configuration. Visit the [Actor detail page](https://apify.com/parseforge/eia-energy-data-scraper) to learn more, explore other use cases, and run it yourself.