Integrate this API to Get Platinum Ask (XPT-ASK) Historical Prices
Integrate this API to Get Platinum Ask (XPT-ASK) Historical Prices
In the world of precious metals, Platinum (XPT) stands out not only for its rarity but also for its diverse applications in green technology, sustainable innovation, and clean energy solutions. As industries increasingly turn towards digital transformation and smart technology integration, having access to accurate and real-time data on Platinum prices becomes essential. This is where the Metals-API comes into play, providing developers with the tools necessary to integrate Platinum historical prices into their applications seamlessly.
About Platinum (XPT)
Platinum is a precious metal that has garnered attention for its unique properties and applications. From catalytic converters in vehicles to its use in jewelry and electronics, Platinum plays a crucial role in various sectors. The demand for Platinum is also rising in the context of green technologies, where it is used in fuel cells and other sustainable energy solutions. As the world shifts towards cleaner energy, understanding the historical price trends of Platinum becomes vital for investors and developers alike.
With the Metals-API Documentation, developers can access a wealth of information about Platinum prices, enabling them to create applications that can track price fluctuations, analyze trends, and make informed decisions based on historical data.
API Description
The Metals-API is a powerful tool that provides real-time and historical data on various metals, including Platinum. This API is designed to empower developers to build next-generation applications that require accurate and timely information about metal prices. With its innovative features, the Metals-API allows users to retrieve data on current rates, historical prices, and much more.
One of the standout features of the Metals-API is its ability to deliver real-time exchange rate data, updated frequently based on the user's subscription plan. This capability is crucial for applications that require up-to-the-minute information, such as trading platforms or financial analysis tools. Additionally, the API offers endpoints for historical rates, allowing users to query data dating back to 2019, which is invaluable for trend analysis and forecasting.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for Platinum and other metals, updated based on the subscription plan. Developers can easily integrate this feature to display current prices in their applications.
- Historical Rates Endpoint: Users can access historical rates for Platinum dating back to 2019. By appending a specific date to the API request, developers can retrieve past prices, which is essential for market analysis.
- Bid and Ask Endpoint: This feature allows developers to retrieve real-time bid and ask prices for Platinum, providing insights into market dynamics and helping users make informed trading decisions.
- Convert Endpoint: The Metals-API includes a currency conversion feature that enables users to convert amounts between different metals or to/from USD, facilitating transactions and financial calculations.
- Time-Series Endpoint: This endpoint allows users to query daily historical rates between two specified dates, making it easier to analyze price trends over time.
- Fluctuation Endpoint: Developers can track how Platinum prices fluctuate on a day-to-day basis, providing insights into market volatility and helping users strategize their investments.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides detailed OHLC data for Platinum, allowing users to analyze price movements within specific time frames.
- Lowest/Highest Price Endpoint: Users can query the API to get the lowest and highest prices for Platinum over a specified period, which is useful for identifying market extremes.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols, dating back to 2008, which is beneficial for users interested in long-term trends.
- API Key: Each user is assigned a unique API key, which is required to access the API's features securely.
- API Response: The Metals-API delivers exchange rates relative to USD by default, ensuring consistency in data presentation.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies and metals, allowing developers to stay informed about the symbols they can use.
List of Symbols
The Metals-API provides access to a comprehensive range of metal symbols, including Platinum (XPT). For a complete list of all supported symbols and their specifications, refer to the Metals-API Supported Symbols page.
API Endpoint Examples and Responses
Understanding how to interact with the Metals-API is crucial for developers. Below are examples of various endpoints and their expected responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1780446123,
"base": "USD",
"date": "2026-06-03",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744,
"XCU": 0.294118,
"XAL": 0.434783,
"XNI": 0.142857,
"XZN": 0.344828
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
Access historical exchange rates for any date since 1999.
{
"success": true,
"timestamp": 1780359723,
"base": "USD",
"date": "2026-06-02",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
Get exchange rates for a specific time period.
{
"success": true,
"timeseries": true,
"start_date": "2026-05-27",
"end_date": "2026-06-03",
"base": "USD",
"rates": {
"2026-05-27": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-05-29": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-06-03": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
Convert any amount from one metal to another or to/from USD.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1780446123,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2026-05-27",
"end_date": "2026-06-03",
"base": "USD",
"rates": {
"XAU": {
"start_rate": 0.000485,
"end_rate": 0.000482,
"change": -3.0e-6,
"change_pct": -0.62
},
"XAG": {
"start_rate": 0.03825,
"end_rate": 0.03815,
"change": -0.0001,
"change_pct": -0.26
},
"XPT": {
"start_rate": 0.000915,
"end_rate": 0.000912,
"change": -3.0e-6,
"change_pct": -0.33
}
},
"unit": "per troy ounce"
}
OHLC (Open/High/Low/Close) Endpoint
Get OHLC data for a specific time period.
{
"success": true,
"timestamp": 1780446123,
"base": "USD",
"date": "2026-06-03",
"rates": {
"XAU": {
"open": 0.000485,
"high": 0.000487,
"low": 0.000481,
"close": 0.000482
},
"XAG": {
"open": 0.03825,
"high": 0.0383,
"low": 0.0381,
"close": 0.03815
},
"XPT": {
"open": 0.000915,
"high": 0.000918,
"low": 0.00091,
"close": 0.000912
}
},
"unit": "per troy ounce"
}
Bid/Ask Endpoint
Get current bid and ask prices for metals.
{
"success": true,
"timestamp": 1780446123,
"base": "USD",
"date": "2026-06-03",
"rates": {
"XAU": {
"bid": 0.000481,
"ask": 0.000483,
"spread": 2.0e-6
},
"XAG": {
"bid": 0.0381,
"ask": 0.0382,
"spread": 0.0001
},
"XPT": {
"bid": 0.000911,
"ask": 0.000913,
"spread": 2.0e-6
}
},
"unit": "per troy ounce"
}
Conclusion
Integrating the Metals-API into your applications provides a robust solution for accessing real-time and historical prices of Platinum and other precious metals. With its comprehensive endpoints, developers can create applications that not only track current prices but also analyze historical trends and fluctuations. The API's capabilities empower users to make informed decisions based on accurate data, enhancing their trading strategies and investment analyses.
For more information on how to implement these features, refer to the Metals-API Documentation. By leveraging this powerful API, developers can unlock the full potential of precious metals data and contribute to the evolving landscape of financial technology.