Give your visitors live energy prices without writing a line of code. OilPriceAPI Widgets adds four production-ready widgets to any WordPress site, as shortcodes or Gutenberg blocks:
Live Brent Crude, WTI, and Natural Gas prices with 24-hour change indicators. Horizontal or vertical layouts, dark or light theme.
Current U.S. national and regional retail diesel prices — East Coast, Midwest, Gulf Coast, Rocky Mountain, West Coast, and California — updated weekly from EIA data.
Industry-standard fuel surcharge calculation from the current diesel price and your configurable base price. Used by trucking and logistics companies to publish surcharge schedules.
CO2 emissions and carbon cost estimates based on EPA emission factors and a configurable carbon price. Useful for ESG reporting and sustainability content.
All four widgets work immediately after install — no API key, no account, no configuration required. Prices come from OilPriceAPI, the commodity price API used by energy, logistics, and fintech teams.
Need the raw data behind the widgets — historical prices, more commodities, or programmatic access?
composer require oilpriceapi/oilpriceapiOilPriceAPI is available across many platforms:
composer require oilpriceapi/oilpriceapiGet your free API key at oilpriceapi.com/signup.