
外掛標籤
開發者團隊
原文外掛簡介
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:
Oil Price Ticker
Live Brent Crude, WTI, and Natural Gas prices with 24-hour change indicators. Horizontal or vertical layouts, dark or light theme.
Diesel Price Tracker
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.
Fuel Surcharge Calculator
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.
Carbon Cost Calculator
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.
Features
No API key required — widgets work immediately after install
Dark and light themes — match your site design
Lightweight — each widget is under 30KB, loaded async, only on pages that use it
Auto-updating — prices refresh every 5 minutes
Shortcodes and Gutenberg block — use either method
Configurable defaults — set once in Settings > OilPriceAPI, override per widget
Responsive — works on mobile and desktop
For developers
Need the raw data behind the widgets — historical prices, more commodities, or programmatic access?
Get a free API key — the free tier includes 200 requests/month
PHP SDK: composer require oilpriceapi/oilpriceapi
API documentation
Interactive API explorer
Also Available As
OilPriceAPI is available across many platforms:
Python SDK: pypi.org/project/oilpriceapi — Python client with Pandas integration
Node.js SDK: npmjs.com/package/oilpriceapi — TypeScript/JavaScript SDK
PHP SDK: packagist.org/packages/oilpriceapi/oilpriceapi — composer require oilpriceapi/oilpriceapi
Go SDK: github.com/OilpriceAPI/oilpriceapi-go — Go client
MCP Server: github.com/OilpriceAPI/mcp-server — oil prices in Claude and other AI assistants
Google Sheets Add-on: Custom functions like =OILPRICE(“BRENT_CRUDE_USD”)
Excel Add-in: Energy price comparison in Excel
Get your free API key at oilpriceapi.com/signup.
