Get Started with Gold Mar 2026 (GCH26) Historical Prices using this API
Get Started with Gold Mar 2026 (GCH26) Historical Prices using this API
In the ever-evolving landscape of precious metals trading, understanding historical prices is crucial for making informed investment decisions. Gold, represented by the symbol XAU, has long been a safe haven for investors, especially during times of economic uncertainty. With the advent of technology, accessing historical price data has become easier than ever, thanks to innovative solutions like the Metals-API. This blog post will guide you through the process of retrieving historical prices for Gold using the Metals-API, while also exploring the digital transformation in precious metals trading.
About Gold (XAU)
Gold has been a symbol of wealth and prosperity for centuries. In recent years, the digital transformation in the precious metals market has revolutionized how traders and investors access and analyze data. The integration of data analytics and market insights into trading strategies has empowered investors to make data-driven decisions. With the rise of technology, the price discovery process for Gold has become more transparent and efficient, allowing for innovative digital asset solutions.
The Metals-API provides a robust platform for accessing real-time and historical data for various metals, including Gold. By leveraging this API, developers can build next-generation applications that facilitate trading, investment analysis, and market forecasting. The ability to access historical price data is particularly valuable for understanding market trends and making informed decisions.
API Description
The Metals-API is a powerful tool that offers a wide range of capabilities for accessing metals data. It empowers developers to create applications that can retrieve real-time exchange rates, historical prices, and various other metrics related to precious metals. The API is designed with innovation and technological advancement in mind, making it an essential resource for anyone involved in the trading of metals.
One of the key features of the Metals-API is its ability to provide real-time data updates. Depending on your subscription plan, the API can return the latest exchange rate data every 60 minutes, every 10 minutes, or even more frequently. This real-time capability is essential for traders who need to make quick decisions based on the latest market conditions.
Additionally, the Metals-API offers a comprehensive documentation that outlines the various endpoints available, including the latest rates, historical rates, and conversion functionalities. This documentation serves as a valuable resource for developers looking to integrate the API into their applications.
Key Features and Endpoints
The Metals-API boasts a variety of endpoints that cater to different needs in the metals trading space. Here are some of the most notable features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for all available metals. Depending on your subscription plan, you can receive updates every few minutes, ensuring you have the most current information at your fingertips.
- Historical Rates Endpoint: Access historical rates for Gold and other metals dating back to 2019. By appending a specific date to your query, you can retrieve historical price data that is crucial for trend analysis.
- Bid and Ask Endpoint: This feature allows you to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, enabling you to convert amounts between different metals or to/from USD. This is particularly useful for traders dealing with multiple currencies.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice. This endpoint is invaluable for analyzing price movements over specific periods.
- Fluctuation Endpoint: Retrieve information about how prices fluctuate on a day-to-day basis, helping you understand market volatility.
- Carat Endpoint: Get information about Gold rates by carat, which is essential for jewelers and those in the jewelry industry.
- Lowest/Highest Price Endpoint: This endpoint allows you to query the API for the lowest and highest prices of Gold over a specified period, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: Access open, high, low, and close prices for Gold, providing a comprehensive view of market performance.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, which is essential for those trading on the London Metal Exchange.
- API Key: Your unique API key is required to access the API, ensuring secure and authorized usage.
- 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 features 14 different endpoints, each designed to provide specific functionalities related to metals trading.
- Supported Symbols Endpoint: This endpoint returns all available metal symbols, allowing you to easily find the symbols you need for your queries.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping you 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. This resource is invaluable for developers and traders looking to understand the available options for their queries.
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": 1765584113,
"base": "USD",
"date": "2025-12-13",
"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": 1765497713,
"base": "USD",
"date": "2025-12-12",
"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-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"
}
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1765584113,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
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
},
"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": 1765584113,
"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
},
"XPT": {
"open": 0.000915,
"high": 0.000918,
"low": 0.00091,
"close": 0.000912
}
},
"unit": "per troy ounce"
}
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1765584113,
"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
},
"XPT": {
"bid": 0.000911,
"ask": 0.000913,
"spread": 2.0e-6
}
},
"unit": "per troy ounce"
}
Conclusion
In conclusion, the Metals-API provides a comprehensive and innovative solution for accessing historical prices and real-time data for Gold and other precious metals. By leveraging the various endpoints available, developers can create powerful applications that facilitate trading, investment analysis, and market forecasting. The ability to access historical data dating back to 2019, along with real-time updates, positions the Metals-API as a vital tool in the modern trading landscape.
As the digital transformation in precious metals continues to evolve, the integration of data analytics and technology will play a crucial role in shaping the future of trading. By utilizing the Metals-API, developers can stay ahead of the curve and harness the power of real-time metals data to drive their applications forward.
For more information on how to get started with the Metals-API, be sure to check out the Metals-API Documentation and explore the Metals-API Supported Symbols for a complete list of available options. Embrace the future of precious metals trading with the Metals-API and unlock the potential of historical price data for Gold and beyond.