---
title: "Get historical commodity prices for a specific date"
method: GET
path: "/api/commodities/historical/rates"
tags: ["Commodity"]
---

# Get historical commodity prices for a specific date

`GET /api/commodities/historical/rates`

## Request

- Base URL: `https://api.unirateapi.com`
- URL: `https://api.unirateapi.com/api/commodities/historical/rates`
- Auth: none declared
- TypeScript: <https://skmtc.dev/unirateapi/apis/unirate-api/docs/api/commodities/historical/rates/get.ts> (a function with typed inputs; its response is checked against the schema)

Get historical commodity prices for a specific date with optional amount conversion (Pro subscription required). Precious metals history back to 1968 (gold/silver) and 1990 (platinum/palladium); energy, base-metal and agricultural history accrues daily from 2026-08. 19 commodities: gold, silver, platinum, palladium (troy oz); WTI and Brent crude (barrel), US Henry Hub natural gas (MMBtu); copper, aluminium, zinc, nickel, lead, tin (tonne); wheat, corn (tonne), coffee, sugar, cocoa, cotton (kg). Precious metals are blended live from LBMA and market feeds; energy, base metals and agriculturals are World Bank reference prices (CC BY 4.0, attribution: The World Bank).

## Query parameters

- `api_key` string, required
- `date` string, required
- `amount` number
- `from` string
- `to` string
- `format` 'json' | 'xml' | 'csv' | 'tsv'
- `callback` string

## Response `200`

Historical commodity prices retrieved successfully.

## Other responses

- `400`: Invalid date format or missing date
- `401`: Missing or invalid API key
- `403`: Pro subscription required
- `404`: No data available for the given date or symbol
- `503`: Service unavailable

---

[API](https://skmtc.dev/unirateapi/apis/unirate-api.md) - [All operations](https://skmtc.dev/unirateapi/apis/unirate-api/llms.txt) - [OpenAPI document](https://skmtc.dev/unirateapi/apis/unirate-api/revisions/e5fd92902326?raw)
