Go to example tasks

Fetch gas prices in San Diego, California by API

Fetch live gas prices in San Diego, California from a REST API: station name, address, distance, cash and credit prices. Clean JSON, pay per result.

Try for free
FuelPrices | Pay Per Result, Easy to Use, No Cookies
FuelPrices | Pay Per Result, Easy to Use, No Cookiesjohnvc/fuelprices
ID
Station
Address
City
+10 fields
Text
Number
Boolean
List
Object

Input

Search Location(required):San Diego, CA
Fuel Type:1

Output fields

ID
Station
Address
City
State
ZIP
Distance (mi)
Price Unit
Cash Price
Cash Posted
Credit Price
Credit Posted
Ratings
Stars

How it works

Sign up on Apify or log in

The FuelPrices | Pay Per Result, Easy to Use, No Cookies Actor is ready to run with the inputs already set for "Fetch gas prices in San Diego, California by API". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Fetch gas prices in San Diego, California by API" task

The FuelPrices | Pay Per Result, Easy to Use, No Cookies Actor will start running based on the input automatically. You can also change all the input fields, like search location and fuel type, to match your specific use case.

Receive the "Fetch gas prices in San Diego, California by API" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as ID, station, address, and more.

Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "Fetch gas prices in San Diego, California by API" task via API.

Image

Integrate "Fetch gas prices in San Diego, California by API" into your workflow

Connect "Fetch gas prices in San Diego, California by API" with 100+ integrations, or run it via API or MCP.

Webhook

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay

Frequently asked questions

Each San Diego, California station found for search San Diego, CA is a row with name, address_locality, address_region, distance, starRating, ratingsCount, price_cash and price_credit. The run writes a CSV; the dataset exports as JSON.

search is the one mandatory field, set here to San Diego, CA. Fetch gas prices in San Diego, California by API also fixes fuel at 1 for regular; maxAge, lang and output_file are optional and can stay at their defaults.

Use apify-client in Python or Node: run the task with search San Diego, CA, then iterate its default dataset. Each item is a San Diego, California station with name, distance, price_cash and price_credit, ready for a database or a dashboard.

Schedule Fetch gas prices in San Diego, California by API with 0 9 * * 1 for Mondays at 9 AM via Actions, then Schedule. Map name, price_credit and price_cash for San Diego, CA into a sheet with the Apify app in Make or Zapier.

Register https://mcp.apify.com/?tools=actors,docs,johnvc/fuelprices as an MCP server, then ask in plain language for regular gas in San Diego, California. The agent only has to supply search, here San Diego, CA; fuel defaults to 1.

Only the station records returned for San Diego, CA are billed, so a typical run of a couple of dozen San Diego stations costs very little and an empty run costs nothing. The FuelPrices Actor page lists the current rate and the free Apify tier.

Every run of Fetch gas prices in San Diego, California by API writes a CSV for San Diego, CA, named by output_file or a timestamp, and the dataset exports to Excel too. Fetch diesel prices in San Diego, California by MCP does the same.