Gas Prices Scraper avatar

Gas Prices Scraper

Try for free

7 days trial then $10.00/month - No credit card required now

View all Actors
Gas Prices Scraper

Gas Prices Scraper

natasha.lekh/gas-prices-scraper
Try for free

7 days trial then $10.00/month - No credit card required now

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

Do you want to learn more about this Actor?

Get a demo

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

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 Starter 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:

1{
2  "location": "Houston",
3  "maxCrawledPlaces": 100
4}

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:

1[{
2  "title": "Texaco Houston",
3  "subTitle": null,
4  "price": null,
5  "menu": null,
6  "categoryName": "Gas station",
7  "address": "5333 Katy Fwy, Houston, TX 77007",
8  "locatedIn": null,
9  "neighborhood": "Washington Avenue Coalition / Memorial Park",
10  "street": "5333 Katy Fwy",
11  "city": "Houston",
12  "postalCode": "77007",
13  "state": "Texas",
14  "countryCode": "US",
15  "plusCode": "QHGM+M2 Washington Avenue Coalition / Memorial Park, Houston, TX",
16  "website": "http://www.texaco.com/",
17  "phone": "(713) 861-7240",
18  "temporarilyClosed": false,
19  "location": {
20    "lat": 29.7767003,
21    "lng": -95.4174596
22  },
23  "permanentlyClosed": false,
24  "totalScore": 3,
25  "isAdvertisement": false,
26  "rank": 21,
27  "placeId": "ChIJl_XcfzbHQIYRgRBOGELqZ7c",
28  "categories": [
29    "Gas station",
30    "Auto repair shop",
31    "Convenience store",
32    "Diesel fuel supplier",
33    "Fuel pump",
34    "Gas company"
35  ],
36  "cid": "13215789201138520193",
37  "fid": "0x8752803adcbfe1eb:0x22db97b7282d97c3",
38  "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",
39  "searchPageUrl": "https://www.google.com/maps/search/gas+station+in+Houston/@42.0839424,-72.0371712,14z?hl=en",
40  "searchString": "gas station in Houston",
41  "scrapedAt": "2022-07-12T16:37:36.783Z",
42  "reviewsCount": 8,
43  "reviewsDistribution": {
44    "oneStar": 3,
45    "twoStar": 1,
46    "threeStar": 0,
47    "fourStar": 1,
48    "fiveStar": 3
49  },
50  "imageUrls": [
51    "https://lh5.googleusercontent.com/p/AF1QipMktjTD6ylmcKfx5_urprrU775a0p4cFcDZGX4V=w1920-h1080-k-no"
52  ],
53  "reviews": [],
54  "orderBy": [],
55  "gasPrices": [
56    {
57      "priceTag": "$4.76",
58      "updatedAt": "2022-07-11T16:53:35.000Z",
59      "unit": "gallon",
60      "currency": "USD",
61      "price": 4.76,
62      "gasType": "Midgrade"
63    },
64    {
65      "priceTag": "$5.26",
66      "updatedAt": "2022-07-11T06:25:09.000Z",
67      "unit": "gallon",
68      "currency": "USD",
69      "price": 5.26,
70      "gasType": "Premium"
71    }
72  ]
73},
74  ...

FAQ

Can I integrate Gas Prices Scraper with other apps?

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.

Can I use Gas Prices Scraper with API?

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

Need to scrape emails from Google Maps?

Looking to scrape contact information from Google Maps? Give our Google Maps Email Extractor a try! This email scraper allows you to extract almost any contact data from Google places: emails, addresses, phone numbers, and social media details. You can also follow this tutorial to get started.

Need a more advanced scraper for Google Maps?

If you need more detailed data from Google Maps, try our Google Maps Scraper. It's a little more complicated to set up but you can get almost any data from Google Maps. You can always just follow this comprehesive guide. Or try one of these other map scrapers:

🧭 Google Maps Itinerary🍃 Easy Google Maps Scraper
⭐️ Google Maps Reviews Scraper🤟 Google Datasets Translator
🍎 Apple Maps Scraper 📍 OCR for Google Map pins
Developer
Maintained by Apify

Actor Metrics

  • 7 monthly users

  • 5 stars

  • >99% runs succeeded

  • Created in Jul 2022

  • Modified 21 hours ago

Categories