Get Historical Prices for Gold Jun 2026 (GCM26) through this API
Get Historical Prices for Gold Jun 2026 (GCM26) through this API
In the world of finance and investment, understanding the historical prices of precious metals like gold is crucial for making informed decisions. For those looking to track the historical prices of Gold (symbol: XAU) for June 2026, the Metals-API offers a robust solution. This API provides developers with the tools necessary to access real-time and historical data on various metals, enabling the creation of innovative applications that can analyze market trends and provide insights into price movements.
About Gold (XAU)
Gold has long been regarded as a safe haven asset, especially during times of economic uncertainty. Its value is influenced by a multitude of factors including geopolitical tensions, inflation rates, and changes in currency values. As digital transformation continues to reshape the financial landscape, the integration of data analytics and technology in trading precious metals is becoming increasingly important. The Metals-API allows developers to harness the power of real-time data, enabling them to build applications that can provide market insights and facilitate price discovery.
With the rise of digital asset solutions, the demand for accurate and timely data on gold prices has never been higher. The Metals-API empowers developers to create applications that can track fluctuations, analyze historical trends, and convert currencies seamlessly. By leveraging this API, developers can ensure that their applications remain competitive and relevant in a rapidly evolving market.
API Description
The Metals-API is designed to provide comprehensive access to metals pricing data. It offers a wide range of endpoints that allow users to retrieve the latest rates, historical prices, and even perform conversions between different metals and currencies. This API is particularly valuable for developers looking to create applications that require real-time data for trading, investment analysis, or market research.
One of the standout features of the Metals-API is its ability to deliver data in a user-friendly JSON format. This makes it easy for developers to integrate the API into their applications, regardless of the programming language they are using. The API is built with innovation in mind, allowing for seamless integration with existing systems and the creation of next-generation applications that can leverage real-time metals data.
Key Features and Endpoints
The Metals-API offers a variety of endpoints, each designed to fulfill specific needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated every 60 minutes or more frequently depending on your subscription plan. For example, a request to this endpoint might return the current price of gold, silver, platinum, and palladium.
- 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 the price of gold on that date, which is essential for analyzing trends over time.
- 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 dynamics.
- Convert Endpoint: The API includes a currency conversion feature, enabling users to convert any amount from one metal to another or to/from USD. This is particularly useful for traders who need to quickly assess the value of their holdings in different currencies.
- Time-Series Endpoint: This endpoint allows users to query the API for daily historical rates between two dates of their choice, making it easy to analyze price movements over specific periods.
- Fluctuation Endpoint: Users can track how metal prices fluctuate on a day-to-day basis, providing valuable insights into market volatility.
- Carat Endpoint: This feature allows users to retrieve information about gold rates by carat, which is essential for jewelers and those in the jewelry industry.
- Lowest/Highest Price Endpoint: Users can query the API to get the lowest and highest prices for a specific metal over a given period, which is crucial for understanding market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides the open, high, low, and close prices for a specific time period, which is vital for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, allowing for comprehensive market analysis.
- API Key: The API requires an API key for authentication, ensuring secure access to the data.
- API Response: The API delivers exchange rates relative to USD by default, with all data returned in a structured JSON format.
- Available Endpoints: The Metals-API includes 14 different endpoints, each providing unique functionalities tailored to various user needs.
- Supported Symbols Endpoint: This endpoint returns all available currencies and metals, ensuring users can access the data they need.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping users informed about market developments.
API Endpoint Examples and Responses
To illustrate how the Metals-API works, here are some example responses for various endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1761955371,
"base": "USD",
"date": "2025-11-01",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
{
"success": true,
"timestamp": 1761868971,
"base": "USD",
"date": "2025-10-31",
"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-25",
"end_date": "2025-11-01",
"base": "USD",
"rates": {
"2025-10-25": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-10-27": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-11-01": {
"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": 1761955371,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-10-25",
"end_date": "2025-11-01",
"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": 1761955371,
"base": "USD",
"date": "2025-11-01",
"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": 1761955371,
"base": "USD",
"date": "2025-11-01",
"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 a powerful tool for developers looking to access historical prices for gold and other precious metals. By leveraging its comprehensive endpoints, developers can create applications that provide real-time insights, track price fluctuations, and analyze historical trends. Whether you are building a trading platform, a market analysis tool, or a financial research application, the Metals-API offers the flexibility and functionality needed to succeed in today’s digital economy.
For more information on how to get started, visit the Metals-API Documentation and explore the Metals-API Supported Symbols to find the data you need. With the right tools and insights, you can navigate the complexities of the metals market and make informed investment decisions.