# Gas Price Finder by ZIP Code (`bowmark-ai/gas-price-finder`) Actor

Current gas prices near any US ZIP code, cheapest first. Give ZIP codes and a fuel grade, get nearby stations with brand, address, price per gallon and how recently it was reported.

- **URL**: https://apify.com/bowmark-ai/gas-price-finder.md
- **Developed by:** [Bowmark AI](https://apify.com/bowmark-ai) (community)
- **Categories:** Travel, MCP servers, Agents
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $18.00 / 1,000 zip code searcheds

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

### What does Gas Price Finder do?

Gas Price Finder tells you **where gas is cheapest near a US ZIP code, right now**. Give it one ZIP code or hundreds and a fuel grade. For each ZIP you get the cheapest nearby station on top (brand, address, price per gallon, and how long ago a driver reported it), plus every nearby station in price order.

One flat price per ZIP code, no start fee, and it also runs as an MCP server so an AI agent can answer "how much is gas near 94103?" in one call.

### Why use it?

- **Trip and route planning.** Check the ZIP codes along a route and fill up where it is cheapest.
- **Fleet and delivery costs.** Track regular or diesel prices near your depots every day, in a table you can export.
- **AI agents.** Connect it as an MCP server and let an assistant answer local gas price questions with real, current numbers.

### Where the prices come from

1. **Driver-reported station prices.** For each ZIP code it reads the current prices drivers have reported for nearby stations, for the grade you choose.
2. **Sorted cheapest first.** Stations with no recent report are kept at the end of the list, with no price, so you can see they exist.

### Input

| Field | Required | Description |
|---|---|---|
| `zipCodes` | Yes | US ZIP codes, like `94103`. ZIP+4 (`94103-1234`) is fine. Up to 500 per run. |
| `fuelType` | No | `regular` (default), `midgrade`, `premium` or `diesel`. |
| `maxConcurrency` | No | ZIP codes searched at once, 1 to 8. Default `4`. |

Example input:

```json
{ "zipCodes": ["78701", "94103", "60614"], "fuelType": "regular" }
```

### Output

One dataset row per ZIP code. Download it as JSON, CSV, Excel or HTML, or read it through the Apify API.

```json
{
  "zip": "78701",
  "fuelType": "regular",
  "status": "found",
  "cheapestPrice": 3.59,
  "cheapestBrand": "7-Eleven",
  "cheapestAddress": "408 W 15th St, Austin, TX",
  "cheapestReportedAgo": "21 Hours Ago",
  "stationsWithPrice": 3,
  "stations": [
    { "brand": "7-Eleven", "address": "408 W 15th St, Austin, TX", "price": 3.59, "reportedAgo": "21 Hours Ago", "url": "https://www.gasbuddy.com/station/24536" },
    { "brand": "Valero", "address": "900 N IH-35, Austin, TX", "price": 3.69, "reportedAgo": "22 Hours Ago", "url": "https://www.gasbuddy.com/station/27703" }
  ],
  "warnings": [],
  "error": null
}
```

`status` is `found`, `not_found` or `error`. `not_found` means no driver has reported a recent price for that grade near that ZIP. It happens most in dense downtown ZIPs with few stations (central Manhattan, for example) and for midgrade or premium. Try a neighbouring ZIP or the regular grade.

### Pricing

**$0.018 per ZIP code searched**, with no monthly fee and no start fee. That is $18 per 1,000 ZIP codes.

- You pay the same whether or not a price is found, because the search does the same work either way.
- A ZIP code that fails with an error is not charged.
- Set a spending limit on the run and the Actor stops cleanly when it reaches it.
- On Apify's free plan, each run processes the first 10 ZIP codes (10 tool calls per MCP session). Any paid Apify plan removes the limit.

### Use it as an MCP server

This Actor also runs as an MCP server with one tool, `find_gas_prices`. Point any MCP client (Claude, Cursor, ChatGPT, your own agent) at:

```
https://bowmark-ai--gas-price-finder.apify.actor/mcp
```

with your Apify API token as a bearer token. Each tool call is billed like one ZIP code in a normal run.

### Limits and good practice

- It reads only **public** prices. It never signs in anywhere and never changes anything.
- **US ZIP codes only.**
- Prices are reported by drivers, so each one carries `reportedAgo`. A price from minutes ago is more reliable than one from a day ago.
- One grade per run. To compare regular and diesel, run it twice.

### Questions or a wrong result?

Open an issue on the **Issues** tab with the ZIP code you searched and what you expected. We read every one.

# Actor input Schema

## `zipCodes` (type: `array`):

US ZIP codes to check, up to 500 per run (10 on Apify's free plan). Five digits, like 94103. Each ZIP returns up to 20 nearby stations. Suburban and highway ZIPs find more stations than dense downtown ones.

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

Which price to look up.

## `maxConcurrency` (type: `integer`):

How many ZIP codes are looked up in parallel.

## Actor input object example

```json
{
  "zipCodes": [
    "78701"
  ],
  "fuelType": "regular",
  "maxConcurrency": 4
}
```

# Actor output Schema

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

One row per ZIP code: the cheapest nearby station, its price and address, and every nearby station with a reported price.

# 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 = {
    "zipCodes": [
        "78701"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("bowmark-ai/gas-price-finder").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 = { "zipCodes": ["78701"] }

# Run the Actor and wait for it to finish
run = client.actor("bowmark-ai/gas-price-finder").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 '{
  "zipCodes": [
    "78701"
  ]
}' |
apify call bowmark-ai/gas-price-finder --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bowmark-ai/gas-price-finder"
        }
    }
}
```

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/E24t3xjdgIo8b14hi/builds/JpH6bPiY4xR7IVryQ/openapi.json
