# GasBuddy fuel price scraper by ZIP code

**Use case:** 

Extract current cash and credit gas prices, station addresses, and report times from a local GasBuddy ZIP-code search.

## Input

```json
{
  "searchQueries": [
    "11507"
  ],
  "coordinates": [],
  "fuelGrade": "regular_gas",
  "maxResults": 5,
  "maxPriceAgeHours": 0,
  "brands": [],
  "proxyTier": "AUTO"
}
```

## Output

```json
{
  "stationName": {
    "label": "Station",
    "format": "string"
  },
  "brand": {
    "label": "Brand",
    "format": "string"
  },
  "fuelName": {
    "label": "Fuel",
    "format": "string"
  },
  "cashPrice": {
    "label": "Cash price",
    "format": "number"
  },
  "creditPrice": {
    "label": "Credit price",
    "format": "number"
  },
  "cashPostedAt": {
    "label": "Cash posted",
    "format": "string"
  },
  "creditPostedAt": {
    "label": "Credit posted",
    "format": "string"
  },
  "priceUnit": {
    "label": "Unit",
    "format": "string"
  },
  "distance": {
    "label": "Distance",
    "format": "number"
  },
  "addressLine1": {
    "label": "Address",
    "format": "string"
  },
  "city": {
    "label": "City",
    "format": "string"
  },
  "state": {
    "label": "State",
    "format": "string"
  },
  "postalCode": {
    "label": "Postal code",
    "format": "string"
  },
  "rating": {
    "label": "Rating",
    "format": "number"
  },
  "ratingsCount": {
    "label": "Ratings",
    "format": "number"
  },
  "stationUrl": {
    "label": "GasBuddy",
    "format": "string"
  },
  "sourceQuery": {
    "label": "Search",
    "format": "string"
  },
  "scrapedAt": {
    "label": "Scraped",
    "format": "string"
  },
  "stationId": {
    "label": "Station ID",
    "format": "string"
  },
  "brandId": {
    "label": "Brand ID",
    "format": "string"
  },
  "fuelGrade": {
    "label": "Fuel key",
    "format": "string"
  },
  "currency": {
    "label": "Currency",
    "format": "string"
  },
  "latitude": {
    "label": "Latitude",
    "format": "number"
  },
  "longitude": {
    "label": "Longitude",
    "format": "number"
  },
  "addressLine2": {
    "label": "Address line 2",
    "format": "string"
  },
  "country": {
    "label": "Country",
    "format": "string"
  }
}
```

## About this Actor

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