The Commodity API That Developers Love
Add real-time commodity prices to your fintech platform in hours. Clean REST API, Python/Node SDKs, and 20+ years of historical data for ML training.
Trusted by fintech platforms
Built for Developers, Not Just Business Users
SDKs You Actually Want to Use
Python, Node.js, and Ruby SDKs with full type hints, async support, and comprehensive error handling. Not just wrappers around curl.
- ✓ pip install oilpriceapi
- ✓ npm install oilpriceapi
- ✓ Full TypeScript types
Historical Data for ML
20+ years of daily price data for training models. Clean, normalized datasets with no gaps or obvious errors.
- ✓ Daily prices from 2000+
- ✓ Intraday available
- ✓ Bulk download API
Real-Time Streaming
WebSocket API for real-time price updates. Push architecture means no polling, no wasted requests, no stale data.
- ✓ WebSocket streaming
- ✓ Pub/sub architecture
- ✓ Auto-reconnect handling
Comprehensive Coverage
50+ commodity benchmarks from one API. No need to integrate multiple data providers for oil, gas, and energy prices.
- ✓ Crude oil (WTI, Brent, Dubai)
- ✓ Natural gas (HH, TTF, JKM)
- ✓ Refined products & marine fuels
See How Easy It Is
Python
from oilpriceapi import OilPriceAPI
client = OilPriceAPI(api_key="...")
# Get latest prices
prices = client.prices.latest()
print(f"WTI: {prices.wti}")
# Historical data
history = client.prices.historical(
commodity="brent",
start="2020-01-01"
)
# Stream real-time
for price in client.prices.stream():
print(price)Node.js
import { OilPriceAPI } from 'oilpriceapi';
const client = new OilPriceAPI({
apiKey: '...'
});
// Get latest prices
const prices = await client.prices.latest();
console.log(`WTI: ${prices.wti}`);
// Historical data
const history = await client.prices.historical({
commodity: 'brent',
start: '2020-01-01'
});Fintech Use Cases
Trading Platforms
Add commodity prices to trading apps, portfolio trackers, and investment platforms.
ESG & Carbon
Track energy prices for carbon accounting, sustainability reporting, and ESG analytics platforms.
Market Data Terminals
Expand commodity coverage for Bloomberg alternatives and research platforms.
Document AI
Validate extracted price data from contracts and documents with real market prices.
Commodity Forecasting
Train ML models on historical data. Build AI-powered price prediction and analysis tools.
IR Platforms
Add commodity context for energy sector investor relations and shareholder reporting.
Startup-Friendly Pricing
Flat-rate pricing that scales with you, not against you
Free Tier
100 requests lifetime
Test in development
Professional
100,000 requests/month
Most popular for startups
Enterprise
Unlimited + SLA
For high-scale platforms
Add Commodity Data to Your Platform Today
Join Datasphere, Eigen, and leading fintech companies using OilPriceAPI.
100 free API calls to start • Python & Node SDKs • OpenAPI spec available