Discover Gold Feb 2026 (GCG26) Historical Prices with this API

Discover Gold Feb 2026 (GCG26) Historical Prices with this API
In the ever-evolving landscape of precious metals trading, understanding the historical prices of gold (symbol: XAU) is crucial for investors, traders, and developers alike. With the advent of advanced technologies and APIs, accessing real-time and historical data has become more streamlined than ever. One such powerful tool is the Metals-API, which provides comprehensive data on various metals, including gold. This blog post will delve into the capabilities of the Metals-API, focusing on how to retrieve historical prices for gold and the innovative features that make it an essential resource for developers.
About Gold (XAU)
Gold has long been regarded as a safe haven asset, a hedge against inflation, and a store of value. As digital transformation sweeps across financial markets, the integration of data analytics and technology in precious metals trading is reshaping how investors approach gold. The Metals-API stands at the forefront of this transformation, offering developers the tools needed to harness real-time data and historical insights.
With the rise of digital asset solutions, the demand for accurate and timely information has never been higher. The Metals-API provides a robust platform for accessing market insights, enabling users to make informed decisions based on historical trends and current market conditions. By leveraging data analytics, traders can identify patterns and optimize their trading strategies, making the Metals-API an invaluable resource in the world of gold trading.
API Description
The Metals-API is designed to empower developers to build next-generation applications that require real-time metals data. Its capabilities extend beyond mere price retrieval; it offers a suite of endpoints that provide a comprehensive view of the metals market. From the latest rates to historical data, the API facilitates seamless integration into various applications, allowing for innovative use cases.
For instance, developers can utilize the Latest Rates Endpoint to access real-time exchange rate data for gold and other metals. Depending on the subscription plan, this endpoint updates every 60 minutes or even every 10 minutes, ensuring that users have the most current information at their fingertips.
The Historical Rates Endpoint is particularly useful for those interested in analyzing past performance. It allows users to query historical rates dating back to 2019 by appending a specific date to the API request. This feature is essential for conducting trend analysis and understanding how gold prices have fluctuated over time.
Another powerful feature is the Bid and Ask Endpoint, which provides real-time bid and ask prices for gold. This information is crucial for traders looking to execute orders at the best possible prices. Additionally, the Convert Endpoint enables users to convert amounts between different metals or to/from USD, making it easier to manage investments across various assets.
The Time-Series Endpoint allows users to query daily historical rates between two chosen dates, providing a comprehensive view of price movements over time. This is particularly beneficial for those conducting in-depth analyses or backtesting trading strategies.
For those interested in understanding market volatility, the Fluctuation Endpoint provides insights into how gold prices fluctuate on a day-to-day basis. This data can help traders anticipate market movements and adjust their strategies accordingly.
Moreover, the Carat Endpoint allows users to retrieve gold rates by carat, catering to specific market needs. The Lowest/Highest Price Endpoint enables users to query the API for the lowest and highest prices within a specified timeframe, providing valuable insights into market extremes.
The Open/High/Low/Close (OHLC) Price Endpoint is another critical feature, allowing users to obtain the open, high, low, and close prices for gold on a given date. This data is essential for technical analysis and understanding market trends.
For those interested in the London Metal Exchange (LME), the Historical LME Endpoint provides access to historical rates for LME symbols dating back to 2008, further enhancing the API's utility for comprehensive market analysis.
To access the API, users need an API Key, which is passed into the API base URL's access_key parameter. This key is essential for authentication and ensures secure access to the API's features.
The API's response structure is designed for ease of use, with exchange rates delivered relative to USD by default. All data is returned in a JSON format, making it straightforward for developers to integrate into their applications.
Key Features and Endpoints
The Metals-API offers a wide range of endpoints, each providing unique functionalities that cater to various needs:
- Latest Rates Endpoint: Get real-time exchange rates for all available metals.
- Historical Rates Endpoint: Access historical exchange rates for any date since 1999.
- Time-Series Endpoint: Retrieve exchange rates for a specific time period.
- Convert Endpoint: Convert any amount from one metal to another or to/from USD.
- Fluctuation Endpoint: Track rate fluctuations between two dates.
- OHLC Price Endpoint: Get OHLC data for a specific time period.
- Bid/Ask Endpoint: Get current bid and ask prices for metals.
- Carat Endpoint: Retrieve information about gold rates by carat.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest price.
- Historical LME Endpoint: Access historical rates for LME symbols.
- News Endpoint: Retrieve the latest news articles related to various metals.
For a complete list of all supported symbols and their specifications, refer to the Metals-API Supported Symbols page.
API Endpoint Examples and Responses
Understanding how to interact with the Metals-API is crucial for effective implementation. Below are examples of API responses for various endpoints, showcasing the data structure and key fields.
Latest Rates Endpoint
{
"success": true,
"timestamp": 1760760080,
"base": "USD",
"date": "2025-10-18",
"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"
}
This response provides the latest exchange rates for gold (XAU) and other metals, with the base currency set to USD.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1760673680,
"base": "USD",
"date": "2025-10-17",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example illustrates how to access historical rates for a specific date, allowing users to analyze past performance.
Time-Series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-10-11",
"end_date": "2025-10-18",
"base": "USD",
"rates": {
"2025-10-11": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-10-13": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-10-18": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides a time series of exchange rates for gold over a specified period, enabling users to track price movements.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1760760080,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
The Convert Endpoint allows users to convert a specified amount from one currency to another, providing the conversion rate and resulting value.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-10-11",
"end_date": "2025-10-18",
"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"
}
This endpoint tracks fluctuations in gold prices over a specified period, providing insights into market volatility.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1760760080,
"base": "USD",
"date": "2025-10-18",
"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"
}
This response provides OHLC data for gold, which is essential for technical analysis and understanding market trends.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1760760080,
"base": "USD",
"date": "2025-10-18",
"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"
}
The Bid/Ask Endpoint provides current bid and ask prices for gold, which are crucial for traders looking to execute orders efficiently.
Conclusion
In conclusion, the Metals-API is a powerful tool for accessing historical prices and real-time data for gold and other precious metals. Its comprehensive suite of endpoints allows developers to build innovative applications that leverage market insights and data analytics. By utilizing features such as the Latest Rates, Historical Rates, and Time-Series endpoints, users can gain a deeper understanding of gold's market dynamics.
As the financial landscape continues to evolve, integrating technology into trading strategies will be essential for success. The Metals-API not only facilitates this integration but also empowers developers to create solutions that enhance decision-making processes. For more information on how to get started, refer to the Metals-API Documentation and explore the extensive capabilities of this API.
Whether you are a trader, developer, or investor, understanding the historical prices of gold through the Metals-API can provide you with the insights needed to navigate the complexities of the precious metals market effectively.