Alert

Actor is under maintenance

This actor may be unreliable while under maintenance. Would you like to try a similar actor instead?

Actor picture

Gas Prices Scraper

natasha.lekh/gas-prices-scraper

⛽ Find lowest gas prices and timestamps of price updates from gas stations in your area. Scrape gas station addresses, gas company names, open/closed status, website, reviews (stars), postal code and more. Download data scraped from Google Maps in various formats including HTML, JSON, and Excel.

No credit card required

Author's avatarNatasha Lekh
  • Modified
  • Users23
  • Runs145
Actor picture
Gas Prices Scraper

Whether you're trying to find the cheapest gas stations in your area or lowest gas prices in the US, you can't find all of them quickly without some automation tool. Try our free Gas Stations Scraper!

There's only two things you have to indicate to gas station details: the area you want to scrape, (e.g. Houston) and the number of gas stations you want to examine. Then hit the "Save & Start" button at the bottom of the page and get data on fuel prices, types, and companies anywhere in the world!

Can I use gas station data to make a gas prices app?

Yes, you can use the data any way you like. The datasets produced by this scraper are extracted from Google Maps so the data stays relevant. Also, the Gas Station Scraper datasets you will extract can be downloaded in machine-readable formats (HTML, JSON, Excel, CSV) which are perfect for populating applications, reports, and other documents for data analysis.

Here are just some ways scraping gas prices and stations can be useful:

  • get live data on gas prices from Google Maps
  • monitor gas prices by state, city, or area
  • find details on all gas stations near you: address, phone, website, open/closed status and more
  • see the price range by fuel types: premium gas, midgrade gas, diesel
  • automate keeping an eye on different fuel supplier and gas company offers

For more inspiration on how to use the extracted Google Maps data, check out our industries pages. See how web scraping results are already being used by companies of all sizes, including manufacturing and logistics.

How much will it cost me to scrape gas prices?

Apify provides you with $5 free usage credits to use every month on the Apify Free plan. For that $5 you can get up to 2,000 data items from this Gas Station Scraper. So it will be completely free for 2,000 results!

If you need to scrape gas station data on a more regular basis, you should opt for an Apify subscription. We recommend our $49/month Personal plan - that one will cover 20,000 gas station results every month with the free $49 in monthly usage credits!

Input example

There are just two fields to fill out: the area you want to get data from and the number of results you'd like to receive.

Let's scrape 100 gas stations in Houston, Texas.

Gas_station_scraper_input

This is how it would look in JSON format:

{
  "location": "Houston",
  "maxCrawledPlaces": 100
}

Output example

You can view the extracted data as a table or change the format and go through all fields. You can manage your results in any language (Python, PHP, Node.js/NPM) and any format (CSV, JSON, HTML, Excel). Last but not least - you can download your data from the Apify platform onto your computer or integrate it with other apps directly with our great range of integrations.

Gas station scraper_output

Or, as it would look in JSON format:

[{
  "title": "Texaco Houston",
  "subTitle": null,
  "price": null,
  "menu": null,
  "categoryName": "Gas station",
  "address": "5333 Katy Fwy, Houston, TX 77007",
  "locatedIn": null,
  "neighborhood": "5333 Katy Fwy",
  "street": "5333 Katy Fwy",
  "city": "Houston",
  "postalCode": "77007",
  "state": "Texas",
  "countryCode": "US",
  "plusCode": "QHGM+M2 Washington Avenue Coalition / Memorial Park, Houston, TX",
  "website": "http://www.texaco.com/",
  "phone": "(713) 861-7240",
  "temporarilyClosed": false,
  "location": {
    "lat": 29.7767003,
    "lng": -95.4174596
  },
  "permanentlyClosed": false,
  "totalScore": 3,
  "isAdvertisement": false,
  "rank": 21,
  "placeId": "ChIJl_XcfzbHQIYRgRBOGELqZ7c",
  "categories": [
    "Gas station",
    "Auto repair shop",
    "Convenience store",
    "Diesel fuel supplier",
    "Fuel pump",
    "Gas company"
  ],
  "cid": "13215789201138520193",
  "url": "https://www.google.com/maps/place/Texaco+Houston/@29.7767003,-95.4174596,17z/data=!3m1!4b1!4m5!3m4!1s0x8640c7367fdcf597:0xb767ea42184e1081!8m2!3d29.7766652!4d-95.4174594?hl=en",
  "searchPageUrl": "https://www.google.com/maps/search/gas+station+in+Houston/@42.0839424,-72.0371712,14z?hl=en",
  "searchString": "gas station in Houston",
  "scrapedAt": "2022-07-12T16:37:36.783Z",
  "reviewsCount": 8,
  "reviewsDistribution": {
    "oneStar": 3,
    "twoStar": 1,
    "threeStar": 0,
    "fourStar": 1,
    "fiveStar": 3
  },
  "imageUrls": [
    "https://lh5.googleusercontent.com/p/AF1QipMktjTD6ylmcKfx5_urprrU775a0p4cFcDZGX4V=w1920-h1080-k-no"
  ],
  "reviews": [],
  "orderBy": [],
  "gasPrices": [
    {
      "priceTag": "$4.76",
      "updatedAt": "2022-07-11T16:53:35.000Z",
      "unit": "gallon",
      "currency": "USD",
      "price": 4.76,
      "gasType": "Midgrade"
    },
    {
      "priceTag": "$5.26",
      "updatedAt": "2022-07-11T06:25:09.000Z",
      "unit": "gallon",
      "currency": "USD",
      "price": 5.26,
      "gasType": "Premium"
    }
  ]
},
  ...

Industries

See how Gas Prices Scraper is used in industries around the world