Get SPDR Gold Shares (GLD) prices for investment insights using this API
Get SPDR Gold Shares (GLD) Prices for Investment Insights Using This API
In the world of investment, particularly in precious metals, having access to real-time data is crucial for making informed decisions. The SPDR Gold Shares (GLD) is one of the most popular exchange-traded funds (ETFs) that tracks the price of gold bullion. To gain insights into GLD prices and other precious metals, developers can leverage the Metals-API. This API provides comprehensive data on various metals, including gold, silver, platinum, and palladium, enabling users to integrate real-time and historical data into their applications.
Metals-API Information
About Gold (XAU)
Gold, represented by the symbol XAU, has long been a symbol of wealth and a safe haven for investors. As digital transformation sweeps across financial markets, the integration of technology in trading precious metals has become increasingly vital. The Metals-API offers innovative solutions for accessing gold prices, allowing developers to harness data analytics for market insights.
With the rise of digital asset solutions, the ability to track gold prices in real-time has never been more important. The Metals-API empowers developers to build next-generation applications that can analyze market trends, forecast price movements, and provide users with actionable insights. By utilizing advanced data analytics, traders can make informed decisions based on real-time fluctuations in gold prices.
API Description
The Metals-API is a powerful tool that provides developers with access to real-time and historical data for various metals. Its capabilities extend beyond simple price retrieval; it offers a suite of endpoints designed to cater to different needs. Whether you are looking for the latest rates, historical data, or conversion capabilities, the Metals-API has you covered.
One of the standout features of the Metals-API is its ability to deliver real-time exchange rate data. Depending on your subscription plan, the API can update this data every 60 minutes or even every 10 minutes. This level of granularity is essential for traders who need to react quickly to market changes.
Moreover, the API provides historical rates dating back to 2019, allowing users to analyze trends over time. By appending a specific date to your query, you can retrieve historical rates for any metal, enabling comprehensive market analysis.
The Bid and Ask Endpoint is another powerful feature, offering real-time bid and ask prices for metals. This is crucial for traders looking to make quick decisions based on current market conditions. Additionally, the Convert Endpoint allows users to convert amounts between different metals or to/from USD, making it easier to manage investments across various assets.
The Time-Series Endpoint provides daily historical rates between two dates, which is invaluable for analyzing price movements over specific periods. Similarly, the Fluctuation Endpoint tracks how prices change day-to-day, offering insights into market volatility.
For those interested in detailed price analysis, the Open/High/Low/Close (OHLC) Price Endpoint provides essential data for understanding market trends. This endpoint allows users to query the API for the open, high, low, and close prices for a specific date, giving a comprehensive view of market performance.
Furthermore, the Lowest/Highest Price Endpoint enables users to query the API for the lowest and highest prices within a specified timeframe, which can be critical for identifying market extremes. The Historical LME Endpoint offers access to historical rates for LME symbols dating back to 2008, providing a wealth of data for analysis.
Key Features and Endpoints
The Metals-API boasts a variety of endpoints, each designed to fulfill specific needs:
- Latest Rates Endpoint: Get real-time exchange rates for all available metals, updated based on your subscription plan.
- Historical Rates Endpoint: Access historical exchange rates for any date since 2019.
- Bid And Ask Endpoint: Retrieve real-time bid and ask prices for metals.
- Convert Endpoint: Convert any amount from one metal to another or to/from USD.
- Time-Series Endpoint: Get exchange rates for a specific time period.
- Fluctuation Endpoint: Track rate fluctuations between two dates.
- Carat Endpoint: Retrieve information about gold rates by carat.
- Lowest/Highest Price Endpoint: Query for the lowest and highest price within a specified timeframe.
- Open/High/Low/Close (OHLC) Price Endpoint: Get OHLC data for a specific time period.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008.
- API Key: Your unique key for accessing the API.
- API Response: Exchange rates delivered by the API are relative to USD.
- Available Endpoints: The API comes with 14 endpoints, each providing different functionalities.
- Supported Symbols Endpoint: Get a constantly updated list of all available currencies.
- News Endpoint: Retrieve the latest news articles related to various metals.
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
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1769472914,
"base": "USD",
"date": "2026-01-27",
"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": 1769386514,
"base": "USD",
"date": "2026-01-26",
"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-01-20",
"end_date": "2026-01-27",
"base": "USD",
"rates": {
"2026-01-20": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-01-22": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-01-27": {
"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": 1769472914,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2026-01-20",
"end_date": "2026-01-27",
"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": 1769472914,
"base": "USD",
"date": "2026-01-27",
"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": 1769472914,
"base": "USD",
"date": "2026-01-27",
"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
The Metals-API is an invaluable resource for developers looking to integrate real-time and historical data on precious metals like gold, silver, platinum, and palladium into their applications. By utilizing its various endpoints, developers can access a wealth of information that can enhance trading strategies, improve market analysis, and provide users with actionable insights.
With features such as real-time rates, historical data, and conversion capabilities, the Metals-API stands out as a comprehensive solution for anyone involved in the precious metals market. For more information on how to implement this API and explore its capabilities, visit the Metals-API Documentation and check out the Metals-API Supported Symbols page for a complete list of available metals.
In a rapidly evolving digital landscape, the integration of technology in trading precious metals is not just an option; it is a necessity. By leveraging the Metals-API, developers can stay ahead of the curve and provide their users with the insights they need to navigate the complexities of the precious metals market.