[WordPress] 外掛分享: OilPriceAPI Widgets

首頁外掛目錄 › OilPriceAPI Widgets
WordPress 外掛 OilPriceAPI Widgets 的封面圖片
全新外掛
安裝啟用
尚無評分
12 天前
最後更新
問題解決
WordPress 6.0+ PHP 7.4+ v1.0.1 上架:2026-07-04

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「OilPriceAPI Widgets」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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.

延伸相關外掛

文章
Filter
Mastodon