OilPriceAPI Docs
GitHub
GitHub
  • Interactive Explorer

    • Interactive API Explorer
  • Price Data

    • API Reference
    • Get Latest Prices
    • Historical Prices
    • Batch Prices
    • Excel Latest Price Gateway
    • Price Widget Endpoints
    • Price Utility Endpoints
    • Natural Gas Intelligence
  • Commodities

    • List Commodities
    • Get Commodity Details
  • AI Agents (MCP)

    • Get Market Brief
    • Subscriptions / Watches
    • Agent Subscriptions with MCP
  • Marine Fuels

    • Marine Fuel API
    • List Marine Fuel Ports
    • Get Port Details with Prices
    • Bunker Fuels
    • Maritime Fuels
  • Fuel Surcharge (LTL)

    • Fuel Surcharge API (LTL Carriers)
    • List Fuel Surcharges
    • Latest Carrier Fuel Surcharge
    • Carrier Fuel Surcharge History
  • Premium Endpoints

    • All Prices API - One Call, All Commodities
    • Cushing Oil Storage Intelligence API
    • Drilling Intelligence API
    • Marine Fuels API
    • ICE Brent Futures API
    • Benchmark Close
    • Aviation Fuel Pilot
  • Spreads & Margins

    • Spreads & Margins
    • Crack Spreads
    • Basis Spreads
    • Refining Margins
    • Curve Structure
    • Physical Premiums
  • Market Indicators

    • Market Indicators
    • Fuel Switching
    • Price Context
    • Storage Analytics
    • CFTC Positioning
    • Congressional Trades
    • Market Annotations
  • Futures

    • Futures API
    • ICE Brent Futures
    • ICE WTI Futures
    • ICE Gas Oil Futures
    • NYMEX Natural Gas Futures
    • ICE EUA Carbon Futures
    • EU Carbon Futures
    • TTF Gas Futures
    • LNG JKM Futures
    • UK Carbon Futures
  • Dark Data (Premium)

    • Energy Intelligence API
    • Rig Counts
    • Well Permits
    • Well Production Beta
    • Oil Inventories
    • OPEC Production
    • Drilling Productivity
    • Forecasts (STEO)
  • Well Production (Beta)

    • Well Production Data
    • Well Production API Reference
  • Analytics

    • Analytics API
  • Webhooks API

    • Webhooks API Reference
    • Webhook Endpoint Reference
  • Alerts

    • Price Alerts API
  • Account & Billing

    • Account API
    • API Keys
    • Subscriptions
    • Organizations

Carrier Fuel Surcharge History

Get the weekly historical series of a carrier's published fuel-surcharge percentage. Each point is one weekly effective date, with the DOE diesel price and matched band that produced it.

Newly launched

This endpoint is newly launched. See the Fuel Surcharge overview for carrier coverage and plan availability.

Endpoint

GET /v1/fuel-surcharge/{carrier}/history

Authentication

This endpoint requires authentication. Include your API key in the request header:

Authorization: Token YOUR_API_KEY

Available on all plans, including the free tier. Usage counts against your plan's monthly request limit.

Path Parameters

ParameterTypeRequiredDescription
carrierstringYesCarrier code, e.g. odfl (see the carrier code table)

Query Parameters

ParameterTypeRequiredDescriptionDefault
pageintegerNoPage number for pagination1
per_pageintegerNoResults per page (max: 100)100

Pagination

This endpoint follows the same 100-point pagination convention as the other time-window endpoints: responses return at most 100 points per page (per_page=100); page through longer series with page=N. Since the series is weekly, one page covers roughly two years of history.

Response

{
  "status": "success",
  "data": {
    "history": [
      {
        "carrier": "odfl",
        "carrier_name": "Old Dominion Freight Line",
        "mode": "ltl",
        "surcharge_percent": 33.9,
        "effective_date": "2026-07-13",
        "doe_diesel_price": 3.756,
        "diesel_band": { "min": 3.7, "max": 3.79 },
        "source": "https://www.odfl.com/us/en/resources/fuel-surcharge.html",
        "retrieved_at": "2026-07-15T12:00:00Z"
      }
      // ... one entry per weekly effective date
    ]
  }
}

Each entry has the same shape as the latest endpoint response.

Examples

curl

curl -H "Authorization: Token YOUR_API_KEY" \
  "https://api.oilpriceapi.com/v1/fuel-surcharge/odfl/history?page=1&per_page=100"

Python

import requests

response = requests.get(
    'https://api.oilpriceapi.com/v1/fuel-surcharge/odfl/history',
    headers={
        'Authorization': 'Token YOUR_API_KEY',
        'Accept': 'application/json'
    },
    params={'page': 1, 'per_page': 100}
)
data = response.json()

for point in data['data']['history']:
    print(f"{point['effective_date']}: {point['surcharge_percent']}%")

Data Provenance

We track the fuel-surcharge schedule each carrier publishes; every response includes source and retrieved_at. Historical points keep the effective_date and retrieved_at recorded when each value was retrieved.

Error Responses

Status CodeDescription
401Unauthorized - Invalid or missing API key
404Not Found - Unknown carrier code
429Too Many Requests - Rate limit exceeded

Related Endpoints

  • /v1/fuel-surcharge - All covered carriers with latest surcharge
  • /v1/fuel-surcharge/{carrier}/latest - Current surcharge for one carrier
Last Updated: 7/17/26, 7:46 PM
Prev
Latest Carrier Fuel Surcharge