OilPriceAPI hosted energy data

v0.2.0
io.github.OilpriceAPI/hosted-energy Checked 1 day ago Published 1 day ago

Hosted 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.

ParameterTypeDescription
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.

ParameterTypeDescription
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.

ParameterTypeDescription
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.

ParameterTypeDescription
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.

ParameterTypeDescription
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.

ParameterTypeDescription
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.

ParameterTypeDescription
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.

ParameterTypeDescription
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.

ParameterTypeDescription
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.

ParameterTypeDescription
codesarray

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.

ParameterTypeDescription
mode *string
operation *string
per_page *integer
base_pricenumber
carrierstring
freight_chargenumber
historyboolean
incrementnumber
methodstring
milesnumber
mpgnumber
regionstring
roundingstring
service_levelstring
step_ratenumber

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.

ParameterTypeDescription
code *string
days *integer
operation *string
code2string
typestring

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.

ParameterTypeDescription
dataset *string
statestring

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.

ParameterTypeDescription
action *string
alert_idstring
commodity_codestring
condition_operatorstring
condition_valuenumber
cooldown_minutesinteger
namestring

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.

ParameterTypeDescription
action *string
limit *integer
codesarray
intervalstring
namestring
sinceinteger
subscription_idstring