OPEC Basket (OPEC_BASKET_USD)
Status: Available | Daily weekdays | Official OPEC source
The OPEC Reference Basket is the official daily USD/barrel basket price published by OPEC. OilPriceAPI sources this series from OPEC's official XML archive and preserves the OPEC reference date in observed_at and source_date.
Quick Reference
| Property | Value |
|---|---|
| Commodity Code | OPEC_BASKET_USD |
| Name | OPEC Basket |
| Category | Oil |
| Currency | USD |
| Unit | USD/barrel |
| Update Frequency | Daily weekdays |
| Source | Official OPEC Basket XML archive |
| Historical Data | Daily records back to 2003 |
| Access | Latest price on authenticated API access; historical endpoints on paid plans |
Get Latest Price
GET/v1/prices/latest?by_code=OPEC_BASKET_USD
curl "https://api.oilpriceapi.com/v1/prices/latest?by_code=OPEC_BASKET_USD" \
-H "Authorization: Token YOUR_API_KEY" \
-H "Accept: application/json"
Example response:
{
"status": "success",
"data": {
"price": 69.33,
"formatted": "$69.33",
"currency": "USD",
"code": "OPEC_BASKET_USD",
"created_at": "2026-07-02T12:00:00.000Z",
"observed_at": "2026-07-02T12:00:00.000Z",
"source_date": "2026-07-02",
"type": "spot_price",
"unit": "barrel",
"source": "opec.org",
"metadata": {
"source": "opec.org",
"source_description": "OPEC official Basket XML"
}
}
}
source_date is the OPEC reference date for the basket value. It is not a page-render timestamp.
Get Historical Data
Paid plans can use the standard historical endpoints with by_code=OPEC_BASKET_USD.
# Past year of daily OPEC Basket values
curl "https://api.oilpriceapi.com/v1/prices/past_year?by_code=OPEC_BASKET_USD&interval=daily" \
-H "Authorization: Token YOUR_API_KEY"
# Date range on the full historical endpoint
curl "https://api.oilpriceapi.com/v1/prices/historical?by_code=OPEC_BASKET_USD&start_date=2003-01-01&interval=daily" \
-H "Authorization: Token YOUR_API_KEY"
Historical depth follows your plan's historical-data entitlement. Professional and Scale plans have full historical access; Developer and Starter have their plan windows.
Notes
- OPEC publishes the basket on a business-day cadence, so weekends and holidays retain the most recent OPEC reference date.
- This commodity is the OPEC Reference Basket price, not the OPEC Monthly Oil Market Report production dataset.
- The source is the official OPEC XML archive at
https://www.opec.org/basket/basketDayArchives.xml.