Get SPDR Gold Shares (GLD) Monthly Historical Prices using this API

Get SPDR Gold Shares (GLD) Monthly Historical Prices using this API
In the ever-evolving landscape of financial markets, the demand for accurate and timely data is paramount. For investors and developers interested in precious metals, particularly gold, the ability to access historical prices is crucial. This blog post will delve into the intricacies of obtaining monthly historical prices for SPDR Gold Shares (GLD) using the Metals-API. We will explore the features of the API, the significance of gold in the digital transformation of precious metals, and how data analytics can provide market insights that empower traders and investors alike.
Metals-API Information
The Metals-API is a powerful tool designed for developers and financial analysts who require real-time and historical data on various metals, including gold (XAU). With its robust architecture and user-friendly interface, the API allows users to integrate metal price data into their applications seamlessly. This capability is particularly beneficial for those looking to build next-generation trading platforms or analytical tools that leverage real-time data for decision-making.
About Gold (XAU)
Gold has long been a symbol of wealth and stability, making it a popular choice for investors seeking to hedge against inflation and economic uncertainty. In recent years, the digital transformation in precious metals has opened new avenues for trading and investment. The integration of technology in trading has revolutionized how investors access and analyze market data. With the advent of data analytics, traders can gain insights into market trends and make informed decisions based on historical price movements.
Moreover, innovation in price discovery mechanisms has made it easier for investors to understand the dynamics of gold pricing. Digital asset solutions have emerged, allowing for more efficient trading and investment strategies. By utilizing APIs like Metals-API, developers can create applications that provide real-time updates and historical data, enhancing the overall trading experience.
API Description
The Metals-API offers a comprehensive suite of features that empower developers to access a wealth of information about precious metals. The API is designed to provide real-time and historical data, enabling users to build applications that require accurate and timely information. The transformative potential of real-time metals data cannot be overstated, as it allows for the development of applications that can respond to market changes instantaneously.
For detailed information on how to utilize the API, refer to the Metals-API Documentation. This resource provides comprehensive guidance on the various endpoints available, including how to authenticate and make requests.
Key Features and Endpoints
The Metals-API boasts a variety of endpoints that cater to different data needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated based on your subscription plan. Depending on the plan, updates can occur every 60 minutes, every 10 minutes, or more frequently.
- Historical Rates Endpoint: Users can access historical rates for most currencies dating back to 2019. By appending a specific date to the API request, developers can retrieve historical price data for gold and other metals.
- Bid And Ask Endpoint: This feature allows users to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing.
- Convert Endpoint: The API includes a currency conversion feature, enabling users to convert amounts between different metals or to/from USD.
- Time-Series Endpoint: This endpoint allows users to query daily historical rates between two chosen dates, facilitating trend analysis over specific periods.
- Fluctuation Endpoint: Users can track how metal prices fluctuate on a day-to-day basis, providing insights into market volatility.
- Carat Endpoint: This feature allows users to retrieve gold rates based on carat measurements, which is particularly useful for jewelers and traders in the jewelry market.
- Lowest/Highest Price Endpoint: Users can query the API to find the lowest and highest prices for a given date, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specified date, essential for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, useful for those interested in industrial metals.
- API Key: Each user is assigned a unique API key, which must be included in requests to authenticate access.
- API Response: The API returns exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available currencies and metals supported by the API.
- Gold Price India Endpoint: Retrieve the latest gold price in India using this dedicated endpoint, catering to regional market needs.
- News Endpoint: Stay updated with the latest news articles related to various metals, providing context to market movements.
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. This resource is invaluable for developers looking to integrate specific metal data into their applications.
API Endpoint Examples and Responses
Understanding the structure of API responses is crucial for effective implementation. Below are examples of various API endpoints and their corresponding JSON responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1760414510,
"base": "USD",
"date": "2025-10-14",
"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": 1760328110,
"base": "USD",
"date": "2025-10-13",
"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": "2025-10-07",
"end_date": "2025-10-14",
"base": "USD",
"rates": {
"2025-10-07": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-10-09": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-10-14": {
"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": 1760414510,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2025-10-07",
"end_date": "2025-10-14",
"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": 1760414510,
"base": "USD",
"date": "2025-10-14",
"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": 1760414510,
"base": "USD",
"date": "2025-10-14",
"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 solution for accessing real-time and historical data on precious metals, particularly gold. By leveraging the various endpoints available, developers can create sophisticated applications that cater to the needs of traders and investors. The digital transformation in precious metals trading, combined with the power of data analytics, allows for enhanced market insights and informed decision-making.
For those looking to integrate precious metals data into their applications, the Metals-API is an invaluable resource. With its extensive documentation and support for various endpoints, developers can easily access the information they need to stay ahead in the market. Whether you are interested in real-time rates, historical data, or market fluctuations, the Metals-API has you covered.
To get started, visit the Metals-API Website and explore the Metals-API Documentation for detailed guidance on implementation. Don't forget to check the Metals-API Supported Symbols page for a complete list of available metals and currencies.