Gasbuddy Scraper | Gas Price Scraper avatar

Gasbuddy Scraper | Gas Price Scraper

Deprecated

Pricing

from $1.60 / 1,000 stations

Go to Apify Store
Gasbuddy Scraper | Gas Price Scraper

Gasbuddy Scraper | Gas Price Scraper

Deprecated

Scrape real-time gas prices and station information from GasBuddy.

Pricing

from $1.60 / 1,000 stations

Rating

0.0

(0)

Developer

Stan Van Rooy

Stan Van Rooy

Maintained by Community

Actor stats

1

Bookmarked

32

Total users

0

Monthly active users

10 days ago

Last modified

Share

GasBuddy Gas Station Scraper

Free-plan sample: Apify Free accounts can collect up to 100 result rows total per run, shared across all inputs. Upgrade your Apify plan for larger runs. Normal Actor charges apply. The sample resets each run; it is not a daily or monthly quota.

Simple setup. Good results. Regular updates.

Get real-time gas price data without the complexity. This scraper extracts gas station information with current prices, ratings, and location details in a clean, structured format.

What This Scraper Does

✅ Easy Setup - Just provide a location and you're running
✅ Regular Updates - I keep it working when GasBuddy changes
✅ Real-Time Data - Current gas prices, station ratings, and location info

What You Get

Gas Station Information

  • Current fuel prices (in cents per gallon)
  • Station names and exact addresses
  • Customer ratings (out of 5 stars)
  • Number of customer reviews

Multiple Fuel Types

  • Regular, Midgrade, Premium gasoline
  • Diesel, E85, and UNL88 options
  • Filter by payment method preferences
  • Recent price update filters

All In Clean JSON Format

  • Precise pricing in cents per gallon
  • Geographic location data
  • Customer satisfaction metrics
  • Real-time availability

Feature requests

Some ideas I'm considering:

  • Brand-specific filtering (Shell, Exxon, BP, etc.)
  • Real-time price alerts and notifications

Found a bug or need a field? Open an issue on the Issues tab.

Simple Setup

Just tell it where to look:

{
"search": "New York, NY",
"fuelType": "regular"
}

Get Specific With Filters (Optional)

Want to be more precise? Add filters:

{
"search": "10001",
"fuelType": "diesel",
"paymentMethod": "credit only",
"pricesUpdated": "4 hours"
}

Output

Clean, organized JSON:

{
"fuel_type": "regular",
"name": "USA",
"price_cents_per_gallon": 285,
"address": "222-33 Braddock AveQueens Village, NY",
"number_reviews": 65,
"rating_out_of_five": 4.5
}

Getting Started

  1. Add this actor to your account
  2. Configure your search location and fuel preferences
  3. Run and get current gas prices

Note: GasBuddy loads prices a moment after the station list. If a page comes back without prices, the scraper fetches it again, so a run takes 30 to 90 seconds.

Memory: 512MB (default is fine for most use cases)

Input Parameters

Required:

  • search - Location to search (city, state, or postal code)

Optional:

  • fuelType - Type of fuel: regular, midgrade, premium, diesel, e85, unl88 (default: regular)
  • paymentMethod - Payment filter: "cash or credit", "credit only" (default: cash or credit)
  • pricesUpdated - Freshness filter: "no limit", "4 hours", "8 hours" (default: no limit)

How I Keep It Working

  • Monitor for GasBuddy website changes
  • Update CSS selectors when needed
  • Test regularly across different locations
  • Robust error handling for consistent results

Limitations

  • Limited to available gas station data
  • Depends on GasBuddy's data accuracy and freshness

Pricing

Pay per result: $2.00 per 1,000 gas stations plus a small Actor start fee ($0.005 per GB of memory, one event per run). Higher Apify plans pay less per station. Stations without a current price are skipped and not charged.

Support

Found a bug or need a field? Open an issue on the Issues tab.

Fair Use

This scraper respects GasBuddy's servers and follows ethical scraping practices. Use responsibly and in accordance with GasBuddy's terms of service.