Commodity Price Infrastructure for Energy ApplicationsSource-timestamped oil, gas, and metals values across a broad set of benchmarks — normalized into a single REST API.
Energy and agricultural commodity values — normalized into a single REST API with webhooks, SDKs, and source-aware freshness. Read the docs
Complete SDKs with ready-to-use code examples and comprehensive API documentation for every endpoint. View docs
Free tier (50 requests/day) • No credit card required • Source timestamps included
Trust & Reliability: buyer resourcesMake the canonical first request
Create a free account
No credit card required. Retrieve your key from the account dashboard.
Create free accountRun this curl command
Set OILPRICEAPI_KEY in your terminal, then run:
curl --fail-with-body --max-time 10 \
"https://api.oilpriceapi.com/v1/prices/latest?by_code=BRENT_CRUDE_USD" \
-H "Authorization: Token ${OILPRICEAPI_KEY:?Set OILPRICEAPI_KEY first}"Get JSON response
Quote preview from the public price endpoint:
Authenticated response fields and examples{
"status": "success",
"data": {
"price": 102.73,
"formatted": "$102.73",
"currency": "USD",
"code": "BRENT_CRUDE_USD",
"unit": "barrel",
"timestamp": "2026-09-18T08:16:22Z"
}
}Try the API
No API key required
curl --fail-with-body --max-time 10 \
"https://api.oilpriceapi.com/v1/demo/prices"Broad Commodity Coverage, One Schema
Oil, gas, metals, and agricultural prices — normalized into consistent JSON. No more parsing PDFs or scraping websites yourself.
Production-Ready Infrastructure
Versioned REST endpoints, structured errors, freshness metadata, and documented recovery paths for production integrations.
Trusted by Teams Building on Energy Data
Production planning, trading, and energy applications at scale
Start Risk-Free Today
Aggregated from authoritative public data — including the U.S. EIA — and cross-validated across multiple market sources for consistency
Free Tier Forever
Start from the current signup flow. Current free-tier terms are shown before you begin.
Cancel Anytime
No long-term commitments or hidden fees
60-Second Setup
Complete SDKs, code examples, and API documentation — get your first response in under a minute
Built to Stay Up
Redundant infrastructure, automated failover, and continuous monitoring
Pricing
Start free, then choose the request volume and data package your application needs. See the pricing page for current plan details.
Just getting started? Developer — $19.00/month for 10,000 requests
Frequently Asked Questions
Everything you need to know about our Oil Price API
OilPriceAPI is a REST API for source-timestamped WTI, Brent Crude, Natural Gas, and a broad commodity catalog. Refresh cadence and historical availability vary by source, dataset, account, and plan.
Current signup and trial terms are shown in the signup flow before you begin. You can create an account, get an API key, and upgrade only when your usage needs more capacity.
Each latest value includes source and timestamp fields so you can evaluate freshness. Refresh cadence varies by source, market hours, dataset, and plan. The published uptime target is an operational objective, not a contractual SLA unless a signed agreement says otherwise.
We provide official SDKs for Python, Node.js, Go, and PHP. Java, C++, C#/.NET, Ruby, Rust, Swift, and other languages can call the REST API directly.
OilPriceAPI provides energy commodity data through a developer-friendly REST API. Bloomberg Terminal is a broader enterprise market data and analyst platform. Current OilPriceAPI plan terms are published on the pricing page.
Yes. You can pull latest-available oil values and their source timestamps into Excel or Google Sheets. Both integrations have step-by-step documentation.
Historical access depends on the plan, dataset, and source availability. Compare the historical-data feature on the pricing page and check the endpoint documentation for the series you need.
Latest available values include source timestamps; refresh cadence varies by source, market hours, dataset, and plan. WebSocket streaming is available only when enabled for the account.
Current free-tier and trial terms are shown on the pricing page and in the signup flow. Documentation and SDKs are available so you can test the API before upgrading.
Visit the pricing page for current Stripe-backed plan terms, then select the plan that matches your usage. Activation is handled through the checkout and account flow.
Still have questions? Check our comprehensive documentation.
View Documentation






