Go to example tasks

Fetch gas prices in New York by API

Fetch live gas prices in New York 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):New York, NY
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 New York 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 New York 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 New York 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 New York by API" task via API.

Image

Integrate "Fetch gas prices in New York by API" into your workflow

Connect "Fetch gas prices in New York 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

Alongside price_cash and price_credit for regular gas, every New York row the search New York, NY returns carries starRating and ratingsCount, plus name, address_line1 and distance. Download the dataset as JSON, CSV or Excel.

The published input is search New York, NY with fuel 1 for regular. Replace search with any New York ZIP code, which resolves more reliably than a city name, or with a GPS pair copied from a map.

Call the task's run endpoint on the Apify API, or use apify-client for Python or Node with search New York, NY and fuel 1, then read the New York dataset back as JSON or CSV. The README's Python quickstart is about ten lines.

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 New York, NY, so a week of runs becomes your own New York regular gas price series.

Add https://mcp.apify.com/?tools=actors,docs,johnvc/fuelprices as an MCP server in Claude or any other MCP client, then ask for regular gas around New York, NY. The agent reads the New York station rows back in the chat.

An empty New York, NY run is free. Billing is pay per result, so only the New York 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 New York, NY; the Actor stores no history. Run it on a schedule and the stacked datasets become your series. Diesel nearby is Fetch diesel prices in New York by MCP.