OilPriceAPI hosted energy data
v0.2.0Hosted energy prices: crude, gas, refined products, marine fuels, futures.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
energy_get_price Get Energy Price
Read one supported latest energy benchmark. Preserve dataset name, currency, unit and all available source/freshness fields. Latest benchmarks may be futures; never relabel them spot or settlement. Demo is available without signup.
| Parameter | Type | Description |
|---|---|---|
benchmark * | string |
energy_market_overview Energy Market Overview
Read a grouped snapshot of at most six supported energy benchmarks. Catalog enumeration and bulk extraction are outside this plugin. Missing values remain unavailable.
| Parameter | Type | Description |
|---|---|---|
category * | string |
energy_compare Compare Energy Benchmarks
Compare 2–5 distinct supported energy benchmarks with separate timestamps, dataset context, units and currencies. No currency conversion or timestamp alignment is implied.
| Parameter | Type | Description |
|---|---|---|
benchmarks * | array |
energy_search_catalog Search Commodity Catalog
Search the OilPriceAPI commodity catalog (crude grades, regional natural gas hubs such as Waha, refined products, power, coal, metals, freight and more) by name or code. Returns at most 10 matching codes with name, category, unit and update frequency. Available without signup to discover commodity codes; reading latest prices outside the demo benchmarks via energy_get_latest requires a connected OilPriceAPI account.
| Parameter | Type | Description |
|---|---|---|
limit * | integer | |
query * | string |
energy_product_facts OilPriceAPI Product Facts
Read OilPriceAPI's versioned reviewed product contract covering offer structure, freshness semantics, authentication, and data-rights boundaries. Available without signup.
energy_get_latest Get Latest Price by Code
Read the latest price for one exact commodity code from the catalog (find codes with energy_search_catalog). Preserve dataset name, currency, unit and all source/freshness fields; latest is not necessarily spot or settlement. Requires a connected account; access follows the account's plan.
| Parameter | Type | Description |
|---|---|---|
code * | string |
energy_history Energy Price History
Read one authenticated commodity's daily historical observations over at most 30 days and 100 rows, plus a server-computed summary derived strictly from returned observations. Accepts any catalog code. No pagination or anonymous history.
| Parameter | Type | Description |
|---|---|---|
benchmark * | string | |
days * | integer | |
limit * | integer |
energy_futures_curve Futures Curve
Read an authenticated energy or carbon forward curve, at most 12 contracts, plus front-to-back curve structure summary. Preserve contract month, trading date and expiration semantics. Missing expiration or source dates remain unreported. Account entitlement is enforced by OilPriceAPI.
| Parameter | Type | Description |
|---|---|---|
instrument * | string | |
limit * | integer |
energy_marine_fuels Marine Fuel Prices
Read authenticated bunker quotes for 1–4 UN/LOCODE ports (for example NLRTM, SGSIN, USHOU, AEFJR) and one exact grade: VLSFO, MGO_05S or HFO_380. Preserve port, grade and per-quote freshness. No substitution when a quote is unavailable. Account entitlement is enforced by OilPriceAPI.
| Parameter | Type | Description |
|---|---|---|
grade * | string | |
ports * | array |
energy_drilling Drilling Activity
Read authenticated drilling intelligence for a supported geography. Preserve report dates and geography. Permian basin counts and prior-report changes are unavailable unless explicitly supplied; do not substitute US totals. Account entitlement is enforced by OilPriceAPI.
| Parameter | Type | Description |
|---|---|---|
geography * | string |
energy_market_brief Energy Market Brief
Read a single-request structured and narrative multi-commodity market brief (up to 15 codes) for fast agent briefings. Preserves per-series timestamps, currencies and units. Account entitlement is enforced by OilPriceAPI.
| Parameter | Type | Description |
|---|---|---|
codes | array |
energy_fuel_surcharge Carrier Fuel Surcharges
Read LTL or parcel carrier fuel surcharge schedules (operation=rates) or calculate a shipment fuel surcharge from current DOE diesel bands (operation=calculate). Preserves effective dates, DOE diesel price and source. Account entitlement is enforced by OilPriceAPI.
| Parameter | Type | Description |
|---|---|---|
mode * | string | |
operation * | string | |
per_page * | integer | |
base_price | number | |
carrier | string | |
freight_charge | number | |
history | boolean | |
increment | number | |
method | string | |
miles | number | |
mpg | number | |
region | string | |
rounding | string | |
service_level | string | |
step_rate | number |
energy_analytics Energy Market Analytics
Compute authenticated market analytics for one or two catalog codes: statistics, trend/technical indicators, correlation, or spread analysis over 7–365 days. Account entitlement is enforced by OilPriceAPI.
| Parameter | Type | Description |
|---|---|---|
code * | string | |
days * | integer | |
operation * | string | |
code2 | string | |
type | string |
energy_supply_intelligence Energy Supply Intelligence
Read authenticated energy supply and retail datasets: EIA oil inventories, Cushing storage, US SPR storage, OPEC production, or US state retail diesel prices. Account entitlement is enforced by OilPriceAPI.
| Parameter | Type | Description |
|---|---|---|
dataset * | string | |
state | string |
energy_manage_alerts Manage Price Alerts
List account price alerts or trigger history (energy:read), or create/delete persistent price threshold alerts (requires energy:write scope). Account entitlement is enforced by OilPriceAPI.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
alert_id | string | |
commodity_code | string | |
condition_operator | string | |
condition_value | number | |
cooldown_minutes | integer | |
name | string |
energy_manage_watches Manage Price Watches
List persistent agent price watches or poll cursor-based watch events (energy:read), or create/delete watches (requires energy:write scope). Account entitlement is enforced by OilPriceAPI.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
limit * | integer | |
codes | array | |
interval | string | |
name | string | |
since | integer | |
subscription_id | string |