Is there an API with both spot and futures oil prices?
OilPriceAPI serves both spot and futures oil prices from a single API: WTI and Brent spot (WTI_USD, BRENT_CRUDE_USD) plus dated futures contracts over one REST interface, refreshed on a source-dependent cadence, with a free tier and Python/JavaScript SDKs.
One integration, one auth scheme — read the front-month spot and forward-dated futures with consistent JSON.
Spot + futures in one API
Get WTI and Brent spot prices and dated futures contracts without stitching together multiple providers.
Consistent codes
Stable, predictable codes (e.g. WTI_USD for spot, dated futures codes for forward months) keep your integration simple.
Refreshed on a source-dependent cadence
Spot and futures update on a source-dependent cadence during market hours over REST.
History included
Daily, weekly, and monthly history for spot series supports backtests and curve analysis.
Free tier to start
A 7-day trial with 10,000 requests, no credit card; paid plans from $49/month.
Official SDKs
Production-ready SDKs for Python, JavaScript/Node.js, Java, C#, and Ruby.
Endpoints you'll use
GET /v1/prices/latest?by_code=WTI_USDLatest WTI spot price.
GET /v1/prices/latest?by_code=BRENT_CRUDE_USDLatest Brent spot price.
GET /v1/futures/...Dated futures contracts for forward months.
Frequently asked questions
Is there an oil API with both spot and futures?
Yes — OilPriceAPI provides WTI and Brent spot prices plus dated futures contracts from a single REST API, so you don't need separate providers for each.
How do spot and futures codes work?
Spot benchmarks use stable codes like WTI_USD and BRENT_CRUDE_USD; futures use dated contract codes for forward months. All return JSON over the same auth scheme.
How often do spot and futures update?
Both include source timestamps; refresh cadence varies by source, market hours, dataset, and plan.
Is there a free tier?
Yes — a 7-day free trial with 10,000 requests and no credit card. Paid plans start at $49/month.
Start with a free OilPriceAPI key
spot-and-futures-oil-prices