[WordPress] 外掛分享: OilPriceAPI Fuel Widgets

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

內容簡介

OilPriceAPI Fuel Widgets 外掛將美國零售燃料數據以短碼或 Gutenberg 區塊的形式添加到 WordPress,提供即時的燃料價格資訊,幫助網站擁有者輕鬆顯示柴油和汽油的最新價格。

【主要功能】
• 提供美國柴油和汽油的平均價格
• 燃料附加費計算器
• 支援短碼和 Gutenberg 區塊
• 具備深色與淺色主題選擇
• 每小時一次的伺服器請求
• 無需 API 金鑰即可使用公共 EIA 系列

外掛標籤

開發者團隊

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

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

原文外掛簡介

OilPriceAPI Fuel Widgets adds source-dated U.S. retail-fuel data to WordPress as shortcodes or a Gutenberg block.
Fuel Price Ticker
National U.S. diesel and regular gasoline averages. Each result shows its EIA observation week, weekly cadence, unit, and source.
U.S. Diesel Price
The national U.S. diesel retail average, quoted in USD per gallon and labeled with its observation week.
Fuel Surcharge Calculator
Calculates the percentage by which the weekly national diesel average exceeds a base price configured by the site owner. It does not describe the result as an industry standard or a contractual surcharge.
Features

Source date, weekly cadence, currency, unit, and EIA attribution in every successful widget
Dark and light themes
Shortcodes and Gutenberg block
Server-side requests with no remote executable code
One-hour validated cache
Last successful result for up to 48 hours after an error, visibly labeled as a cached copy
Fail-closed handling for unavailable, rate-limited, timed-out, empty, or malformed responses
No API key required for the public EIA series

External service
This plugin uses OilPriceAPI to retrieve the EIA retail-fuel series displayed by the widgets.
The WordPress server sends a GET request to https://www.oilpriceapi.com/api/widgets/fuel-prices at most once per hour while a page containing a widget is requested. OilPriceAPI receives the site server’s IP address and standard HTTP request metadata. The plugin does not send the visitor’s IP address, WordPress user data, page content, or an API credential.
The underlying retail-fuel observations come from the U.S. Energy Information Administration and are public domain at the source. OilPriceAPI delivers and validates the response; it does not grant rights in underlying data.

OilPriceAPI privacy policy
OilPriceAPI terms
OilPriceAPI service status

文章
Filter
Mastodon