Developer Tools & Integrations

Build withOilPriceAPI

Official SDKs, integrations, and tools for accessing source-timestamped energy and commodity values from Python, Node.js, Excel, Salesforce, and more.

HTTPS
API Transport
Catalog
Account-Aware
SDKs
Tested Examples
Source
Timestamps

Free Calculators & Tools

Analyze markets, forecast prices, and calculate returns—no signup required

BOE Converter

Convert between barrels of oil (BBL) and natural gas (MCF/MMBtu) using published energy equivalency factors.

BBL to MCFEnergy ContentReference Values

EUR Calculator

Estimate the Ultimate Recovery (EUR) for oil and gas wells using standardized exponential decline curve analysis.

Decline CurveWell LifeInitial Production

Crack Spread Calculator

Calculate 3-2-1, 2-1-1, and simple crack spreads with the latest available crude oil, gasoline, and heating oil values.

Latest Values3-2-1 FormulaRefining Margins

Fuel Cost Calculator

Calculate trip or fleet fuel costs using the latest available gasoline and diesel values, vehicle presets, and fleet mode.

Latest ValuesGas & DieselFleet Mode

Fuel Surcharge Calculator

Calculate trucking fuel surcharges with published DOE diesel values and a configurable per-mile formula.

DOE Source ValuesPer-Mile FSCCarrier Presets

IFTA Calculator

Estimate IFTA fuel tax owed or credit per state from miles driven and tax-paid diesel gallons, using the current quarter's IFTA, Inc. rates.

Fleet MPGTax Due or CreditSurcharge Lines

Trucking Cost Per Mile Calculator

Work out a truck's total cost per mile: fuel from the current EIA U.S. diesel average and your MPG, plus driver pay, truck payment, insurance, maintenance, tires and tolls.

Live Diesel PrefillFuel Cost Per MilePer-Mile and Monthly Costs

Bunker Adjustment Factor (BAF) Calculator

Work out a bunker adjustment factor per 40-foot and 20-foot container: a fuel price times a trade factor, starting from the latest Rotterdam or Singapore VLSFO price. Carrier formulas are linked to the carriers' own documents.

Live VLSFO PrefillRotterdam or SingaporePer FEU and TEU

EU ETS Shipping Cost Calculator

Estimate the EU ETS cost of a voyage from fuel burned, the EU's CO2 emission factors, the 50% or 100% voyage share and the phase-in, starting from the latest EUA price. Each rule is linked to the EU text.

Live EUA Price PrefillVoyage Share and Phase-InPer Tonne of Fuel and Per TEU

Trading Profit Calculator

Calculate potential profits from oil futures and commodity trades using supplied market values.

Supplied ValuesProfit/LossMultiple Contracts

Gas Price Forecaster

Forecast natural gas prices using historical trends and market analysis tools.

Trend AnalysisPrice ForecastsMarket Data

Oil Investment Calculator

Analyze oil investment opportunities with ROI calculations and risk assessment.

ROI AnalysisRisk MetricsScenario Testing

Analytics Dashboard

Statistical analytics for commodity prices. Z-scores, percentiles, and volatility metrics for data-driven decisions.

Z-Score AnalysisPercentile RankingVolatility Metrics

Oil Barrel Unit Converter

Convert between barrels, US gallons, liters, metric tons, and cubic meters, with optional latest-available WTI and Brent reference values.

Latest Values5 UnitsMarket Value

Energy Equivalency Calculator

Convert between crude oil, natural gas, LNG, coal, and electricity using published EIA BTU factors, with optional price comparisons.

BOE Calculator6 FuelsLatest Values

Ready to Build?

Get your free API key and start with the canonical request, then evaluate source timestamps and dataset fit for your workflow.

Free tier: 50 requests per day • No credit card required • Upgrade anytime