COMMODITY DATA API

The Commodity API That Developers Love

Add real-time commodity prices to your fintech platform in hours. Clean REST API, Python/Node SDKs, and historical data for ML training (depth varies by commodity).

Trusted by fintech platforms

Datasphere Analytics
Eigen Technologies
Comity.ai

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

Multi-year daily price data for training models (depth varies by commodity). Clean, normalized datasets.

  • ✓ Daily price history
  • ✓ Intraday available
  • ✓ Bulk download API

Source-Timestamped Delivery

Read latest available values over REST with source and timestamp fields. Refresh cadence varies by source, dataset, and plan.

  • ✓ Normalized REST responses
  • ✓ Source-aware freshness
  • ✓ WebSocket streaming when enabled for the account

Comprehensive Coverage

A broad set of commodity benchmarks from one API. Reduce the 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

$0

10,000 requests (7-day trial)

Test in development

Professional

$99

100,000 requests/month

Most popular for startups

Enterprise

Custom

Unlimited + SLA

For high-scale platforms

View Full Pricing

Add Commodity Data to Your Platform Today

Join Datasphere, Eigen, and leading fintech companies using OilPriceAPI.

7-day free trial to start • Python & Node SDKs • OpenAPI spec available