Shanghai Containerized Freight Index (SCFI) (SCFI_INDEX)
Status: Available | Source-timestamped
Weighted spot container freight rates from Shanghai to major world ports. Access current and historical values through the API.
Quick Reference
| Property | Value |
|---|---|
| Commodity Code | SCFI_INDEX |
| Name | Shanghai Containerized Freight Index (SCFI) |
| Category | Freight |
| Currency | INDEX |
| Unit | index (two decimals) |
| Source | Published market reporting |
| Update frequency | Weekly |
Publication cadence and timestamps
Published weekly by the Shanghai Shipping Exchange, on Fridays. observed_at is the Friday publication session; between prints the latest value stays on the previous Friday.
observed_atis the source observation (session) time.source_dateis the source session date when supplied; it can benull, so fall back toobserved_at.created_atis when OilPriceAPI stored the record. It is not the source date.
See Data Publication & Collection Schedules for more timing detail.
Get Latest Price
GET/v1/prices/latest?by_code=SCFI_INDEX
Request
curl -X GET "https://api.oilpriceapi.com/v1/prices/latest?by_code=SCFI_INDEX" \
-H "Authorization: Token YOUR_API_KEY" \
-H "Accept: application/json"
Response
Example values captured 2026-11-15 — illustrative only. The endpoint returns the current value and its source timestamp when called.
{
"status": "success",
"data": {
"price": 3572.33,
"formatted": "3572.33",
"currency": "INDEX",
"code": "SCFI_INDEX",
"unit": "index",
"created_at": "2026-11-13T07:22:13Z",
"observed_at": "2026-11-13T08:00:00Z",
"source_date": "2026-11-13",
"type": "spot_price",
"source": "market_reporting"
}
}
Get Historical Data
Past 24 Hours
GET /v1/prices/past_day?by_code=SCFI_INDEX
Past 7 Days
GET /v1/prices/past_week?by_code=SCFI_INDEX
Past 30 Days
GET /v1/prices/past_month?by_code=SCFI_INDEX
Past Year
GET /v1/prices/past_year?by_code=SCFI_INDEX
See Historical Prices API for full documentation.
Code Examples
cURL
# Get latest price
curl -H "Authorization: Token YOUR_API_KEY" \
"https://api.oilpriceapi.com/v1/prices/latest?by_code=SCFI_INDEX"
Python
import requests
api_key = "YOUR_API_KEY"
url = "https://api.oilpriceapi.com/v1/prices/latest"
response = requests.get(
url,
params={"by_code": "SCFI_INDEX"},
headers={"Authorization": f"Token {api_key}"}
)
data = response.json()
print(f"Shanghai Containerized Freight Index (SCFI): {data['data']['formatted']}")
JavaScript
const apiKey = 'YOUR_API_KEY';
const code = 'SCFI_INDEX';
fetch(`https://api.oilpriceapi.com/v1/prices/latest?by_code=${code}`, {
headers: {
'Authorization': `Token ${apiKey}`
}
})
.then(res => res.json())
.then(data => {
console.log(`Shanghai Containerized Freight Index (SCFI): ${data.data.formatted}`);
});
Related Endpoints
- Get All Prices - Get all commodity prices in one call
- Historical Prices - Time-series data
- Commodities List - Browse all commodities
- Complete Commodity Reference: Freight - All freight codes