# Gas Prices Scraper – US & Canada Gas Station Prices (`tubetext/gas-prices-scraper`) Actor

Get live gas station prices from US/Canada ZIP codes, cities or coordinates. Returns regular, midgrade, premium, diesel and E85 prices with brand, address and update time; optional cheapest-station summary. $0.001 per station; empty areas are free. · by TubeText

- **URL**: https://apify.com/tubetext/gas-prices-scraper.md
- **Developed by:** [TubeText Labs](https://apify.com/tubetext) (community)
- **Categories:** Travel, E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 1,000 gas stations

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Gas Prices Scraper – US & Canada Gas Station Prices

> **TubeText** · E-commerce & travel · Pay per result. No login. Ready for AI agents. [All tools](https://apify.com/tubetext)

### Quick start (no coding)

1. Click **Try for free** at the top of this page. A free Apify account is enough – it includes monthly credit.
2. In **Locations**, paste US or Canada ZIP/postal codes, cities (like `Chicago, IL`) or `lat,lng`, one per line, then pick a **Fuel type**.
3. Click **Start**. Usually under a minute per location.
4. When it says **Succeeded**, open the **Output** tab and click **Export** → **Excel** (or CSV). One row per gas station with prices per fuel grade, when each price was last updated, address and rating, plus an area summary of the cheapest stations.

**Cost:** $0.001 per station – 100 stations ≈ $0.10. The area summary is $0.002 per location.

**Common mistakes**

- Old prices in the list → set **Max price age (hours)** to keep only fresh prices.
- Stations without a price → keep **Only stations with a price** on.
- Want diesel or premium → change **Fuel type**.

**Questions or problems?** [Open an issue](https://apify.com/tubetext/gas-prices-scraper/issues) (we read every one). **Need a custom version?** Ask in an issue or [email us](mailto:tubettext@gmail.com) – we build it as a private Actor on Apify.

### Use from Claude, Cursor or any MCP client

Add `https://mcp.apify.com?tools=tubetext/gas-prices-scraper` as a remote MCP server and sign in to Apify (Claude: **Settings → Connectors → Add custom connector**). Claude Code:

```bash
claude mcp add --transport http tubetext "https://mcp.apify.com?tools=tubetext/gas-prices-scraper"
```

Then ask, for example: *"What are the 5 cheapest gas stations near ZIP 60601 right now?"* or *"Compare regular and diesel prices in Toronto and Vancouver today."*

🆓 **Free to try:** Apify's free plan includes $5 of usage every month, no credit card needed – enough for about 5,000 station prices with this tool.

**What you get** – real output from a test run, shortened. One row per gas station (all fuel grades in more columns), plus an area summary of the cheapest stations:

| Station | Address | Regular | Diesel | Updated |
|---|---|---|---|---|
| Mobil | 780 E Schaumburg Rd, Schaumburg, IL | $4.28 | $4.99 | 2026-10-12 07:49 |
| BP | 1100 W STEARNS RD, Bartlett, IL | $4.99 | $5.69 | 2026-10-11 22:14 |
| CITGO | 515 S Cogswell Dr, Silver Lake, WI | $4.07 | $5.63 | 2026-10-12 02:58 |

Get **live gas station prices** for any **ZIP code, city or GPS point in the US and Canada** – **regular, midgrade, premium, diesel, E85 and UNL88**, credit and cash prices with the time each price was reported – plus every station's **brand, address, coordinates, phone, amenities and rating**. Each location also gets an **area summary**: lowest, average and median price, the **5 cheapest stations**, and the city, state and national averages with their trend. Many places in one run, up to 5,000 stations per place. Built for fuel-price and fleet apps, delivery and logistics teams, travel planners, retail fuel analysts and journalists. No login, no API key. **$1 per 1,000 stations.**

### What you get

- ⛽ **Station rows** – name, fuel brand and store brand, address, city, state, ZIP, country, latitude/longitude, phone, open status, rating, amenities (pay at pump, car wash, C-store, restrooms, truck stop…)
- 💲 **All fuel prices per station** – `regularCredit`, `regularCash`, `dieselCredit`, `premiumCredit`… with the time each was reported, and a main `price` for the fuel you choose
- 📊 **Area summary row** (optional) – lowest / highest / average / median price of the stations returned, the 5 cheapest stations, and the city, state and national average for regular with trend (up / down / flat)
- 🌎 **US and Canada** – US prices in dollars per gallon, Canadian prices in cents per liter (`priceUnit`)
- 🕒 **Fresh prices only** (optional) – keep prices reported in the last N hours

### Input example

```json
{
  "locations": ["Chicago, IL", "78701", "41.88,-87.63", "Toronto, ON"],
  "fuelType": "diesel",
  "maxStationsPerLocation": 200,
  "maxPriceAgeHours": 24,
  "includeAreaSummary": true
}
```

### Output example

Real station row (Oct 2026, diesel search, shortened):

```json
{
  "type": "station",
  "input": "41.88,-87.63",
  "fuelType": "diesel",
  "stationId": "10152",
  "name": "BP",
  "brand": "BP",
  "storeBrand": "The PRIDE Stores",
  "address": "1221 S WABASH AVE",
  "city": "Chicago",
  "state": "IL",
  "postalCode": "60605",
  "country": "US",
  "latitude": 41.86681,
  "longitude": -87.62581,
  "price": 6.79,
  "priceUpdatedAt": "2026-10-12T06:16:25.462Z",
  "dieselCredit": 6.79,
  "regularCredit": 5.29,
  "priceUnit": "dollars_per_gallon",
  "amenities": ["Propane", "C-Store", "Car Wash", "Pay At Pump", "Restaurant", "Restrooms", "Air Pump", "ATM"],
  "starRating": 3.8,
  "stationUrl": "https://www.gasbuddy.com/station/10152"
}
```

Area summary row (shortened):

```json
{
  "type": "summary",
  "input": "Chicago, IL",
  "fuelType": "regular",
  "stationsInArea": 2590,
  "stationsAnalyzed": 60,
  "minPrice": 3.49,
  "medianPrice": 3.75,
  "avgPrice": 3.729,
  "cheapestStations": [{"name": "BP", "address": "3001 GRANT ST", "city": "Gary", "price": 3.49}],
  "areaAverages": [
    {"area": "Chicago", "averageRegular": 4.88, "trend": "down"},
    {"area": "Illinois", "averageRegular": 4.69, "trend": "flat"},
    {"area": "United States", "averageRegular": 4.31, "trend": "flat"}
  ]
}
```

Choose the **Stations** or **Area summary** view when exporting to Excel/CSV.

### Pricing

Pay per event:

- **$1.00 per 1,000 stations** (cheaper on higher Apify plans: down to $0.70).
- **$0.002 per area summary row**.
- Start fee only $0.00005 per run. Stations skipped because they have no price, unknown places and failed requests are free.

Example: 20 ZIP codes × 50 stations + summaries ≈ 1,000 × $0.001 + 20 × $0.002 ≈ **$1.04**.

### Tips

- **Cheapest fuel nearby**: pass a ZIP or `lat,lng` with `maxStationsPerLocation` 20–50 and read `cheapestStations` in the summary.
- **Fleet and route planning**: list the ZIP codes or coordinates along a route and set `fuelType` to `diesel`.
- **Price monitoring**: schedule the Actor daily or hourly and compare `price` per `stationId` over time; send drops to Slack, Sheets or your app via Apify integrations, n8n, Make or Zapier.
- **City vs. state vs. national**: `areaAverages` gives GasBuddy's average for each level in one call.

### Ready-made examples

- [Cheapest Gas Prices in Chicago](https://apify.com/tubetext/gas-prices-scraper/examples/cheapest-gas-near-me-chicago)
- [Diesel Prices in Canada](https://apify.com/tubetext/gas-prices-scraper/examples/diesel-prices-canada)

### TubeText Labs tools

**TubeText Labs** builds 29 pay-per-result Apify Actors for video, social and e-commerce data – no login, JSON/CSV/Excel output, and ready for ChatGPT and Claude (Apify MCP), n8n, Make and Zapier. All tools: [apify.com/tubetext](https://apify.com/tubetext)

**Transcripts**

- [YouTube Transcript Scraper](https://apify.com/tubetext/youtube-transcript-fast) – videos, Shorts, playlists and whole channels to text; Whisper AI when there are no captions
- [TikTok Transcript Scraper](https://apify.com/tubetext/tiktok-transcript) – TikTok captions plus Whisper AI, SRT and timestamps
- [Instagram Reels Transcript](https://apify.com/tubetext/instagram-reels-transcript) – reel links or @usernames to text with Whisper AI
- [Podcast & Video Transcript](https://apify.com/tubetext/any-video-podcast-transcript) – podcast RSS / Apple Podcasts, X, Facebook, Loom, Twitch and audio files to text
- [Facebook Video Transcript](https://apify.com/tubetext/facebook-video-transcript) – public Facebook videos and Reels to text with Whisper AI
- [X (Twitter) Video Transcript](https://apify.com/tubetext/twitter-x-video-transcript) – X/Twitter video posts to text with Whisper AI
- [Bilibili Video Transcript](https://apify.com/tubetext/bilibili-video-transcript) – Bilibili (B站) videos to text with Whisper AI, plus optional English summaries
- [Podcast Transcript](https://apify.com/tubetext/podcast-transcript) – podcast RSS feeds and Apple Podcasts episodes to text with Whisper AI

**Video & ad analysis**

- [Video Breakdown AI](https://apify.com/tubetext/video-breakdown-ai) – hook analysis, shot list, cut pacing, products shown and script of any TikTok, Reel or YouTube video
- [Video Ad Analyzer](https://apify.com/tubetext/video-ad-analyzer) – competitors' YouTube video ads by brand or domain (Google Ads Transparency), torn down by AI
- [Meta Ad Library Scraper](https://apify.com/tubetext/meta-ad-library-videos) – Facebook and Instagram ads by brand or keyword: video URLs, images, ad copy, CTA and landing page

**Social, apps & trends**

- [YouTube Channel Analytics](https://apify.com/tubetext/youtube-channel-analytics) – subscribers, recent video performance, Social Blade grade, ranks and estimated earnings
- [Bilibili Scraper](https://apify.com/tubetext/bilibili-scraper) – Bilibili (B站) keyword search, popular board, top-100 ranking, video stats, danmaku text and creator (UP主) followers – no login
- [China Trending Topics](https://apify.com/tubetext/china-trending-topics) – Douyin, Weibo, Baidu, Toutiao and Bilibili hot-search boards in one run, in English – plus an optional AI briefing on why topics trend
- [WeChat Article Scraper](https://apify.com/tubetext/wechat-articles-scraper) – WeChat 公众号 articles by keyword or link: full text, English titles and optional English summaries
- [Google Play Reviews + AI Insights](https://apify.com/tubetext/google-play-reviews-ai) – Android app reviews by star rating, country and language, plus an AI report of complaints and praise
- [Steam Reviews Scraper + AI Insights](https://apify.com/tubetext/steam-reviews-scraper) – Steam game reviews with hours played and votes, review score and current players, plus an AI report of top complaints, praise and feature requests
- [Social Blade Scraper](https://apify.com/tubetext/socialblade-scraper) – Social Blade stats for YouTube, TikTok, Instagram and Twitch creators – grade, ranks, 2-week growth, daily history, earnings estimates and top-100 lists
- [Spotify Play Count Scraper](https://apify.com/tubetext/spotify-play-count-scraper) – play counts for every track of an album, artist or playlist (incl. Top 50 charts), plus monthly listeners, followers, world rank and top cities

**E-commerce & travel**

- [TikTok Shop Product Scraper](https://apify.com/tubetext/tiktok-shop-product-scraper) – US TikTok Shop prices, items sold, stock per SKU and shop stats
- [AliExpress Search Scraper](https://apify.com/tubetext/aliexpress-search-scraper) – AliExpress search results by keyword: price, items sold, rating, shipping, badges
- [Google Hotels Scraper](https://apify.com/tubetext/google-hotels-scraper) – hotel prices for any destination and dates, per booking site and as a 90-day price calendar
- [Taobao & Tmall Product Scraper](https://apify.com/tubetext/taobao-tmall-scraper) – Taobao/Tmall products by Chinese or English keyword, category or URL: CNY prices, shops and seller scores
- [Alibaba & Yiwu Supplier Finder by Image](https://apify.com/tubetext/alibaba-yiwu-image-search) – product photo in, similar Alibaba.com and Yiwu wholesale listings out: price, MOQ, supplier, country and rating
- [Amazon Product Search Scraper](https://apify.com/tubetext/amazon-product-search-scraper) – Amazon search results, Best Sellers lists and product pages: price, rating, reviews, monthly sales signal, badges and specs
- [Google Flights Scraper](https://apify.com/tubetext/google-flights-scraper) – flight prices for any route or multi-city trip, a cheapest-day calendar, price insights and booking options per site
- [Agoda & Booking.com Hotel Reviews + AI](https://apify.com/tubetext/agoda-reviews-scraper) – Agoda hotel reviews plus verified Booking.com reviews shown on Agoda, hotel scores and sub-scores, and an AI report of complaints, praise and action items
- [Gas Prices Scraper (US & Canada)](https://apify.com/tubetext/gas-prices-scraper) *(this tool)* – live gas station prices by ZIP, city or coordinates – regular, premium, diesel, E85 – with an area summary of the cheapest stations
- [Idealo Price Scraper](https://apify.com/tubetext/idealo-price-scraper) – every shop offer for a product on idealo – price, shipping, delivery, shop rating – in Germany, Austria, France, Italy, Spain and the UK, with a summary per market

**Questions or problems?** [Open an issue](https://apify.com/tubetext/gas-prices-scraper/issues) (we read every one). **Need a custom version?** Ask in an issue or [email us](mailto:tubettext@gmail.com) – we build it as a private Actor on Apify.

Found it useful? A short review on this page helps others find it.

Built by **TubeText Labs** · Pay per result. No login. Ready for AI agents.

### FAQ

**Where do the prices come from?** They are crowd-reported by drivers on GasBuddy and read from GasBuddy's public website. This Actor is independent and not affiliated with or endorsed by GasBuddy.

**How fresh are the prices?** Each price has its reported time (`…UpdatedAt`). Popular stations update several times a day; quiet ones can be days old – use *Max price age* to keep fresh prices only.

**Why does a city search include nearby towns?** A city search covers its metro area, as on GasBuddy. Use a ZIP code or coordinates for a tighter area.

**Is any personal data collected?** No. Only station data; phone numbers are the stations' business numbers.

**Can I cap what a run costs?** Yes – set *Maximum cost per run* in the run options. The run stops cleanly when the next station would go over it, and you are never charged more.

# Actor input Schema

## `locations` (type: `array`):

ZIP or postal codes (78701, M5V 2T6), cities ('Chicago, IL', 'Toronto, ON') or 'latitude,longitude' (41.88,-87.63). US and Canada.

## `fuelType` (type: `string`):

Fuel used for the main `price` field, the price filter and the area summary. Every station row still lists all its fuel prices.

## `maxStationsPerLocation` (type: `integer`):

Big metro areas have thousands of stations (Chicago area ≈ 2,600).

## `onlyWithPrice` (type: `boolean`):

Skip stations that have no reported price for the chosen fuel (you are not charged for skipped stations).

## `maxPriceAgeHours` (type: `integer`):

Optional: only prices reported in the last N hours, e.g. 24 for fresh prices only.

## `includeAreaSummary` (type: `boolean`):

One row per location: lowest, highest, average and median price of the stations returned, the 5 cheapest stations, and GasBuddy's city/state/national average for regular with its trend.

## Actor input object example

```json
{
  "locations": [
    "Chicago, IL",
    "78701"
  ],
  "fuelType": "regular",
  "maxStationsPerLocation": 100,
  "onlyWithPrice": true,
  "includeAreaSummary": true
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "locations": [
        "Chicago, IL",
        "78701"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("tubetext/gas-prices-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "locations": [
        "Chicago, IL",
        "78701",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("tubetext/gas-prices-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "locations": [
    "Chicago, IL",
    "78701"
  ]
}' |
apify call tubetext/gas-prices-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tubetext/gas-prices-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/VR7eOI71s1QB5T7hF/builds/HbR257WdgBwiazEm6/openapi.json
