---
title: "GasBuddy API: Stations | Perceptlayer"
description: "Stations from GasBuddy as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/gasbuddy/stations
---

[APIs](https://perceptlayer.com/apis) / [GasBuddy](https://perceptlayer.com/apis/gasbuddy) / Stations

# GasBuddy: Stations

Stations from GasBuddy as JSON. 1 credit per successful call.

GET `/v1/gasbuddy/stations`

## Parameters

Send parameters in the query string.

Required Send `search`, `lat` or `lng`.

Required Send `lat` or `search`.

Required Send `lng` or `search`.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `search` | string | Optional | Up to 100 characters |
| `lat` | number | Optional | Any |
| `lng` | number | Optional | Any |
| `fuel` | integer | Optional | 1, 2, 3, 4, 5, 12 |
| `brand_id` | integer | Optional | Any |
| `maxAge` | integer | Optional | Any |
| `cursor` | string | Optional | Up to 100 characters |

## Example request

GasBuddy

GET /v1/gasbuddy/stations?search=85396&fuel=1 

```
{
  "success": true,
  "data": {
    "countryCode": "US",
    "country_code": "US",
    "displayName": "85396",
    "display_name": "85396",
    "latitude": 33.526973087714,
    "longitude": -112.650762301472,
    "regionCode": "AZ",
    "region_code": "AZ",
    "stations": {
      "count": 2,
      "cursor": {
        "next": "1"
      },
      "results": [
        {
          "id": "187725",
          "name": "Shell",
          "fuels": [
            "regular_gas",
            "midgrade_gas",
            "premium_gas"
          ],
          "priceUnit": "dollars_per_gallon",
          "price_unit": "dollars_per_gallon",
          "currency": "USD",
          "latitude": 33.465405037595,
          "longitude": -112.505053281784,
          "starRating": 4.5,
          "star_rating": 4.5,
          "ratingsCount": 235,
          "ratings_count": 235,
          "address": {
            "line1": "1520 N Verrado Way",
            "locality": "Buckeye",
            "region": "AZ",
            "postalCode": "85396",
            "postal_code": "85396",
            "country": "US"
          },
          "brands": [
            "…"
          ],
          "prices": [
            "…"
          ]
        },
        {
          "id": "95678",
          "name": "Shell",
          "fuels": [
            "regular_gas",
            "midgrade_gas",
            "premium_gas"
          ],
          "priceUnit": "dollars_per_gallon",
          "price_unit": "dollars_per_gallon",
          "currency": "USD",
          "latitude": 33.661230491569,
          "longitude": -112.615829184651,
          "starRating": 4.6,
          "star_rating": 4.6,
          "ratingsCount": 243,
          "ratings_count": 243,
          "address": {
            "line1": "19491 N Canyon Springs Blvd",
            "locality": "Buckeye",
            "region": "AZ",
            "postalCode": "85396-2212",
            "postal_code": "85396-2212",
            "country": "US"
          },
          "brands": [
            "…"
          ],
          "prices": [
            "…"
          ]
        }
      ]
    },
    "trends": [
      {
        "areaName": "Arizona",
        "area_name": "Arizona",
        "country": "US",
        "today": 3.97,
        "todayLow": 3.11,
        "today_low": 3.11,
        "trend": 0
      },
      {
        "areaName": "United States",
        "area_name": "United States",
        "country": "US",
        "today": 3.75,
        "todayLow": 0,
        "today_low": 0,
        "trend": 0
      }
    ],
    "currency": "USD"
  },
  "meta": {
    "endpoint_family": "stations",
    "duration_ms": 1963,
    "request_id": "req_5acf55335dad4498958310d1642fbac9",
    "credits_charged": 1,
    "credits_remaining": 992
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded from our API and shortened.

[Run this endpoint in the playground](https://perceptlayer.com/apis/gasbuddy?try=stations#playground) with your own parameters. 1 credit per successful call; failed calls are free.

## Response fields

`data` has these 11 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

| Field | Type |
| --- | --- |
| `countryCode` | string |
| `country_code` | string |
| `displayName` | string |
| `display_name` | string |
| `latitude` | number |
| `longitude` | number |
| `regionCode` | string |
| `region_code` | string |
| `stations` | object |
| `trends` | object\[\] |
| `currency` | string |
