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

# Daily Local Gas Prices

`GET /gas-prices/local`

## Request

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

Daily average retail pump prices in US dollars per gallon for the United States, every state and DC, about 470 metro areas and about 3,100 counties: regular, midgrade, premium and diesel (counties: regular). A separate daily series from the weekly survey of /gas-prices; the two are never combined.

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

## Query parameters

- `area` string
- `area_type` string
- `state` string
- `county` string
- `county_fips` string
- `metro` 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)
