{
  "openapi": "3.1.0",
  "info": {
    "title": "Fuel Stations API",
    "version": "1.0.0",
    "description": "14,070 US and Canadian stations for E85, propane, biodiesel, CNG, renewable diesel, hydrogen and LNG.\n\nEvery non-electric alternative-fuel station in the US and Canada, from the official DOE/NREL Alternative Fuels Data Center: 14,070 stations across seven fuels — E85 ethanol (5,098), propane/LPG (3,691), biodiesel B20+ (2,304), compressed natural gas (1,512), renewable diesel R20+ (1,255), hydrogen (105) and LNG (105). Each station carries name, full address, coordinates, phone, access (public/private) and hours, payment cards accepted, facility and owner type, operational status (available/planned/temporarily down) and fuel-specific details — CNG fill pressures, hydrogen 350/700-bar standards and retail status, E85 blender-pump availability, biodiesel blend levels. Search by fuel, state, city, ZIP or name; roll up counts per fuel or per state; find stations near a coordinate with the radius endpoint (distance-sorted, km). Data refreshes daily from the AFDC change feed. The perfect companion to our EV Chargers API, which covers the electric side of the same federal database. Built for fleet routing, fuel-finder apps, alt-fuel vehicle tooling and infrastructure analytics. Self-hosted dataset — no third-party calls at request time.",
    "contact": {
      "name": "Data and APIs",
      "url": "https://dataandapis.com/contact"
    },
    "termsOfService": "https://dataandapis.com/terms-of-service",
    "license": {
      "name": "Data and APIs Terms of Service",
      "url": "https://dataandapis.com/terms-of-service"
    },
    "x-logo": {
      "url": "https://dataandapis.com/images/fuel-stations.webp"
    }
  },
  "externalDocs": {
    "description": "Documentation, live tester and pricing",
    "url": "https://dataandapis.com/apis/fuel-stations"
  },
  "servers": [
    {
      "url": "https://api-fuel-stations.dataandapis.com"
    }
  ],
  "tags": [
    {
      "name": "Transportation",
      "description": "Fuel Stations API belongs to the Transportation category of the Data and APIs catalog."
    }
  ],
  "paths": {
    "/v1/sources": {
      "get": {
        "operationId": "dataSources",
        "summary": "Data Sources",
        "description": "Data Sources endpoint of the Fuel Stations API. Costs 1 token per call.",
        "externalDocs": {
          "url": "https://dataandapis.com/apis/fuel-stations/data-sources"
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "count": 1,
                  "sources": [
                    {
                      "slug": "afdc-fuel-stations",
                      "name": "DOE/NREL Alternative Fuels Data Center station database (non-electric fuels)",
                      "publisher": "US Department of Energy / NREL",
                      "licence": "US Government work - public domain",
                      "source_url": "https://afdc.energy.gov/stations",
                      "cadence": "daily",
                      "record_count": 14070,
                      "retrieved_at": "2026-08-31"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key"
          },
          "402": {
            "description": "Subscription past due; the response carries a payment_url"
          },
          "429": {
            "description": "Monthly token allowance exhausted"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1/stations/fuels": {
      "get": {
        "operationId": "fuelsRollup",
        "summary": "Fuels Rollup",
        "description": "Fuels Rollup endpoint of the Fuel Stations API. Costs 1 token per call.",
        "externalDocs": {
          "url": "https://dataandapis.com/apis/fuel-stations/fuels-rollup"
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "count": 7,
                  "fuels": [
                    {
                      "fuel_type": "E85",
                      "fuel_name": "Ethanol (E85)",
                      "stations": 5098
                    },
                    {
                      "fuel_type": "LPG",
                      "fuel_name": "Propane (LPG)",
                      "stations": 3691
                    },
                    {
                      "fuel_type": "BD",
                      "fuel_name": "Biodiesel (B20+)",
                      "stations": 2304
                    },
                    {
                      "fuel_type": "CNG",
                      "fuel_name": "Compressed Natural Gas",
                      "stations": 1512
                    },
                    {
                      "fuel_type": "RD",
                      "fuel_name": "Renewable Diesel (R20+)",
                      "stations": 1255
                    },
                    {
                      "fuel_type": "HY",
                      "fuel_name": "Hydrogen",
                      "stations": 105
                    },
                    {
                      "fuel_type": "LNG",
                      "fuel_name": "Liquefied Natural Gas",
                      "stations": 105
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key"
          },
          "402": {
            "description": "Subscription past due; the response carries a payment_url"
          },
          "429": {
            "description": "Monthly token allowance exhausted"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1/stations/{id}": {
      "get": {
        "operationId": "getStationById",
        "summary": "Get Station By ID",
        "description": "Get Station By ID endpoint of the Fuel Stations API. Costs 1 token per call.",
        "externalDocs": {
          "url": "https://dataandapis.com/apis/fuel-stations/get-station-by-id"
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "53637"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "id": 53637,
                  "fuel_type": "CNG",
                  "fuel_name": "Compressed Natural Gas",
                  "station_name": "Chevron CNG Station 387935",
                  "city": "Amarillo",
                  "state": "TX",
                  "country": "US",
                  "status": "E",
                  "access": "public",
                  "latitude": 35.18998,
                  "longitude": -101.706,
                  "address": {
                    "street": "2225 S Pullman Rd",
                    "city": "Amarillo",
                    "state": "TX",
                    "zip": "79118",
                    "country": "US"
                  },
                  "phone": "877-872-3966",
                  "access_days_time": "24 hours daily",
                  "cards_accepted": "A D FuelMan M V Wright_Exp",
                  "facility_type": "STANDALONE_STATION",
                  "owner_type_code": "P",
                  "maximum_vehicle_class": "HD",
                  "fuel_details": {
                    "cng_dispenser_num": 1,
                    "cng_fill_type_code": "Q",
                    "cng_has_rng": true,
                    "cng_psi": "3600",
                    "cng_renewable_source": "NONE",
                    "cng_total_compression": 2800,
                    "cng_vehicle_class": "HD",
                    "ng_fill_type_code": "Q",
                    "ng_psi": "3600",
                    "ng_vehicle_class": "HD"
                  },
                  "open_date": "2014-07-15",
                  "date_last_confirmed": "2026-03-12",
                  "source_updated_at": "2026-03-12T19:53:41Z"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key"
          },
          "402": {
            "description": "Subscription past due; the response carries a payment_url"
          },
          "429": {
            "description": "Monthly token allowance exhausted"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1/stations/nearby": {
      "get": {
        "operationId": "nearbyStations",
        "summary": "Nearby Stations",
        "description": "Nearby Stations endpoint of the Fuel Stations API. Costs 1 token per call.",
        "externalDocs": {
          "url": "https://dataandapis.com/apis/fuel-stations/nearby-stations"
        },
        "parameters": [
          {
            "name": "fuel",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "E85"
          },
          {
            "name": "lat",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "34.05"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "20"
          },
          {
            "name": "lon",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "-118.24"
          },
          {
            "name": "radius",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "25"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "lat": 34.05,
                  "lon": -118.24,
                  "radius_km": 25,
                  "fuel": "E85",
                  "count": 3,
                  "results": [
                    {
                      "id": 240722,
                      "fuel_type": "E85",
                      "fuel_name": "Ethanol (E85)",
                      "station_name": "76",
                      "city": "Los Angeles",
                      "state": "CA",
                      "country": "US",
                      "status": "E",
                      "access": "public",
                      "latitude": 34.027082,
                      "longitude": -118.238742,
                      "distance_km": 2.6
                    },
                    {
                      "id": 349916,
                      "fuel_type": "E85",
                      "fuel_name": "Ethanol (E85)",
                      "station_name": "Pearson Fuels - Chevron",
                      "city": "Los Angeles",
                      "state": "CA",
                      "country": "US",
                      "status": "E",
                      "access": "public",
                      "latitude": 34.06113,
                      "longitude": -118.21429,
                      "distance_km": 2.7
                    },
                    {
                      "id": 357417,
                      "fuel_type": "E85",
                      "fuel_name": "Ethanol (E85)",
                      "station_name": "Pearson Fuels - Chevron",
                      "city": "Los Angeles",
                      "state": "CA",
                      "country": "US",
                      "status": "E",
                      "access": "public",
                      "latitude": 34.03374,
                      "longitude": -118.2622,
                      "distance_km": 2.7
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key"
          },
          "402": {
            "description": "Subscription past due; the response carries a payment_url"
          },
          "429": {
            "description": "Monthly token allowance exhausted"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1/stations/random": {
      "get": {
        "operationId": "randomStations",
        "summary": "Random Stations",
        "description": "Random Stations endpoint of the Fuel Stations API. Costs 1 token per call.",
        "externalDocs": {
          "url": "https://dataandapis.com/apis/fuel-stations/random-stations"
        },
        "parameters": [
          {
            "name": "amount",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "3"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "count": 1,
                  "results": [
                    {
                      "id": 155781,
                      "fuel_type": "BD",
                      "fuel_name": "Biodiesel (B20+)",
                      "station_name": "Casey's",
                      "city": "Litchfield",
                      "state": "MN",
                      "country": "US",
                      "status": "E",
                      "access": "public",
                      "latitude": 45.13259,
                      "longitude": -94.528796,
                      "address": {
                        "street": "605 N Sibley Ave",
                        "city": "Litchfield",
                        "state": "MN",
                        "zip": "55355",
                        "country": "US"
                      },
                      "phone": "320-693-9029",
                      "access_days_time": "3am-11am daily",
                      "cards_accepted": "A Cash Comdata D Debit FleetOne M TCH Tchek V",
                      "facility_type": "CONVENIENCE_STORE",
                      "owner_type_code": "P",
                      "maximum_vehicle_class": null,
                      "fuel_details": {
                        "bd_blends": "B20 in summer, B5 in winter"
                      },
                      "open_date": "2020-04-29",
                      "date_last_confirmed": "2026-04-14",
                      "source_updated_at": "2026-04-14T21:00:09Z"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key"
          },
          "402": {
            "description": "Subscription past due; the response carries a payment_url"
          },
          "429": {
            "description": "Monthly token allowance exhausted"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1/stations": {
      "get": {
        "operationId": "searchStations",
        "summary": "Search Stations",
        "description": "Search Stations endpoint of the Fuel Stations API. Costs 1 token per call.",
        "externalDocs": {
          "url": "https://dataandapis.com/apis/fuel-stations/search-stations"
        },
        "parameters": [
          {
            "name": "access",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "public"
          },
          {
            "name": "city",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "Los Angeles"
          },
          {
            "name": "country",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "US"
          },
          {
            "name": "fuel",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "E85"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "20"
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "1"
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "Chevron"
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "CA"
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "E"
          },
          {
            "name": "zip",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "90012"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "total": 660,
                  "page": 1,
                  "limit": 2,
                  "count": 2,
                  "results": [
                    {
                      "id": 203060,
                      "fuel_type": "E85",
                      "fuel_name": "Ethanol (E85)",
                      "station_name": "Shell",
                      "city": "Agoura Hills",
                      "state": "CA",
                      "country": "US",
                      "status": "E",
                      "access": "public",
                      "latitude": 34.147162,
                      "longitude": -118.760486
                    },
                    {
                      "id": 237110,
                      "fuel_type": "E85",
                      "fuel_name": "Ethanol (E85)",
                      "station_name": "76",
                      "city": "Alameda",
                      "state": "CA",
                      "country": "US",
                      "status": "E",
                      "access": "public",
                      "latitude": 37.77696,
                      "longitude": -122.2765
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key"
          },
          "402": {
            "description": "Subscription past due; the response carries a payment_url"
          },
          "429": {
            "description": "Monthly token allowance exhausted"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1/stations/states": {
      "get": {
        "operationId": "statesRollup",
        "summary": "States Rollup",
        "description": "States Rollup endpoint of the Fuel Stations API. Costs 1 token per call.",
        "externalDocs": {
          "url": "https://dataandapis.com/apis/fuel-stations/states-rollup"
        },
        "parameters": [
          {
            "name": "fuel",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "CNG"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "fuel": "CNG",
                  "count": 54,
                  "states": [
                    {
                      "state": "CA",
                      "stations": 325
                    },
                    {
                      "state": "OK",
                      "stations": 98
                    },
                    {
                      "state": "TX",
                      "stations": 90
                    },
                    {
                      "state": "PA",
                      "stations": 69
                    },
                    {
                      "state": "FL",
                      "stations": 66
                    },
                    {
                      "state": "GA",
                      "stations": 51
                    },
                    {
                      "state": "OH",
                      "stations": 45
                    },
                    {
                      "state": "WI",
                      "stations": 44
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key"
          },
          "402": {
            "description": "Subscription past due; the response carries a payment_url"
          },
          "429": {
            "description": "Monthly token allowance exhausted"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Api-Key",
        "description": "Create a free key at https://dataandapis.com/sign-up. 500 tokens a month on the Free plan; this API costs 1 token per call."
      }
    }
  },
  "security": [
    {
      "ApiKey": []
    }
  ]
}