---
title: "Gas Prices"
method: GET
path: "/gas-prices"
tags: ["Gas Prices"]
---

# Gas Prices

`GET /gas-prices`

## Request

- Base URL: `https://api.dataporium.io`
- URL: `https://api.dataporium.io/gas-prices`
- Auth: API key in query parameter `apikey`

Weekly retail pump prices in US dollars per gallon, taxes included, from the official US government weekly survey: regular, midgrade and premium gasoline, all grades together, and diesel, for the United States, its fuel regions, 9 states (CA, CO, FL, MA, MN, NY, OH, TX, WA) and 10 cities (Boston, Chicago, Cleveland, Denver, Houston, Los Angeles, Miami, New York City, San Francisco, Seattle).

All filters are optional. The answer is {total, limit, offset, sort, order, unit, as_of, rows, about}; as_of is the newest survey week.

## Query parameters

- `area` string
- `area_type` string
- `state` string
- `product` string
- `date_from` string
- `date_to` string
- `latest` boolean
- `sort` string
- `order` string
- `limit` integer
- `offset` integer

## Response `200`

Successful response (JSON).

- object

## Other responses

- `401`: No API key in the request.
- `403`: The API key is not valid or has expired.

---

[API](https://skmtc.dev/dataporium/apis/dataporium-data-api.md) · [All operations](https://skmtc.dev/dataporium/apis/dataporium-data-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dataporium/apis/dataporium-data-api/revisions/8bc593179dc8?raw)
