Build withOilPriceAPI
Official SDKs, integrations, and tools for accessing source-timestamped energy and commodity values from Python, Node.js, Excel, Salesforce, and more.
Official SDKs & Integrations
Production-ready libraries and connectors for popular platforms
Excel Add-in
Excel add-in preview for refreshable OilPriceAPI formulas in analyst spreadsheets.
Python SDK
Official Python library with pandas integration, async support, and automatic retries.
Node.js SDK
Production-ready npm package with TypeScript definitions and zero dependencies.
Salesforce Integration
Apex code examples and REST callouts for embedding commodity prices in your CRM.
Google Sheets
Integrate with Google Sheets using IMPORTDATA, Apps Script, or third-party connectors. Full guide and templates available.
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.
EUR Calculator
Estimate the Ultimate Recovery (EUR) for oil and gas wells using standardized exponential decline curve analysis.
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.
Fuel Cost Calculator
Calculate trip or fleet fuel costs using the latest available gasoline and diesel values, vehicle presets, and fleet mode.
Fuel Surcharge Calculator
Calculate trucking fuel surcharges with published DOE diesel values and a configurable per-mile formula.
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.
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.
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.
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.
Trading Profit Calculator
Calculate potential profits from oil futures and commodity trades using supplied market values.
Gas Price Forecaster
Forecast natural gas prices using historical trends and market analysis tools.
Oil Investment Calculator
Analyze oil investment opportunities with ROI calculations and risk assessment.
Analytics Dashboard
Statistical analytics for commodity prices. Z-scores, percentiles, and volatility metrics for data-driven decisions.
Oil Barrel Unit Converter
Convert between barrels, US gallons, liters, metric tons, and cubic meters, with optional latest-available WTI and Brent reference values.
Energy Equivalency Calculator
Convert between crude oil, natural gas, LNG, coal, and electricity using published EIA BTU factors, with optional price comparisons.
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