List commodity prices
Latest price snapshot for every tracked commodity across energy, metals, agriculture and macro categories — including 1-day / MTD / YTD changes, the 50-period moving average, a trend classification and a sparkline.
Authorizations
Your HayInsights API key (prefixed apk_). Create and manage keys in the
HayInsights dashboard (Account → API keys).
Send it in the X-API-Key header on every request to /openapi/v1/*.
Which data domains you may access and your request quota are both governed by
the subscription plan attached to the key — see the Plans & features and
Rate limits guides.
Query Parameters
Filter by commodity category.
| Value | Description |
|---|---|
energy | Energy (crude oil, natural gas, …) |
metals | Metals (gold, silver, copper, …) |
agriculture | Agricultural commodities (grains, softs, …) |
macro | Macro indices (US Dollar Index, …) |
Commodity category.
energy, metals, agriculture, macro "metals"
Free-text search on the commodity name.
"gold"
Field to sort by.
| Value | Description |
|---|---|
name | Commodity name |
price | Latest price |
change_1d | 1-day price change |
mtd | Month-to-date change |
ytd | Year-to-date change |
name, price, change_1d, mtd, ytd Sort direction.
asc, desc "desc"
Response
List of commodity price snapshots.
Standard success envelope shared by every endpoint. Each operation's response
wrapper extends this (via allOf) and adds a typed data property.