Skip to main content

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 every 5 minutes, 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 every 5 minutes

Spot and futures update every 5 minutes 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 $15/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_USD

Latest WTI spot price.

GET /v1/prices/latest?by_code=BRENT_CRUDE_USD

Latest 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 refresh every 5 minutes during market hours.

Is there a free tier?

Yes — a 7-day free trial with 10,000 requests and no credit card. Paid plans start at $15/month.