OilPriceAPI Docs
Quick Start
API Reference
  • SDKs and languages
  • Tutorials
  • Articles
  • Documentation directory
  • Quick reference
  • API explorer
  • FAQ
  • Changelog
  • Status
  • Dashboard
GitHub
Quick Start
API Reference
  • SDKs and languages
  • Tutorials
  • Articles
  • Documentation directory
  • Quick reference
  • API explorer
  • FAQ
  • Changelog
  • Status
  • Dashboard
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
    • Demo API (No Authentication)
    • Natural Gas Intelligence
    • Energy News Feed
  • Commodities

    • List Commodities
    • Get Commodity Details
    • Code Aliases
    • Denmark diesel list prices (OK Danmark)
    • Data Publication & Collection Schedules
  • 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 Surcharges

    • Fuel Surcharge API
  • Premium Endpoints

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

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

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

    • Futures API
    • ICE Brent Futures
    • WTI Futures
    • Continuous Futures (Brent, WTI)
    • 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
    • Drilling Intelligence (Public)
    • 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
  • Scheduled Deliveries

    • Scheduled Deliveries API
  • Account & Billing

    • Account API
    • API Keys
    • Subscriptions
    • Organizations

Code Aliases

Some commodities can be requested under more than one code: a short form (WTI), a common alternative spelling (RBOB_USD), or a code that has since been renamed. The API resolves each of these to one canonical code.

The code in the response is the canonical code, not the one you sent. If you key your own data on the response, key it on that field.

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

returns "code": "BRENT_CRUDE_USD".

Use the canonical code in new integrations. Aliases exist so that a reasonable guess works; the canonical code is the one listed by GET /v1/commodities.

Every row on this page was checked against GET /v1/prices/latest on 2026-11-25: the alias returned 200 and the canonical code shown. The aliases in the first three tables were also accepted (200) by GET /v1/prices/past_week.

Short forms and alternative spellings

The alias resolves to the canonical code on the left.

Canonical codeAccepted aliases
ALUMINUM_USDALUMINUM
BALTIC_CAPESIZE_INDEXBCI, BALTIC_CAPESIZE
BALTIC_DRY_INDEXBDI, BALTIC_DRY
BALTIC_PANAMAX_INDEXBPI, BALTIC_PANAMAX
BALTIC_SUPRAMAX_INDEXBSI, BALTIC_SUPRAMAX
BRENT_CRUDE_USDBRENT, BRENT_USD, BRENT_CRUDE_OIL, BRENTOIL, CRUDE_OIL_BRENT, CRUDE_USD, BRENT_CRUDE, BRENT_OIL_USD
CANADA_RIG_COUNTRIG_COUNT_CANADA
CONTAINER_FREIGHT_COMPOSITE_USDWCI, WCI_USD, CONTAINER_FREIGHT
COPPER_USDCOPPER
DIESEL_USDDIESEL
DUBAI_CRUDE_USDDUBAI, DUBAI_CRUDE
DUTCH_TTF_EURTTF, TTF_EUR, TTF_GAS
DUTCH_TTF_NATURAL_GAS_USDDUTCH_TTF_USD, TTF_USD
EU_CARBON_EURCARBON_EUR, CARBON, EUA, EUA_EUR, EU_CARBON, EU_ETS_EUR
GASOIL_USDGAS_OIL_USD, GAS_OIL, ICE_GASOIL_USD
GASOLINE_RBOB_USDRBOB_USD, RBOB, RBOB_GASOLINE_USD
GASOLINE_USDGASOLINE
GOLD_USDGOLD, XAU_USD
HEATING_OIL_USDHEATING_OIL
HFO_380_BRSSZ_USDSANTOS_HFO380_USD
HFO_380_SGSIN_USDSINGAPORE_HFO380_USD, HSFO_SINGAPORE_USD
HFO_380_USDHSFO, HSFO_USD, IFO380, IFO380_USD, IFO_380_USD
HFO_380_USNYC_USDNEW_YORK_HFO380_USD
JKM_LNG_USDJKM_USD, JKM, LNG_JKM_USD, LNG_USD
MGO_05S_BRSSZ_USDSANTOS_MGO_USD
MGO_05S_GRPIR_USDPIRAEUS_MGO_USD
MGO_05S_NLRTM_USDROTTERDAM_MGO_USD, MGO_ROTTERDAM_USD
MGO_05S_SGSIN_USDSINGAPORE_MGO_USD, MGO_SINGAPORE_USD
MGO_05S_TRIST_USDISTANBUL_MGO_USD
MGO_05S_USDMGO, MGO_USD
MGO_05S_USNYC_USDNEW_YORK_MGO_USD, NEWYORK_MGO_USD
MURBAN_CRUDE_USDMURBAN_USD
NATURAL_GAS_GBPNATURAL_GAS_UK_GBP, NBP_GBP
NATURAL_GAS_TTF_SPOT_EURTTF_GAS_EUR
NATURAL_GAS_USDNG, NATURAL_GAS, NATGAS, HENRY_HUB, HENRY_HUB_USD, NG_USD, NAT_GAS_USD, NATGAS_USD
NATURAL_GAS_WAHAWAHA_USD, WAHA, WAHA_NATURAL_GAS_USD
NEWCASTLE_COAL_USDNEWC_COAL_USD, NEWC_USD, NEWCASTLE_USD
NICKEL_USDNICKEL
OMAN_CRUDE_USDOMAN, OMAN_USD
OPEC_BASKET_USDOPEC_USD, OPEC_BASKET, OPEC, OPEC_CRUDE_USD
PALLADIUM_USDPALLADIUM
PLATINUM_USDPLATINUM
PROPANE_MONT_BELVIEU_USDPROPANE_USD, PROPANE, MONT_BELVIEU_PROPANE_USD, LPG_USD, LPG
SCFI_INDEXSCFI
SILVER_USDSILVER
SINGAPORE_JET_KEROSENE_USDSINGAPORE_JET_FUEL_USD, SINGAPORE_KEROSENE_USD
ULSD_DIESEL_USDULSD_USD, ULSD
US_RIG_COUNTRIG_COUNT_US
VLSFO_AEFUJ_USDFUJAIRAH_VLSFO_USD, VLSFO_FUJAIRAH_USD
VLSFO_BRSSZ_USDSANTOS_VLSFO_USD
VLSFO_GRPIR_USDPIRAEUS_VLSFO_USD
VLSFO_NLRTM_USDROTTERDAM_VLSFO_USD, VLSFO_ROTTERDAM_USD
VLSFO_SGSIN_USDSINGAPORE_VLSFO_USD, VLSFO_SINGAPORE_USD, VLSFO
VLSFO_TRIST_USDISTANBUL_VLSFO_USD
VLSFO_USHOU_USDHOUSTON_VLSFO_USD, VLSFO_HOUSTON_USD
VLSFO_USNYC_USDNEW_YORK_VLSFO_USD, NEWYORK_VLSFO_USD
WCS_CRUDE_USDWCS_USD, WCS, CANADIAN_CRUDE, CANADIAN_CRUDE_USD, WESTERN_CANADIAN_SELECT, WESTERN_CANADIAN_SELECT_USD
WTI_USDWTI, CRUDE_OIL_WTI_USD, WTIOIL, CRUDE_OIL_WTI, WTI_CRUDE

Renamed and legacy codes

These codes were once listed in their own right. Each now resolves to the code that carries the series.

Legacy codeResolves to
VLSFO_USDVLSFO_SGSIN_USD
DREWRY_WCI_USDCONTAINER_FREIGHT_COMPOSITE_USD
BRENT_SPOT_EUROPE_USDBRENT_SPOT_USD
ASPHALT_USDBITUMEN_USD

Codes that share one series

Either code in a pair returns the same series, and the response uses the code in the right-hand column.

You can sendResponse code
URALS_USD, URALS_CRUDE_USDURALS_CRUDE_USD
WTI_USD, WTI_CRUDE_USD, WTI_CRUDE_OILWTI_USD
UK_CARBON_GBP, UK_CARBON_GPBUK_CARBON_GBP
NATURAL_GAS_WAHA_USD, NATURAL_GAS_WAHANATURAL_GAS_WAHA
CONTAINER_FREIGHT_CNSHA_ITGOA_USD, DREWRY_WCI_CNSHA_ITGOA_USDCONTAINER_FREIGHT_CNSHA_ITGOA_USD
CONTAINER_FREIGHT_CNSHA_USLAX_USD, DREWRY_WCI_CNSHA_USLAX_USDCONTAINER_FREIGHT_CNSHA_USLAX_USD

Front-month futures

BRENT_CRUDE_FUTURES and WTI_CRUDE_FUTURES return the current front-month contract. The response code names the contract month, so it changes when the contract rolls: on 2026-11-25 they returned BRENT_FUTURES_2027_02 and WTI_FUTURES_2027_01.

Marine fuel codes

Marine fuel codes have the form {GRADE}_{PORT}_USD, for example VLSFO_SGSIN_USD. Both parts accept alternative spellings, so IFO380_SIN_USD resolves to HFO_380_SGSIN_USD and LSMGO_RTM_USD to MGO_05S_NLRTM_USD. The currency can be omitted: VLSFO_SINGAPORE resolves to VLSFO_SGSIN_USD.

Grade spellings

Canonical gradeAlso accepted
VLSFOnone
MGO_05SMGO, LSMGO, MGO_05, MGO_5S
HFO_380HFO380, HSFO, HSFO380, HSFO_380, IFO380, IFO_380

Port spellings

The canonical port segment is the five-letter code the API stores. For Fujairah that is AEFUJ; the UN/LOCODE AEFJR is accepted too.

Canonical portAlso accepted
SGSINSIN, SGP, SG
NLRTMRTM
AEFUJAEFJR, FJR, FUJ
HKHKGHKG
USHOUHOU
USLAXLAX
GIGIBGIB
USNYCNYC
BRSSZSSZ
GRPIRPIR
TRISTIST
ESHUVHUV
BEANRANR
KRPUSPUS

Port names are accepted for the grade and port combinations listed in the first table, for example SINGAPORE_VLSFO_USD and VLSFO_ROTTERDAM_USD.

Not every grade is quoted at every port. A valid spelling for a grade and port combination with no data returns 400, the same as any unknown code.

If a code is not recognised

An unrecognised code returns 400 with "error": "invalid_code" and, where there is a close match, a did_you_mean list. See Error Codes.

Last Updated: 11/25/26, 12:46 PM
Prev
Get Commodity Details
Next
Denmark diesel list prices (OK Danmark)