Retrieve SPDR Gold Shares (GLD) Prices Across Different Currencies Using this API
Retrieve SPDR Gold Shares (GLD) Prices Across Different Currencies Using this API
In today's global economy, the demand for accurate and real-time pricing of precious metals, such as gold, has never been more critical. The Metals-API provides a robust solution for developers looking to retrieve SPDR Gold Shares (GLD) prices across various currencies. This API not only delivers precise data but also empowers businesses to leverage market insights, enhance trading strategies, and innovate in price discovery.
About Gold (XAU)
Gold, represented by the symbol XAU, has long been a cornerstone of financial markets and investment portfolios. As digital transformation sweeps through the financial sector, the integration of technology in trading precious metals is becoming increasingly essential. The Metals-API stands at the forefront of this transformation, offering developers access to real-time data analytics that can drive informed decision-making.
With the rise of digital asset solutions, understanding gold prices in different currencies is crucial for businesses operating in international markets. The Metals-API provides a seamless way to access this information, allowing for innovative applications in trading, investment analysis, and market forecasting.
API Description
The Metals-API is designed to provide developers with the tools necessary to build next-generation applications that require real-time metals data. This API offers a wide range of endpoints, each tailored to meet specific needs, from retrieving the latest gold prices to accessing historical data for analysis.
One of the standout features of the Metals-API is its ability to deliver accurate pricing information across multiple currencies. This capability is essential for businesses that need to operate in diverse financial environments, ensuring that they can make informed decisions based on the most current data available.
Key Features and Endpoints
The Metals-API boasts several key features that enhance its functionality:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint provides real-time exchange rate data updated every 60 minutes, every 10 minutes, or even more frequently. This ensures that users have access to the most current pricing information for gold and other metals.
- 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 past pricing data, which is invaluable for trend analysis and forecasting.
- Bid and Ask Endpoint: This powerful feature allows users to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The API includes a currency conversion endpoint, enabling users to convert any amount from one currency to another, facilitating seamless transactions across different financial environments.
- Time-Series Endpoint: This endpoint allows users to query the API for daily historical rates between two chosen dates, making it easier to analyze trends over time.
- Fluctuation Endpoint: Users can track how currencies fluctuate on a day-to-day basis, providing insights into market volatility and price movements.
- Carat Endpoint: This feature allows users to retrieve information about gold rates by carat, catering to businesses involved in jewelry and precious metal trading.
- Lowest/Highest Price Endpoint: Users can query the API to get the lowest and highest prices for gold over a specified period, aiding in investment decision-making.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides comprehensive pricing data, including open, high, low, and close prices, which are essential for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, allowing for extensive market analysis.
- API Key: Each user receives a unique API key that must be included in requests, ensuring secure access to the API's features.
- API Response: The API delivers exchange rates relative to USD by default, with all data returned in a structured JSON format for easy integration.
- Available Endpoints: The Metals-API offers 14 different endpoints, each providing unique functionalities tailored to various user needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies, ensuring users have access to the latest information.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping users informed about market trends and developments.
API Endpoint Examples and Responses
To illustrate the capabilities of the Metals-API, here are some example responses from key endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1765584199,
"base": "USD",
"date": "2025-12-13",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
This response provides real-time exchange rates for gold (XAU) and other metals, allowing developers to integrate this data into their applications seamlessly.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1765497799,
"base": "USD",
"date": "2025-12-12",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"unit": "per troy ounce"
}
This endpoint allows users to access historical pricing data, which is crucial for analyzing market trends and making informed investment decisions.
Time-Series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-12-06",
"end_date": "2025-12-13",
"base": "USD",
"rates": {
"2025-12-06": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-12-08": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-12-13": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response showcases how the API can provide historical rates over a specified time period, allowing for detailed analysis of price movements.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1765584199,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
The Convert Endpoint allows users to easily convert amounts between different currencies, facilitating transactions and financial analysis.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-12-06",
"end_date": "2025-12-13",
"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
}
},
"unit": "per troy ounce"
}
This endpoint provides insights into how prices fluctuate over time, which is essential for traders looking to capitalize on market movements.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1765584199,
"base": "USD",
"date": "2025-12-13",
"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
}
},
"unit": "per troy ounce"
}
This endpoint provides comprehensive pricing data, which is crucial for technical analysis and understanding market trends.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1765584199,
"base": "USD",
"date": "2025-12-13",
"rates": {
"XAU": {
"bid": 0.000481,
"ask": 0.000483,
"spread": 2.0e-6
},
"XAG": {
"bid": 0.0381,
"ask": 0.0382,
"spread": 0.0001
}
},
"unit": "per troy ounce"
}
This endpoint provides current bid and ask prices, which are essential for traders looking to execute orders at optimal prices.
Conclusion
The Metals-API is a powerful tool for developers and businesses looking to access real-time gold prices across different currencies. With its extensive range of endpoints and capabilities, this API not only facilitates accurate pricing but also empowers users to make informed decisions based on comprehensive market insights.
By leveraging the features of the Metals-API, businesses can enhance their trading strategies, optimize their operations, and stay ahead in the competitive landscape of precious metals trading. For more information, visit the Metals-API Documentation and explore the Metals-API Supported Symbols for a complete list of available currencies.
In a world where data drives decisions, the Metals-API stands out as a transformative solution for accessing and utilizing precious metals data effectively. Whether you are a developer building innovative applications or a business seeking to optimize your trading strategies, the Metals-API offers the tools and insights you need to succeed.