Guide to Getting Platinum Apr 2026 (PLJ26) Historical Prices using this API
Guide to Getting Platinum Apr 2026 (PLJ26) Historical Prices using this API
In the ever-evolving landscape of precious metals trading, obtaining accurate historical prices for platinum (XPT) is crucial for investors, analysts, and developers alike. The Metals-API offers a robust solution for accessing real-time and historical data on platinum and other metals. This guide will explore how to leverage the Metals-API to retrieve historical prices, focusing on the capabilities of the API, its endpoints, and practical applications for developers.
About Platinum (XPT)
Platinum is not just a precious metal; it is a cornerstone of modern technology and sustainable innovation. Its applications range from catalytic converters in vehicles to advanced electronics and green technology solutions. As the world shifts towards clean energy, platinum's role in hydrogen fuel cells and renewable energy technologies becomes increasingly significant. Understanding the historical pricing of platinum can provide insights into market trends and future projections, making it essential for developers and analysts to access this data efficiently.
API Description
The Metals-API is a powerful tool designed for developers seeking to integrate real-time and historical metals data into their applications. With its user-friendly interface and comprehensive documentation, the API empowers developers to build next-generation applications that can analyze market trends, perform currency conversions, and track price fluctuations. The API provides a wealth of information, including the latest rates, historical data, and various endpoints tailored for specific needs.
For more detailed information, refer to the Metals-API Documentation, which outlines the capabilities and functionalities of the API.
Key Features and Endpoints
The Metals-API offers a variety of endpoints, each designed to cater to different data retrieval 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 every 60 minutes, 10 minutes, or even more frequently, depending on your subscription plan. This feature is essential for developers needing up-to-the-minute pricing information.
- Historical Rates Endpoint: Access historical rates for platinum dating back to 2019. By appending a specific date in the format YYYY-MM-DD, you can retrieve historical pricing data, allowing for in-depth market analysis.
- Bid And Ask Endpoint: This feature allows you to obtain real-time bid and ask prices for platinum, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The conversion endpoint enables you to convert any amount of platinum from one currency to another, facilitating seamless transactions and financial analysis.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice, making it easier to analyze trends over specific periods.
- Fluctuation Endpoint: This endpoint tracks how platinum prices fluctuate on a day-to-day basis, providing valuable insights into market volatility.
- Carat Endpoint: Retrieve information about gold rates by carat, which can be useful for jewelers and investors in the gold market.
- Lowest/Highest Price Endpoint: This feature allows you to query the API for the lowest and highest prices of platinum over a specified period, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: Get the open, high, low, and close prices for platinum, which are critical for technical analysis and trading strategies.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a comprehensive view of market trends.
- API Key: Your unique API key is essential for accessing the API's features and must be included in your requests.
- API Response: The API delivers exchange rates relative to USD, ensuring consistency in data interpretation.
- Available Endpoints: The Metals-API comprises 14 endpoints, each offering distinct functionalities tailored to various user needs.
- Supported Symbols Endpoint: Access a constantly updated list of all available metal symbols, ensuring you have the latest information at your fingertips.
List of Symbols
The Metals-API provides access to a comprehensive range of metal symbols. 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 the API's responses is crucial for effective implementation. Below are examples of various endpoints and their JSON responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1780186331,
"base": "USD",
"date": "2026-05-31",
"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": 1780099931,
"base": "USD",
"date": "2026-05-30",
"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-24",
"end_date": "2026-05-31",
"base": "USD",
"rates": {
"2026-05-24": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-05-26": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-05-31": {
"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": 1780186331,
"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-24",
"end_date": "2026-05-31",
"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": 1780186331,
"base": "USD",
"date": "2026-05-31",
"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": 1780186331,
"base": "USD",
"date": "2026-05-31",
"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
In conclusion, the Metals-API provides a comprehensive suite of tools for accessing historical prices of platinum and other metals. By leveraging its various endpoints, developers can create applications that analyze market trends, perform currency conversions, and track price fluctuations with ease. The ability to access real-time and historical data empowers users to make informed decisions in the precious metals market.
For further exploration of the API's capabilities, refer to the Metals-API Documentation and the Metals-API Supported Symbols page. By integrating the Metals-API into your applications, you can unlock the potential of real-time metals data and enhance your analytical capabilities.