Freight & Energy Prices Over One API
Baltic Dry, Baltic Capesize, Shanghai SCFI and Drewry WCI — alongside oil, natural gas, refined-product and marine-fuel prices. One REST endpoint, one auth header.
Baltic Dry Index
BDIBALTIC_DRY_INDEXBaltic Capesize Index
BCIBALTIC_CAPESIZE_INDEXShanghai Containerized Freight Index
SCFISCFI_INDEXDrewry World Container Index
WCIDREWRY_WCI_USDHow do I get freight prices from the API?
Request any freight index from the OilPriceAPI REST endpoint with the by_code parameter and a single Authorization: Token header. The Drewry World Container Index call below returns the latest value in US dollars per 40-foot container:
curl -H "Authorization: Token YOUR_KEY" \ "https://api.oilpriceapi.com/v1/prices/latest?by_code=DREWRY_WCI_USD"
Swap the code for BALTIC_DRY_INDEX, BALTIC_CAPESIZE_INDEX or SCFI_INDEX — plus energy codes like WTI_USD, BRENT_CRUDE_USD and NATURAL_GAS_USD. One auth header, one response shape, for every code.
Which codes can I request?
The four freight codes are listed below, with a few of the energy codes that share the same endpoint. Every code resolves through /v1/prices/latest.
| Code | Name | Unit / Cadence |
|---|---|---|
| BALTIC_DRY_INDEX | Baltic Dry Index | Daily (London business days) |
| BALTIC_CAPESIZE_INDEX | Baltic Capesize Index | Daily (London business days) |
| SCFI_INDEX | Shanghai Containerized Freight Index | Weekly (Friday) |
| DREWRY_WCI_USD | Drewry World Container Index | Weekly (Thursday) |
| WTI_USD | WTI Crude Oil | USD / barrel |
| BRENT_CRUDE_USD | Brent Crude Oil | USD / barrel |
| NATURAL_GAS_USD | Henry Hub Natural Gas | USD / MMBtu |
The full code list is in the API documentation.
What does freight data access cost?
The free tier includes 200 requests per month, resetting monthly, and covers the latest value for every freight and energy code. An optional 7-day trial provides 100,000 requests at Professional-tier features for higher-volume evaluation. There is no separate freight add-on — the same key reads freight, oil, gas and marine-fuel codes.
Where does the freight data come from?
The Baltic Dry and Baltic Capesize values originate from the Baltic Exchange. The Shanghai Containerized Freight Index is published by the Shanghai Shipping Exchange (delivered to the API via Trading Economics). The Drewry World Container Index is published by Drewry. These are benchmark assessments published on the cadences shown above — daily for the Baltic indices, weekly for SCFI and WCI — not intraday tradable quotes. We make no uptime or SLA claim on this page; live service status is at status.oilpriceapi.com.
When this API is not the right fit
These freight indices are benchmark composites, not tradable, real-time prices. If you need intraday quotes, hedgeable instruments, or rates for a specific port pair, a composite index will not resolve to that detail — look at forward freight agreements (FFAs) or individual route assessments instead.
The weekly indices (SCFI, WCI) update once a week, so do not expect daily granularity from them, and do not poll them every minute. If you only need an occasional latest value, the free tier is enough — you do not need a paid plan.
One key for freight, energy & marine-fuel data
Make your first freight call in a couple of minutes. Free tier: 200 requests/month. 7-day trial: 100,000 requests.
Prefer the full explainer pages? See the freight indices hub.