Oil Price API Documentation - Quick Start in 5 Minutes | REST API
GitHub
GitHub
  • Interactive Explorer

    • Interactive API Explorer
  • Price Data

    • API Reference
    • Get Latest Prices
    • Historical Prices
  • Commodities

    • List Commodities
    • Get Commodity Details
  • Marine Fuels

    • List Marine Fuel Ports
    • Get Port Details with Prices
  • Premium Endpoints

    • All Prices API - One Call, All Commodities
    • Cushing Oil Storage Intelligence API
    • Drilling Intelligence API
    • Marine Fuels API
    • ICE Brent Futures API

Complete Commodity Reference

72 commodity codes available in the Oil Price API, organized by category with accurate examples and usage instructions.

Last updated: December 10, 2025


Quick Stats

CategoryCountUpdate Frequency
Crude Oil Benchmarks8Real-time
Regional Crude Benchmarks12Daily/Weekly
Refined Products6Real-time
Natural Gas & LNG5Real-time
Marine Fuels (Global)3Every 15 min
Marine Fuels (Port-Specific)24Every 15 min
Drilling Intelligence3Weekly
Forex & Other6Real-time

Drilling Intelligence (3 codes)

CodeNameUnitDescription
US_RIG_COUNTUS Rig CountrigsWeekly active drilling rigs in United States
CANADA_RIG_COUNTCanada Rig CountrigsWeekly active drilling rigs in Canada
INTERNATIONAL_RIG_COUNTInternational Rig CountrigsMonthly active drilling rigs internationally

Crude Oil Benchmarks (8 codes)

Real-time pricing for major global benchmarks

CodeNameUnitDescription
BRENT_CRUDE_USDBrent Crude OilbarrelNorth Sea Brent Crude Oil - European benchmark
WTI_USDWTI Crude OilbarrelWest Texas Intermediate - US benchmark
DUBAI_CRUDE_USDDubai Crude OilbarrelDubai Crude Oil (Platts) - Middle East benchmark
URALS_CRUDE_USDUrals Crude OilbarrelRussian export blend crude oil
DME_OMAN_USDDME Oman CrudebarrelDubai Mercantile Exchange Oman crude futures
MURBAN_CRUDE_USDMurban CrudebarrelAbu Dhabi ADNOC Murban crude benchmark
OPEC_BASKET_USDOPEC BasketbarrelOPEC Reference Basket average
INDIAN_BASKET_USDIndian BasketbarrelIndian crude oil import basket

Regional Crude Benchmarks (12 codes)

North American and regional crude grade prices

CodeNameUnitDescription
WTI_MIDLAND_USDWTI MidlandbarrelPermian Basin light sweet crude
ANS_WEST_COAST_USDAlaska North SlopebarrelANS crude delivered to US West Coast
MARS_USDMars BlendbarrelGulf of Mexico medium sour crude
LOUISIANA_LIGHT_USDLouisiana Light SweetbarrelGulf Coast sweet crude
GIDDINGS_USDGiddingsbarrelTexas light sweet crude
DOMESTIC_SWT_CUSHING_USDDomestic Sweet CushingbarrelDomestic sweet crude at Cushing, OK
GULF_COAST_HSFO_USDGulf Coast HSFObarrelHigh sulfur fuel oil Gulf Coast
WESTERN_CANADIAN_SELECT_USDWestern Canadian SelectbarrelCanadian heavy crude benchmark
CANADIAN_CRUDE_INDEX_USDCanadian Crude IndexbarrelCanadian crude average index
BRENT_WEIGHTED_AVERAGE_USDBrent Weighted AveragebarrelVolume-weighted Brent average
MEXICAN_BASKET_USDMexican BasketbarrelMexican export crude blend
DUBAI_USDDubaibarrelDubai crude spot (alternate code)

Refined Products (7 codes)

Fuel and product prices from US markets

CodeNameUnitDescription
GASOLINE_USDGasolinegallonUS Gulf Coast Conventional Gasoline spot price
GASOLINE_RBOB_USDGasoline RBOBgallonNYMEX RBOB Gasoline futures
DIESEL_USDDiesel (Gulf Coast)gallonUS Gulf Coast Ultra-Low Sulfur Diesel spot price
ULSD_DIESEL_USDULSD Diesel (NY Harbor)gallonNew York Harbor Ultra-Low Sulfur Diesel spot price
JET_FUEL_USDJet FuelgallonKerosene-type jet fuel spot price
HEATING_OIL_USDHeating OilgallonNY Harbor ULSD Heating Oil futures
ETHANOL_USDFuel EthanolgallonFuel ethanol spot price

Natural Gas & LNG (5 codes)

Global natural gas benchmark prices

CodeNameUnitDescription
NATURAL_GAS_USDUS Natural GasmmbtuHenry Hub Natural Gas
NATURAL_GAS_GBPUK Natural Gaspence/thermUK National Balancing Point (NBP)
DUTCH_TTF_EURDutch TTFEUR/MWhDutch Title Transfer Facility - EU benchmark
DUTCH_TTF_NATURAL_GAS_USDDutch TTF (USD)mmbtuTTF converted to USD
JKM_LNG_USDJKM LNGmmbtuJapan Korea Marker - Asian LNG benchmark

Marine Fuels - Global Averages (3 codes)

IMO 2020 compliant bunker fuel prices

CodeNameUnitDescription
MGO_05S_USDMarine Gas Oil 0.5%Smetric_tonLow sulfur marine gas oil global average
VLSFO_USDVery Low Sulfur Fuel Oilmetric_tonIMO 2020 compliant fuel oil global average
HFO_380_USDHeavy Fuel Oil 380 CSTmetric_tonHeavy fuel oil 380 centistokes

Marine Fuels - Port-Specific (24 codes)

Bunker fuel prices at major ports worldwide. Updated every 15 minutes.

MGO 0.5%S by Port (8 codes)

CodePortRegion
MGO_05S_SGSIN_USDSingaporeAsia-Pacific
MGO_05S_NLRTM_USDRotterdamEurope
MGO_05S_AEFUJ_USDFujairahMiddle East
MGO_05S_USHOU_USDHoustonAmericas
MGO_05S_HKHKG_USDHong KongAsia-Pacific
MGO_05S_BRSSZ_USDSantosAmericas
MGO_05S_USLAX_USDLos AngelesAmericas
MGO_05S_USNYC_USDNew YorkAmericas

VLSFO by Port (9 codes)

CodePortRegion
VLSFO_SGSIN_USDSingaporeAsia-Pacific
VLSFO_NLRTM_USDRotterdamEurope
VLSFO_AEFUJ_USDFujairahMiddle East
VLSFO_USHOU_USDHoustonAmericas
VLSFO_GIGIB_USDGibraltarEurope
VLSFO_HKHKG_USDHong KongAsia-Pacific
VLSFO_BRSSZ_USDSantosAmericas
VLSFO_USLAX_USDLos AngelesAmericas
VLSFO_USNYC_USDNew YorkAmericas

HFO 380 CST by Port (7 codes)

CodePortRegion
HFO_380_SGSIN_USDSingaporeAsia-Pacific
HFO_380_NLRTM_USDRotterdamEurope
HFO_380_AEFUJ_USDFujairahMiddle East
HFO_380_USHOU_USDHoustonAmericas
HFO_380_HKHKG_USDHong KongAsia-Pacific
HFO_380_USLAX_USDLos AngelesAmericas
HFO_380_USNYC_USDNew YorkAmericas

Forex & Metals (5 codes)

CodeNameUnitDescription
GBP_USDGBP/USDcurrency_pairBritish Pound to US Dollar
EUR_USDEUR/USDcurrency_pairEuro to US Dollar
GOLD_USDGoldtroy_ounceGold Spot Price
COAL_USDCoalmetric_tonAPI2 CIF ARA Coal
EU_CARBON_EUREU CarbonEUR/tonneEU ETS Carbon Allowances

✅ Correct API Usage Examples

Get Latest Price (Single Commodity)

curl "https://api.oilpriceapi.com/v1/prices/latest?by_code=BRENT_CRUDE_USD" \
  -H "Authorization: Token YOUR_API_KEY"

Response:

{
  "data": {
    "code": "BRENT_CRUDE_USD",
    "name": "Brent Crude Oil",
    "value": 75.32,
    "currency": "USD",
    "unit": "barrel",
    "timestamp": "2024-01-15T14:30:00Z"
  }
}

Get Asian Benchmark (Tapis Crude)

curl "https://api.oilpriceapi.com/v1/prices/latest?by_code=TAPIS_CRUDE_USD" \
  -H "Authorization: Token YOUR_API_KEY"

Get LNG Prices (Asian Market)

curl "https://api.oilpriceapi.com/v1/prices/latest?by_code=JKM_LNG_USD" \
  -H "Authorization: Token YOUR_API_KEY"

Get Refined Products

# Gasoline
curl "https://api.oilpriceapi.com/v1/prices/latest?by_code=GASOLINE_USD" \
  -H "Authorization: Token YOUR_API_KEY"

# Diesel
curl "https://api.oilpriceapi.com/v1/prices/latest?by_code=DIESEL_USD" \
  -H "Authorization: Token YOUR_API_KEY"

# Jet Fuel
curl "https://api.oilpriceapi.com/v1/prices/latest?by_code=JET_FUEL_USD" \
  -H "Authorization: Token YOUR_API_KEY"

Get Storage Inventory (Cushing Crude)

curl "https://api.oilpriceapi.com/v1/prices/latest?by_code=CUSHING_STORAGE" \
  -H "Authorization: Token YOUR_API_KEY"

Get Drilling Intelligence (Reservoir Mastery Only)

# Rig Count
curl "https://api.oilpriceapi.com/v1/prices/latest?by_code=US_RIG_COUNT" \
  -H "Authorization: Token YOUR_API_KEY"

# DUC Wells
curl "https://api.oilpriceapi.com/v1/prices/latest?by_code=PERMIAN_DUC_WELLS" \
  -H "Authorization: Token YOUR_API_KEY"

# Well Permits
curl "https://api.oilpriceapi.com/v1/prices/latest?by_code=TEXAS_WELL_PERMITS" \
  -H "Authorization: Token YOUR_API_KEY"

Get Marine Fuels

# VLSFO (IMO 2020 compliant)
curl "https://api.oilpriceapi.com/v1/prices/latest?by_code=VLSFO_USD" \
  -H "Authorization: Token YOUR_API_KEY"

# MGO (Marine Gas Oil)
curl "https://api.oilpriceapi.com/v1/prices/latest?by_code=MGO_05S_USD" \
  -H "Authorization: Token YOUR_API_KEY"

# Heavy Fuel Oil
curl "https://api.oilpriceapi.com/v1/prices/latest?by_code=HFO_380_USD" \
  -H "Authorization: Token YOUR_API_KEY"

Get Multiple Commodities

# Note: Use separate calls for multiple commodities
curl "https://api.oilpriceapi.com/v1/prices/latest?by_code=WTI_USD" \
  -H "Authorization: Token YOUR_API_KEY"

curl "https://api.oilpriceapi.com/v1/prices/latest?by_code=NATURAL_GAS_USD" \
  -H "Authorization: Token YOUR_API_KEY"

curl "https://api.oilpriceapi.com/v1/prices/latest?by_code=GOLD_USD" \
  -H "Authorization: Token YOUR_API_KEY"

Get Historical Data

# Get past week of data
curl "https://api.oilpriceapi.com/v1/prices/past_week?by_code=BRENT_CRUDE_USD" \
  -H "Authorization: Token YOUR_API_KEY"

# Get past month
curl "https://api.oilpriceapi.com/v1/prices/past_month?by_code=NATURAL_GAS_USD" \
  -H "Authorization: Token YOUR_API_KEY"

# Get past year
curl "https://api.oilpriceapi.com/v1/prices/past_year?by_code=WTI_USD" \
  -H "Authorization: Token YOUR_API_KEY"

🚫 Common Mistakes to Avoid

❌ Wrong Authentication

# DON'T USE Bearer
-H "Authorization: Bearer YOUR_API_KEY"

✅ Correct Authentication

# USE Token
-H "Authorization: Token YOUR_API_KEY"

❌ Wrong Commodity Codes

# DON'T USE these old codes
?by_code=WTI          # Wrong
?by_code=BRENT        # Wrong  
?by_code=NATURAL_GAS  # Wrong

✅ Correct Commodity Codes

# USE these correct codes
?by_code=WTI_USD             # Correct
?by_code=BRENT_CRUDE_USD     # Correct
?by_code=NATURAL_GAS_USD     # Correct

❌ Wrong Parameter Name

# DON'T USE commodities parameter
?commodities=WTI_USD,BRENT_CRUDE_USD

✅ Correct Parameter Name

# USE by_code parameter (one commodity per request)
?by_code=WTI_USD

📊 Data Sources & Updates

CategorySourceUpdate Frequency
Drilling IntelligenceBaker Hughes, EIA, State AgenciesWeekly/Monthly
Oil & Refined ProductsMultiple exchanges & spot marketsReal-time
Natural GasNYMEX, ICE, IG MarketsReal-time
Marine FuelsShip & Bunker, Bunker Ports15 minutes
Metals & OtherCOMEX, Various exchangesReal-time

Access Levels

  • Free Tier: Limited commodity access
  • Paid Plans: All 72 commodities including oils, refined products, natural gas, marine fuels (global + port-specific), metals, forex
  • Drilling Intelligence: Rig counts included with paid plans

Quick Reference by Commodity Code

Crude Oil Benchmarks

BRENT_CRUDE_USD, WTI_USD, DUBAI_CRUDE_USD, URALS_CRUDE_USD, DME_OMAN_USD, MURBAN_CRUDE_USD, OPEC_BASKET_USD, INDIAN_BASKET_USD

Regional Crudes (North America)

WTI_MIDLAND_USD, ANS_WEST_COAST_USD, MARS_USD, LOUISIANA_LIGHT_USD, GIDDINGS_USD, DOMESTIC_SWT_CUSHING_USD, GULF_COAST_HSFO_USD, WESTERN_CANADIAN_SELECT_USD, CANADIAN_CRUDE_INDEX_USD, BRENT_WEIGHTED_AVERAGE_USD, MEXICAN_BASKET_USD, DUBAI_USD

Refined Products

GASOLINE_USD, GASOLINE_RBOB_USD, DIESEL_USD, ULSD_DIESEL_USD, JET_FUEL_USD, HEATING_OIL_USD, ETHANOL_USD

Natural Gas & LNG

NATURAL_GAS_USD, NATURAL_GAS_GBP, DUTCH_TTF_EUR, DUTCH_TTF_NATURAL_GAS_USD, JKM_LNG_USD

Marine Fuels (Global)

MGO_05S_USD, VLSFO_USD, HFO_380_USD

Marine Fuels (Port-Specific)

MGO: MGO_05S_SGSIN_USD, MGO_05S_NLRTM_USD, MGO_05S_AEFUJ_USD, MGO_05S_USHOU_USD, MGO_05S_HKHKG_USD, MGO_05S_BRSSZ_USD, MGO_05S_USLAX_USD, MGO_05S_USNYC_USD

VLSFO: VLSFO_SGSIN_USD, VLSFO_NLRTM_USD, VLSFO_AEFUJ_USD, VLSFO_USHOU_USD, VLSFO_GIGIB_USD, VLSFO_HKHKG_USD, VLSFO_BRSSZ_USD, VLSFO_USLAX_USD, VLSFO_USNYC_USD

HFO: HFO_380_SGSIN_USD, HFO_380_NLRTM_USD, HFO_380_AEFUJ_USD, HFO_380_USHOU_USD, HFO_380_HKHKG_USD, HFO_380_USLAX_USD, HFO_380_USNYC_USD

Forex & Metals

GBP_USD, EUR_USD, GOLD_USD, COAL_USD, EU_CARBON_EUR

Drilling Intelligence

US_RIG_COUNT, CANADA_RIG_COUNT, INTERNATIONAL_RIG_COUNT

Port Code Reference

CodePortCountry
SGSINSingaporeSingapore
NLRTMRotterdamNetherlands
AEFUJFujairahUAE
USHOUHoustonUSA
HKHKGHong KongHong Kong
BRSSZSantosBrazil
USLAXLos AngelesUSA
USNYCNew YorkUSA
GIGIBGibraltarGibraltar
Last Updated: 12/10/25, 12:11 PM