Go to example tasks

Fetch gas prices in Los Angeles, California by API

Fetch live gas prices in Los Angeles, 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):Los Angeles, 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 Los Angeles, 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 Los Angeles, 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 Los Angeles, 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 Los Angeles, California by API" task via API.

Image

Integrate "Fetch gas prices in Los Angeles, California by API" into your workflow

Connect "Fetch gas prices in Los Angeles, 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

One row per station near Los Angeles, California (search Los Angeles, CA) with name, address_line1, address_postalCode, distance, price_cash and price_credit for regular gas, each price with its postedTime. Export as JSON, CSV or Excel.

Fetch gas prices in Los Angeles, California by API runs with search Los Angeles, CA and fuel 1, the regular grade. Only search is required. lang stays en, the one supported language, and output_file names the CSV, say los_angeles_regular.csv.

The task is callable from the Apify API or apify-client: pass search Los Angeles, CA and fuel 1, wait for the run, and read the Los Angeles, California station rows as JSON or CSV. Once your token is set, nothing in the Console needs clicking.

Open the task in the Apify Console, choose Actions, then Schedule, and set 0 7 * * * for 7 AM daily. Each run adds a dated dataset for Los Angeles, CA, so a week of runs becomes your own Los Angeles, California regular gas price series.

Use https://mcp.apify.com/?tools=actors,docs,johnvc/fuelprices in Claude or any other MCP client. The FuelPrices Actor then appears as a tool the agent calls with search Los Angeles, CA for regular gas around Los Angeles.

An empty Los Angeles, CA run is free. Billing is pay per result, so only the Los Angeles station records actually pushed to the dataset are charged, and setup costs nothing. The current rate and the free Apify tier are on the Actor page.

Only live prices with their postedTime come back for Los Angeles, CA; the Actor stores no history. Run it on a schedule and the stacked datasets become your series. Diesel nearby is Fetch diesel prices in Los Angeles, California by MCP.