Skip to main content
Crude Oil Data

Crude Oil Price API

Real-time WTI, Brent & global crude oil prices via REST API

7-day free trial with 10,000 requests. No credit card required. Start in 30 seconds.

6+
Crude Benchmarks
5min
Update Frequency
50yr
Historical Data
99.9%
Uptime

Why Choose Our Crude Oil API?

Real-Time Updates

WTI and Brent crude prices updated every 5 minutes during market hours from NYMEX and ICE exchanges.

Historical Data

Access crude oil price history back to 1976 with daily, weekly, and monthly granularity.

Simple REST API

One endpoint, one API key. Get crude oil prices in JSON format with a single HTTP request.

98% Cheaper

Enterprise-grade crude oil data at $15/month vs $24,000/year for Bloomberg Terminal.

Official SDKs

Production-ready SDKs for Python, JavaScript/Node.js, Java, C#, and Ruby.

WTI-Brent Spread

Calculate the spread between WTI and Brent crude prices programmatically.

WebSocket Streaming

Real-time price streaming via WebSocket for trading systems. Sub-second updates for algorithmic trading.

Available Crude Oil Benchmarks

Access pricing data for all major global crude oil benchmarks via a single API endpoint.

WTI Crude Oil

NYMEX

West Texas Intermediate, US benchmark

WTI_USD

Brent Crude Oil

ICE

North Sea Brent, global benchmark

BRENT_USD

Dubai Crude

DME

Middle East benchmark for Asian markets

DUBAI_USD

Urals Crude

OTC

Russian export blend

URALS_USD

OPEC Basket

OPEC

Weighted average of OPEC member crudes

OPEC_BASKET

Western Canadian Select

OTC

Heavy crude from Alberta oil sands

CANADIAN_CRUDE

Get Crude Oil Prices in Seconds

Simple REST API. One request to get WTI, Brent, and all crude oil prices.

# Python - Get WTI Crude Oil Price
import requests

response = requests.get(
    "https://api.oilpriceapi.com/v1/prices/latest",
    headers={"Authorization": "Token YOUR_API_KEY"},
    params={"by_code": "WTI_USD"}
)

data = response.json()
print(f"WTI Price: $" + str(data['data']['price']) + " per barrel")
# Output: WTI Price: $72.45 per barrel
# cURL - Get All Crude Oil Prices
curl -H "Authorization: Token YOUR_API_KEY" \
  "https://api.oilpriceapi.com/v1/prices/latest?by_type=crude_oil"

# Returns: WTI, Brent, Dubai, Urals, OPEC Basket prices

Frequently Asked Questions

What crude oil prices are available via API?

We provide real-time and historical prices for WTI (West Texas Intermediate), Brent Crude, Dubai Crude, Urals, OPEC Basket, and Western Canadian Select. WTI and Brent are updated every 5 minutes during market hours.

Is the crude oil price API free?

Yes! Our free tier includes 7-day free trial with 10,000 requests with access to all crude oil benchmarks. No credit card required to start. Paid plans start at $15/month for 10,000 requests.

How accurate is your crude oil price data?

Our crude oil prices are sourced directly from NYMEX (WTI) and ICE (Brent) exchanges with less than 5-minute delay. We guarantee 99.9% data accuracy and uptime.

Can I get historical crude oil prices?

Yes, historical crude oil data is available on all paid plans. Brent crude history goes back to 1976 (nearly 50 years). WTI data is available from 1983.

What programming languages support the crude oil API?

We offer official SDKs for Python, JavaScript/Node.js, Java, C#/.NET, and Ruby. You can also use any language that supports HTTP requests and JSON parsing.

How do I calculate the WTI-Brent spread?

Simply fetch both WTI_USD and BRENT_USD prices from our API and subtract WTI from Brent. The spread is a key indicator for oil market analysis and arbitrage opportunities.

Can I use crude oil prices in Excel or Google Sheets?

The supported Excel direction is the OilPrice add-in for refreshable formulas. Google Sheets guidance is separate and available for Sheets users.

What is the difference between WTI and Brent crude?

WTI (West Texas Intermediate) is the US benchmark, priced at Cushing, Oklahoma. Brent Crude is the global benchmark from the North Sea. Brent typically trades at a premium due to easier waterborne transportation.

Simple, Transparent Pricing

Start free. Scale as you grow.

Free

$0

7-day free trial (10,000 requests)

No credit card required

Exploration

$15/mo

10,000 requests/month

+ Historical data access

Production

$45/mo

50,000 requests/month

+ Priority support

Start Using Crude Oil Price Data Today

Join thousands of developers and analysts using our API for WTI, Brent, and global crude oil prices.