Obtain Gold Mar 2026 (GCH26) Historical Prices via this API

Introduction
In the ever-evolving landscape of financial technology, the demand for precise and real-time data has never been more critical, especially in the realm of precious metals trading. One of the most sought-after commodities is gold, represented by the symbol XAU. Obtaining historical prices for gold, such as the Gold Mar 2026 (GCH26) contract, can be seamlessly achieved through the Metals-API. This blog post delves into the capabilities of the Metals-API, focusing on how developers can leverage its features to access historical prices and gain valuable insights into the gold market.
Metals-API Information
About Gold (XAU)
Gold has long been a symbol of wealth and stability, often regarded as a safe haven during economic uncertainty. With the digital transformation sweeping across various industries, the precious metals market is no exception. The integration of technology in trading has revolutionized how investors and traders access market data, analyze trends, and make informed decisions.
Data analytics plays a pivotal role in understanding market dynamics. By utilizing advanced analytics tools, traders can derive insights from historical price movements, identify patterns, and forecast future trends. The Metals-API provides developers with the ability to harness this data, enabling the creation of applications that can analyze gold prices over time, assess volatility, and optimize trading strategies.
Moreover, the innovation in price discovery mechanisms has transformed how gold is valued. With the advent of digital asset solutions, investors can now trade gold in various forms, including ETFs and cryptocurrencies backed by gold. This diversification has opened new avenues for investment and trading, making it essential for developers to access accurate and timely data.
API Description
The Metals-API is designed to provide developers with comprehensive access to real-time and historical data for various metals, including gold. Its capabilities extend beyond mere price retrieval; it empowers developers to build next-generation applications that can analyze, visualize, and predict market trends.
With a focus on innovation and technological advancement, the Metals-API offers a suite of endpoints that cater to different data needs. Whether you are looking for the latest rates, historical prices, or detailed market fluctuations, this API has you covered. The transformative potential of real-time metals data cannot be overstated, as it enables developers to create applications that can respond to market changes instantaneously.
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 for gold and other metals, updated every 60 minutes or more frequently. This ensures that traders have access to the most current market information.
- Historical Rates Endpoint: Access historical rates for gold dating back to 2019. By appending a specific date to your query, you can retrieve past prices, allowing for in-depth analysis of market trends.
- Bid and Ask Endpoint: This powerful feature enables users to retrieve real-time bid and ask prices for gold, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The conversion endpoint allows users to convert amounts between different metals or to/from USD, facilitating seamless transactions and calculations.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice, enabling users to analyze price movements over specific periods.
- Fluctuation Endpoint: Track how gold prices fluctuate on a day-to-day basis, providing insights into market volatility and trends.
- Carat Endpoint: Retrieve information about gold rates by carat, which is particularly useful for jewelers and consumers interested in specific gold qualities.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest price for gold over a specified period, aiding in market analysis and decision-making.
- Open/High/Low/Close (OHLC) Price Endpoint: Access detailed OHLC data for gold, which is crucial for traders looking to analyze price movements and make informed trading decisions.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a broader context for market analysis.
- API Key: Your unique API key is essential for accessing the Metals-API, ensuring secure and authorized usage.
- API Response: The API delivers exchange rates relative to USD, with all data returned in a structured JSON format, making it easy to integrate into applications.
- Available Endpoints: The Metals-API offers a variety of endpoints, each designed to fulfill specific data needs, ensuring comprehensive coverage of the metals market.
- Supported Symbols Endpoint: Access a constantly updated list of all available metal symbols, ensuring you have the latest information at your fingertips.
- Gold Price India Endpoint: Retrieve the latest gold price in India, catering to a global audience interested in regional pricing.
- News Endpoint: Stay updated with the latest news articles related to various metals, providing context and insights into market movements.
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 looking to integrate specific metal data into their applications.
API Endpoint Examples and Responses
Understanding the API responses is crucial for effective integration. Below are examples of various endpoints and their corresponding JSON responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1755885638,
"base": "USD",
"date": "2025-08-22",
"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
Access historical exchange rates for any date since 1999:
{
"success": true,
"timestamp": 1755799238,
"base": "USD",
"date": "2025-08-21",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
Get exchange rates for a specific time period:
{
"success": true,
"timeseries": true,
"start_date": "2025-08-15",
"end_date": "2025-08-22",
"base": "USD",
"rates": {
"2025-08-15": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-08-17": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-08-22": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
Convert any amount from one metal to another or to/from USD:
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1755885638,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2025-08-15",
"end_date": "2025-08-22",
"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
Get OHLC data for a specific time period:
{
"success": true,
"timestamp": 1755885638,
"base": "USD",
"date": "2025-08-22",
"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
Get current bid and ask prices for metals:
{
"success": true,
"timestamp": 1755885638,
"base": "USD",
"date": "2025-08-22",
"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 serves as 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, developers can create sophisticated applications that analyze market trends, optimize trading strategies, and provide users with actionable insights. The integration of technology in the precious metals market is transforming how investors engage with these assets, and the Metals-API is at the forefront of this revolution.
For those interested in exploring the full capabilities of the Metals-API, I encourage you to visit the Metals-API Documentation for detailed information on each endpoint. Additionally, the Metals-API Supported Symbols page provides a comprehensive list of available metal symbols, ensuring you have the necessary data for your applications. Embrace the future of precious metals trading with the power of real-time data at your fingertips!