Home → Blog

A US gasoline price API returns the EIA weekly gasoline print as JSON. On FreightPulse that is the same GET /api/v1/fuel-prices path as diesel, with header X-API-Key. Read data.gasoline.national_average — not the diesel object and not bunker.

Official docs sample dated 2026-07-27 prints gasoline national_average 3.156 USD/gallon (regular 3.156). Diesel on that fixture is 3.847. bunker_fuel.available is false. Free is 100 calls/mo, no card, 5 rpm. Basic is $49/mo (1,000 calls, 30 rpm, 7-day trial on paid). MCP: mcp.freightpulsehq.com/mcp. Docs: /docs.

Request: official fuel-prices

curl -H "X-API-Key: YOUR_KEY" \
  -H "Accept: application/json" \
  "https://freightpulsehq.com/api/v1/fuel-prices"

Response: official docs sample (2026-07-27, gasoline)

{
  "success": true,
  "source": "EIA (U.S. Energy Information Administration)",
  "currency": "USD",
  "unit": "gallon",
  "data": {
    "gasoline": {
      "national_average": 3.156,
      "regular": 3.156,
      "historical": {"30d_avg": 3.1, "90d_avg": 3.05, "yoy_change_percent": 1.1}
    },
    "bunker_fuel": {"available": false}
  }
}

3.156 is the documentation week, not today’s EIA print. Copy the curl for the current updated_at.

Go live

1. Register — Free 100 calls/mo. Basic $49/mo.

2. Copy X-API-Key.

3. GET /api/v1/fuel-prices.

4. Render data.gasoline.national_average.

Read EIA gasoline →