Gas Prices Scraper

  • natasha.lekh/gas-prices-scraper
  • Modified
  • Users 175
  • Runs 12.8k
  • Created by Author's avatarNatasha Lekh

⛽ 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.

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.


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": "", "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": ",-95.4174596,17z/data=!3m1!4b1!4m5!3m4!1s0x8640c7367fdcf597:0xb767ea42184e1081!8m2!3d29.7766652!4d-95.4174594?hl=en", "searchPageUrl": ",-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": [ "" ], "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" } ] }, ...

Integrations and Gas Prices Scraper

Last but not least, Gas Prices Scraper can be connected with almost any cloud service or web app thanks to integrations on the Apify platform. You can integrate with Make, Zapier, Slack, Airbyte, GitHub, Google Sheets, Google Drive, and more. Or you can use webhooks to carry out an action whenever an event occurs, e.g. get a notification whenever Gas Prices Scraper successfully finishes a run.

Using Gas Prices Scraper with the Apify API

The Apify API gives you programmatic access to the Apify platform. The API is organized around RESTful HTTP endpoints that enable you to manage, schedule, and run Apify actors. The API also lets you access any datasets, monitor actor performance, fetch results, create and update versions, and more.

To access the API using Node.js, use the apify-client NPM package. To access the API using Python, use the apify-client PyPI package.

Check out the Apify API reference docs for full details or click on the API tab for code examples.