Lowest/Highest Price Endpoint

Metals-API lowest-highest/YYYY-MM-DD  endpoint allows you to query the API to get the lowest and highest price.

This endpoint has a limitation of one symbol per request.

API Request:

https://metals-api.com/api/lowest-highest/YYYY-MM-DD
    ? access_key = API_KEY
    & base = USD
    & symbols = XAU

Run example in Postman


Request Parameters:

Parameter Description
YYYY-MM-DD [required] A date in the past or the current date for which the lowest and highest price is requested.
access_key [required] Your API Key.
base [required] Enter a metal symbol or currency.
symbols [required] Enter one symbol metal or currency to limit the output.

API Response:

{
"success": true,
"timestamp": 1641842149,
"date": "2022-01-01",
"base": "USD",
"symbol": "XAU",
"rates": {
"low": 0.0005470547,
"high": 0.00054754153,
},
"unit": "per ounce"
}

Response Objects:

Response Object Description
success Returns true or false depending on whether or not your API request has succeeded.
date Returns the date for which the lowest and highest price was requested
base Returns the symbol as base used for this request.
symbol Returns the symbol used for this request.
rates Returns the lowest and highest price for the requested symbol.

Example request in Postman:

https://metals-api.com/api/lowest-highest/2023-12-11?access_key=YOUR_API_KEY&symbols=XAU&base=USD

In the case of using USD as the base, you will need to perform 1/value. For example:

1/0.00050595962442197 = 1976.44229249

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.