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

# Nearest Local Gas Price

`GET /gas-prices/local/nearest`

## Request

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

The most local daily gas prices for a place: its county (regular), the metro area the county belongs to and its state (regular, midgrade, premium, diesel), most local first.

Give at least one of state, county + state, county_fips or metro_code. The answer is {query, areas, nearest, as_of, unit, about}.

## Query parameters

- `state` string
- `county` string
- `county_fips` string
- `metro_code` string

## 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)
