How to retrieve Platinum Bid (XPT-BID) prices using this API

Metals-API provides a robust solution for retrieving Platinum Bid (XPT-BID) prices and other related data. This blog post will delve into the capabilities of the Metals-API, exploring how it empowers developers to create innovative applications while providing comprehensive insights into the Platinum market.
Metals-API Information
About Platinum (XPT)
API Description
Metals-API is a powerful tool that offers real-time and historical data for various metals, including Platinum. With its innovative architecture, the API allows developers to create next-generation applications that can analyze and visualize metal prices effectively. The API's capabilities extend beyond mere price retrieval; it empowers users to make informed decisions based on comprehensive data analytics.
Key Features and Endpoints
Latest Rates Endpoint
{
"success": true,
"timestamp": 1746507621,
"base": "USD",
"date": "2025-05-06",
"rates": {
"XPT": 0.000912
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
{
"success": true,
"timestamp": 1746421221,
"base": "USD",
"date": "2025-05-05",
"rates": {
"XPT": 0.000915
},
"unit": "per troy ounce"
}
Bid And Ask Endpoint
{
"success": true,
"timestamp": 1746507621,
"base": "USD",
"date": "2025-05-06",
"rates": {
"XPT": {
"bid": 0.000911,
"ask": 0.000913,
"spread": 2.0e-6
}
},
"unit": "per troy ounce"
}
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XPT",
"amount": 1000
},
"info": {
"timestamp": 1746507621,
"rate": 0.000912
},
"result": 0.912,
"unit": "troy ounces"
}
Time-Series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-04-29",
"end_date": "2025-05-06",
"base": "USD",
"rates": {
"2025-05-06": {
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-04-29",
"end_date": "2025-05-06",
"base": "USD",
"rates": {
"XPT": {
"start_rate": 0.000915,
"end_rate": 0.000912,
"change": -3.0e-6,
"change_pct": -0.33
}
},
"unit": "per troy ounce"
}
Open/High/Low/Close (OHLC) Price Endpoint
{
"success": true,
"timestamp": 1746507621,
"base": "USD",
"date": "2025-05-06",
"rates": {
"XPT": {
"open": 0.000915,
"high": 0.000918,
"low": 0.000910,
"close": 0.000912
}
},
"unit": "per troy ounce"
}
Historical LME Endpoint
List of Symbols
Metals-API Supported Symbols page.
Conclusion
Metals-API Documentation. This resource provides comprehensive guidance on using the API effectively, including detailed explanations of each endpoint and its functionalities.