Skip to main content
GET
/
v2
/
mining
/
commodities
/
{commodity_name}
/
price
Commodity Price History
curl --request GET \
  --url https://api.sectors.app/v2/mining/commodities/{commodity_name}/price/ \
  --header 'Authorization: <api-key>'
[
  {
    "name": "Gold",
    "date": "2024-01-01",
    "price_usd_per_ton": 63488000
  },
  {
    "name": "Gold",
    "date": "2024-02-01",
    "price_usd_per_ton": 66244000
  }
]

Authorizations

Authorization
string
header
required

API key passed directly in the Authorization header (without Bearer prefix).

Path Parameters

commodity_name
string
required

The commodity name (e.g., Gold, Coal). Get valid names from the List Commodities endpoint.

Query Parameters

start_year
integer

Start year (e.g., 2022). Defaults to current year − 2.

end_year
integer

End year inclusive (e.g., 2024). Defaults to current year. Maximum 3-year range from start_year.

Response

List of monthly price records ordered by date ascending.

{key}
any