Get Comprehensive SPDR Gold MiniShares (GLDM) Historical Prices via this API

In the ever-evolving landscape of financial markets, the demand for precise and timely data has never been greater. For those interested in the precious metals market, particularly in tracking the historical prices of SPDR Gold MiniShares (GLDM), the Metals-API offers a robust solution. This API provides developers with the tools necessary to access comprehensive historical data on gold prices, enabling them to build applications that can analyze trends, forecast prices, and make informed trading decisions.
About Gold (XAU)
Gold, represented by the symbol XAU, has long been a cornerstone of financial stability and investment. As a digital transformation sweeps through the financial sector, the integration of technology in trading precious metals is becoming increasingly vital. The use of data analytics allows traders and investors to gain market insights that were previously unattainable. With the rise of digital asset solutions, gold is not just a physical commodity but also a digital asset that can be traded and analyzed in real-time.
The innovation in price discovery mechanisms has transformed how investors perceive and interact with gold. The Metals-API plays a crucial role in this transformation by providing real-time and historical data that can be leveraged for various applications. By utilizing this API, developers can create tools that offer insights into market trends, enabling more strategic investment decisions.
Metals-API Overview
The Metals-API is a powerful tool designed to provide developers with access to real-time and historical data for various metals, including gold, silver, platinum, and palladium. The API is built with a focus on innovation and technological advancement, allowing users to harness the power of real-time metals data for their applications.
One of the standout features of the Metals-API is its ability to deliver accurate and timely data through various endpoints. These endpoints allow users to access the latest rates, historical data, and even perform conversions between different metals and currencies. The API is designed to be user-friendly, making it accessible for developers of all skill levels.
Key Features and Endpoints
The Metals-API offers a variety of endpoints, each serving a unique purpose. Hereβs a closer look at some of the key features:
Latest Rates Endpoint
The Latest Rates Endpoint provides real-time exchange rate data for various metals. Depending on your subscription plan, this endpoint can return data updated every 60 minutes or even every 10 minutes. This feature is essential for traders who need to make quick decisions based on the most current market conditions.
{
"success": true,
"timestamp": 1760072452,
"base": "USD",
"date": "2025-10-10",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
For those looking to analyze past performance, the Historical Rates Endpoint is invaluable. It allows users to access historical rates for most currencies dating back to 2019. By appending a specific date to the API call, developers can retrieve historical data that can be used for trend analysis and forecasting.
{
"success": true,
"timestamp": 1759986052,
"base": "USD",
"date": "2025-10-09",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-Series Endpoint
The Time-Series Endpoint allows users to query the API for daily historical rates between two dates of their choice. This feature is particularly useful for developers looking to visualize trends over time or to conduct detailed analyses of price movements.
{
"success": true,
"timeseries": true,
"start_date": "2025-10-03",
"end_date": "2025-10-10",
"base": "USD",
"rates": {
"2025-10-03": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-10-05": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-10-10": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
The Convert Endpoint is a versatile feature that allows users to convert any amount from one metal to another or to/from USD. This functionality is crucial for traders who need to quickly assess the value of their holdings in different currencies.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1760072452,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
The Fluctuation Endpoint provides insights into how metal prices fluctuate on a day-to-day basis. By tracking rate changes between two dates, developers can gain a better understanding of market volatility and make more informed trading decisions.
{
"success": true,
"fluctuation": true,
"start_date": "2025-10-03",
"end_date": "2025-10-10",
"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"
}
Open/High/Low/Close (OHLC) Price Endpoint
The OHLC Price Endpoint allows users to retrieve open, high, low, and close prices for a specific time period. This data is essential for traders who rely on candlestick charts and other technical analysis tools.
{
"success": true,
"timestamp": 1760072452,
"base": "USD",
"date": "2025-10-10",
"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
The Bid/Ask Endpoint provides current bid and ask prices for metals, allowing traders to gauge market sentiment and make informed decisions based on the current market spread.
{
"success": true,
"timestamp": 1760072452,
"base": "USD",
"date": "2025-10-10",
"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"
}
API Key and Authentication
To access the Metals-API, users must obtain an API key, which is a unique identifier passed into the API base URL's access_key parameter. This key is essential for authenticating requests and ensuring that users have the appropriate permissions to access the data they need.
API Response Structure
The API responses are structured in a way that provides clarity and ease of use. By default, exchange rates are relative to USD, and all data is returned in a consistent format. Understanding the structure of these responses is crucial for developers looking to integrate the API into their applications.
Common Use Cases
Developers can leverage the Metals-API for various applications, including:
- Building trading platforms that require real-time data for decision-making.
- Creating analytical tools that visualize historical price trends and fluctuations.
- Developing mobile applications that provide users with up-to-date gold prices and market news.
Performance Optimization and Security Considerations
When integrating the Metals-API, developers should consider performance optimization strategies, such as caching frequently accessed data and minimizing API calls. Additionally, implementing security best practices, such as validating input data and handling errors gracefully, is essential for maintaining the integrity of applications using the API.
Conclusion
The Metals-API is a powerful resource for developers looking to access comprehensive historical prices for SPDR Gold MiniShares (GLDM) and other precious metals. By utilizing its various endpoints, developers can create innovative applications that provide valuable insights into the metals market. With features like real-time rates, historical data access, and conversion capabilities, the API empowers users to make informed decisions based on accurate and timely information. For more information, refer to the Metals-API Documentation and explore the Metals-API Supported Symbols for a complete list of available metals.