
We are thrilled to announce a powerful new addition to MetalPriceAPI: the /hourly endpoint. This endpoint provides hourly exchange rate data for a given currency over a date range, giving you up to 24 data points per day for granular intraday analysis.
Daily historical data is great for tracking long-term trends, but it can miss significant price movements that happen within a single day. With hourly data, you can:
/hourly EndpointTo access hourly data, make a GET request to the following URL:
https://api.metalpriceapi.com/v1/hourly?api_key=[API_KEY]&base=[BASE]¤cy=[CURRENCY]&start_date=[START_DATE]&end_date=[END_DATE]
[API_KEY] with your actual key to authenticate your request.USD.XAU).YYYY-MM-DD format.YYYY-MM-DD format.Upon a successful request, you will receive a response in JSON format:
{
"success": true,
"base": "USD",
"start_date": "2025-11-03",
"end_date": "2025-11-03",
"rates": [
{
"timestamp": 1762128000,
"rates": {
"XAU": 0.0002512844,
"USDXAU": 3979.5546400811
}
},
{
"timestamp": 1762131600,
"rates": {
"XAU": 0.0002519176,
"USDXAU": 3969.5519487324
}
},
...
]
}
/hourly endpoint accepts a single currency symbol per request.today, yesterday, or week for the start_date and end_date parameters.math parameter, just like with other endpoints.To start using the /hourly endpoint, simply include your API key in the request URL and retrieve your hourly data instantly. For more details, visit our API documentation.
We hope this new feature enhances your experience with MetalPriceAPI. As always, we are here to support you. If you have any questions or need assistance, please contact our support team.
— MetalpriceAPI Team