Discover/GasBuddy API
live

GasBuddy APIgasbuddy.com

Search gas station prices by area and fuel type, then fetch detailed station info including amenities, ratings, and reviews via the GasBuddy API.

This API takes change requests — .
Endpoint health
verified 10h ago
search_gas_prices
get_station
2/2 passing latest checkself-healing
Endpoints
2
Updated
10h ago

What is the GasBuddy API?

The GasBuddy API covers 2 endpoints for retrieving real-time gas price data across US locations. Use search_gas_prices to get up to 20 stations sorted by price for any city and fuel type, then drill into a specific station with get_station to retrieve fuel grades, amenities, coordinates, customer reviews, and phone number — all keyed by GasBuddy's numeric station ID.

This call costs2 credits / call— charged only on success
Try it
City or locality name (e.g. 'austin', 'los angeles'). Spaces are converted to hyphens internally.
Type of fuel to search prices for.
US state code, two uppercase letters (e.g. 'TX', 'CA').
api.parse.bot/scraper/a71391a0-8e09-4599-ba13-eb2cc981e986/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/a71391a0-8e09-4599-ba13-eb2cc981e986/search_gas_prices?area=austin&fuel_type=regular&region_code=TX' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace gasbuddy-com-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

"""Walkthrough: GasBuddy SDK — bounded, re-runnable; every call capped."""
from parse_apis.gasbuddy_com_api import GasBuddy, FuelType, StationNotFound

client = GasBuddy()

# Search for cheap regular gas in Austin, TX
for station in client.station_summaries.search(area="austin", region_code="TX", fuel_type=FuelType.REGULAR, limit=3):
    print(station.name, station.brand, station.prices[0].credit_price)

# Drill down into the first result for full details
hit = client.station_summaries.search(area="austin", region_code="TX", limit=1).first()
if hit:
    full = hit.details()
    print(full.name, full.star_rating, full.amenities[:3])
    for price in full.prices:
        print(price.fuel_product, price.cash_price, price.credit_price)

# Fetch a station directly by ID with error handling
try:
    station = client.stations.get(station_id="215189")
    print(station.name, station.address.locality, station.address.region)
except StationNotFound as e:
    print(f"Station not found: {e.station_id}")

print("exercised: station_summaries.search / StationSummary.details / stations.get")
All endpoints · 2 totalmissing one? ·

Search gas stations and their prices in a given area. Returns up to 20 stations sorted by price, each with current fuel prices, address, brand, and coordinates. Results are a single page of the top stations for the area.

Input
ParamTypeDescription
arearequiredstringCity or locality name (e.g. 'austin', 'los angeles'). Spaces are converted to hyphens internally.
fuel_typestringType of fuel to search prices for.
region_coderequiredstringUS state code, two uppercase letters (e.g. 'TX', 'CA').
Response
{
  "type": "object",
  "fields": {
    "stations": "array of station objects with prices",
    "fuel_type": "string — the fuel type queried",
    "display_name": "string — the resolved area display name"
  },
  "sample": {
    "data": {
      "stations": [
        {
          "id": "215189",
          "name": "Minimax Travel Center",
          "brand": "Shell",
          "prices": [
            {
              "cash_price": 3.28,
              "posted_time": "2026-07-27T14:39:17.690Z",
              "credit_price": 3.48,
              "fuel_product": "regular_gas"
            }
          ],
          "address": {
            "line1": "13320 US-290 Unit #100",
            "region": "TX",
            "country": "US",
            "locality": "Manor",
            "postal_code": "78653"
          },
          "latitude": 30.350422403814,
          "longitude": -97.517038272821
        }
      ],
      "fuel_type": "regular",
      "display_name": "Austin"
    },
    "status": "success"
  }
}

About the GasBuddy API

Search Gas Prices by Area

search_gas_prices accepts a area string (city or locality name) and a two-letter region_code (US state abbreviation such as TX or CA), with an optional fuel_type filter. It returns up to 20 station objects sorted by price, each carrying current fuel prices, brand name, address, and coordinates. The display_name field confirms how GasBuddy resolved the location, which is useful when input names are ambiguous. Results represent a single page — there is no pagination parameter.

Station Detail

get_station takes a numeric station_id obtained from a search_gas_prices response and returns a full station record. The response includes a structured address object (line1, line2, locality, region, postal_code, country), a prices array covering all available fuel grades, a fuels array listing supported fuel types, an amenities array, a reviews array with customer text, aggregate ratings, and latitude/longitude coordinates. The brand field may be null for independent stations.

Data Scope and Identifiers

Station IDs are GasBuddy-specific numeric strings (e.g. 215189). They are stable references that can be stored and reused for subsequent get_station calls without re-running a search. Coverage is limited to US locations — the region_code parameter accepts only US state codes. Price freshness reflects community-reported data as aggregated by GasBuddy.

Reliability & maintenanceVerified

The GasBuddy API is a managed, monitored endpoint for gasbuddy.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when gasbuddy.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official gasbuddy.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
10h ago
Latest check
2/2 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Display a ranked list of cheapest nearby stations for a given city and fuel type in a mobile app
  • Monitor regular unleaded or diesel price trends across multiple Texas cities using search_gas_prices with region_code TX
  • Build a route-planning tool that surfaces low-cost stations along a highway corridor by querying multiple area/region_code pairs
  • Populate a station detail page with amenities, phone number, and customer reviews from get_station
  • Aggregate and compare fuel prices across competing brands in a metropolitan area
  • Alert users when prices at a saved station_id drop below a threshold by polling get_station periodically
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does GasBuddy offer an official developer API?+
GasBuddy does not publish a public developer API or documented developer portal for third-party access to its gas price data.
What does search_gas_prices return and how many stations does it cover?+
It returns up to 20 station objects for the queried area, sorted by price. Each object includes the station's current fuel prices, brand, address, and coordinates. The fuel_type parameter lets you filter results to a specific grade (e.g. regular, diesel). Results are a single page with no pagination — you cannot request additional stations beyond the top 20.
Does the API return historical price data or price trends over time?+
No historical price data is exposed. Both endpoints return current prices only — search_gas_prices shows the latest reported price per station, and get_station returns the current prices array for all fuel grades at that location. You can fork this API on Parse and revise it to add an endpoint that stores and surfaces historical snapshots if your use case requires trend data.
Is coverage limited to the United States?+
Yes. The region_code parameter accepts two-letter US state codes, so search_gas_prices is scoped to US locations only. GasBuddy does operate in Canada, but that coverage is not currently included in this API. You can fork it on Parse and revise to add Canadian province codes and the corresponding area queries.
How do I get a station_id to use with get_station?+
Station IDs are returned as part of each station object in a search_gas_prices response. They are numeric strings (e.g. '215189') and are stable GasBuddy identifiers, so you can store them and call get_station later without repeating the search.
Page content last updated . Spec covers 2 endpoints from gasbuddy.com.
Related APIs in Maps GeoSee all →
petrolspy.com.au API
Find the cheapest fuel prices across Australian petrol stations in real-time by searching your area, comparing prices by fuel type, and viewing detailed station information. Quickly locate the best deals near you by specifying your geographic region and fuel preferences.
gasprices.aaa.com API
Access national, state, and metro-level gas prices from AAA in real time. Compare fuel costs across regions, view historical price trends, check EV charging rates, and browse the latest AAA fuel market news.
ocu.org API
Find real-time gas prices and locations at stations across Spain by searching your address or postal code, with filtering options by fuel type, brand, and distance radius. Compare prices per liter, calculate total tank costs, and get detailed station information including coordinates and price ratings to find the best deals near you.
fuelwatch.gov.sg API
Find fuel prices across Western Australia by searching stations by suburb, comparing daily and monthly price trends, and viewing detailed station information. Track fuel price movements across different regions and fuel types to identify the cheapest options nearby.
cne.gob.mx API
Track current gasoline and diesel prices across all Mexican gas stations by state and municipality, helping you find the best fuel deals in real time. Compare Regular and Premium gasoline options alongside diesel prices at specific locations to optimize your fuel spending.
plugshare.com API
Search for EV charging stations worldwide by location and radius. Retrieve real-time availability, connector types, user reviews, and amenity details for any station. Filter by residential or commercial property type to find chargers at apartment complexes, parking facilities, and more.
airnav.com API
Find current aviation fuel prices at any US airport, including pricing for 100LL, Jet A, UL94, SAF, and Mogas from Fixed Base Operators along with their service type and contact details. Compare fuel availability and costs across multiple FBOs at your destination airport to plan your flight operations.
gassaferegister.co.uk API
Search for Gas Safe registered businesses and engineers across the UK by city or postcode, then retrieve detailed information about their qualifications and services. Find certified gas engineers in your area and verify their registration status to ensure safe, compliant work on your gas appliances.