Request Gold Jun 2026 (GCM26) Historical Prices via this API
Request Gold Jun 2026 (GCM26) Historical Prices via this API
In the ever-evolving landscape of financial markets, the demand for precise and timely data has never been more critical. For those interested in the historical prices of Gold (XAU), the Metals-API provides a robust solution. This blog post delves into the capabilities of the Metals-API, focusing on how developers can leverage its features to obtain historical price data for Gold and other precious metals. We will explore the transformative potential of real-time metals data, the integration of technology in trading, and the innovative applications of data analytics in the precious metals market.
Metals-API Information
About Gold (XAU)
Gold has long been regarded as a safe haven asset, a store of value, and a hedge against inflation. In recent years, the digital transformation of precious metals has opened new avenues for trading and investment. The integration of technology in trading platforms has enabled investors to access real-time data, analyze market trends, and make informed decisions. The rise of data analytics has further enhanced market insights, allowing traders to identify patterns and forecast price movements.
As the market for digital assets continues to grow, the demand for innovative price discovery mechanisms has surged. Gold, as a digital asset, is increasingly being integrated into blockchain technologies, providing new solutions for secure transactions and transparent pricing. The Metals-API stands at the forefront of this transformation, offering developers the tools they need to build next-generation applications that harness the power of real-time metals data.
API Description
The Metals-API is a powerful tool designed to provide developers with access to real-time and historical data for various metals, including Gold (XAU). This API empowers users to build applications that require accurate and timely information about metal prices, enabling them to make data-driven decisions. The API's capabilities include retrieving the latest rates, historical prices, and even bid and ask prices for metals.
With the Metals-API, developers can access a wealth of information through various endpoints, each tailored to meet specific needs. The API's innovative design allows for seamless integration into existing applications, providing users with the flexibility to query data in real-time or analyze historical trends. For more information, visit the Metals-API Website or explore the Metals-API Documentation.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different data retrieval needs. Here are some of the key features:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint returns real-time exchange rate data updated every 60 minutes, every 10 minutes, or even more frequently. This feature is essential for traders who need up-to-the-minute pricing information.
- Historical Rates Endpoint: Historical rates are available for most currencies dating back to 2019. By appending a specific date to the API request, users can easily access historical price data for Gold and other metals.
- Bid And Ask Endpoint: This powerful feature allows users to retrieve real-time bid and ask prices, 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 metal to another or to/from USD, facilitating seamless transactions.
- Time-Series Endpoint: Users can query the API for daily historical rates between two dates of their choice, making it easy to analyze trends over specific periods.
- Fluctuation Endpoint: This endpoint provides information about how metal prices fluctuate on a day-to-day basis, allowing traders to assess volatility and market conditions.
- Carat Endpoint: Users can retrieve information about Gold rates by carat, which is particularly useful for jewelers and those in the jewelry industry.
- Lowest/Highest Price Endpoint: This feature allows users to query the API to get the lowest and highest price for a specified date, providing insights into market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can access the open, high, low, and close prices for a specific date, which is vital for technical analysis.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, offering a comprehensive view of market trends.
- API Key: Users must pass their unique API key into the API base URL's access_key parameter to authenticate their requests.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Available Endpoints: The Metals-API features 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: Users can retrieve the latest news articles related to various metals, keeping them informed about market developments.
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
To illustrate the capabilities of the Metals-API, here are some example responses for various endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1762434047,
"base": "USD",
"date": "2025-11-06",
"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
{
"success": true,
"timestamp": 1762347647,
"base": "USD",
"date": "2025-11-05",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-10-30",
"end_date": "2025-11-06",
"base": "USD",
"rates": {
"2025-10-30": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-11-01": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-11-06": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1762434047,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-10-30",
"end_date": "2025-11-06",
"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
{
"success": true,
"timestamp": 1762434047,
"base": "USD",
"date": "2025-11-06",
"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
{
"success": true,
"timestamp": 1762434047,
"base": "USD",
"date": "2025-11-06",
"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 seeking to access historical prices and real-time data for Gold and other precious metals. By leveraging its various endpoints, users can gain insights into market trends, analyze price fluctuations, and make informed trading decisions. The integration of technology in the precious metals market has transformed how traders interact with data, and the Metals-API stands as a testament to this evolution.
As the demand for accurate and timely information continues to grow, the Metals-API provides a comprehensive solution that empowers developers to build innovative applications. Whether you are looking to retrieve the latest rates, analyze historical data, or track fluctuations, the Metals-API offers the tools you need to succeed in the dynamic world of precious metals trading.
For more information on how to get started with the Metals-API, visit the Metals-API Documentation and explore the extensive features available. With the right tools and data at your fingertips, you can navigate the complexities of the metals market with confidence.