Diesel Prices

Get regional diesel prices

Retrieve diesel prices for US regions including national average, PAD districts, and major states. Data sourced from EIA (Energy Information Administration) with weekly updates.

FREE TIER - No additional cost

get/v1/diesel-prices

Request

  • Base URL
    https://api.oilpriceapi.com
  • Auth
    API key in header Authorization

Query parameters

statestring
Example:CA

Two-letter US state code (e.g., CA, TX, NY)

zipstring
Example:94102

US ZIP code

latnumber float
Example:37.7749

Latitude coordinate

lngnumber float
Example:-122.4194

Longitude coordinate

Response

Regional diesel price data

statusstring

Example response

{
  "status": "success",
  "data": {
    "regional_average": {
      "price": 4.862,
      "currency": "USD",
      "unit": "gallon",
      "region": "california",
      "granularity": "state",
      "source": "EIA",
      "cached": true
    },
    "location": {
      "state_code": "CA"
    }
  }
}

Changes

No recorded changes to this operation across all 17 revisions of this API.