Download Gold Continuous Contract (GC00) Historical Prices from this API

Download Gold Continuous Contract (GC00) Historical Prices from this API
In the world of trading and investment, having access to accurate and timely data is crucial. For those interested in precious metals, particularly gold (symbol: XAU), the Metals-API offers a powerful solution for obtaining historical prices and real-time data. This blog post will explore the capabilities of the Metals-API, focusing on how developers can leverage this tool to access historical prices for gold and other metals, enabling informed decision-making and strategic trading.
Metals-API Information
About Gold (XAU)
Gold has long been a symbol of wealth and stability, serving as a hedge against inflation and economic uncertainty. In recent years, the digital transformation in precious metals has revolutionized how traders and investors access and analyze gold data. With the integration of advanced data analytics and technology, market insights have become more accessible, allowing for innovative approaches to price discovery and trading strategies.
The rise of digital asset solutions has further enhanced the trading landscape, enabling users to interact with gold markets in real-time. By utilizing APIs like Metals-API, developers can create applications that provide users with up-to-date information on gold prices, historical trends, and market fluctuations, all of which are essential for making informed investment decisions.
API Description
The Metals-API is a comprehensive solution for accessing real-time and historical data on various metals, including gold, silver, platinum, and palladium. This API empowers developers to build next-generation applications that can analyze market trends, track price movements, and provide users with actionable insights. The API is designed with innovation in mind, offering a range of endpoints that cater to different data needs.
For more information, visit the Metals-API Website or check out the Metals-API Documentation for detailed guidance on implementation.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that provide different functionalities, allowing developers to tailor their applications to specific needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals. Depending on your subscription plan, the API can return updates every 60 minutes, every 10 minutes, or even more frequently. This feature is essential for traders who require up-to-the-minute information to make quick decisions.
- 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 historical price data for gold and other metals, which is vital for trend analysis and forecasting.
- Bid And Ask Endpoint: This powerful feature allows users to retrieve real-time bid and ask prices for metals, providing insight into market liquidity and pricing dynamics.
- Convert Endpoint: The API includes a currency conversion endpoint, enabling users to convert amounts from one metal to another or to/from USD. This is particularly useful for traders operating in different currencies.
- Time-Series Endpoint: Developers can query the API for daily historical rates between two specified dates, allowing for comprehensive analysis of price movements over time.
- Fluctuation Endpoint: This endpoint provides information about how metal prices fluctuate on a day-to-day basis, offering insights into market volatility and trends.
- Carat Endpoint: Users can retrieve information about gold rates by carat, which is essential for jewelers and those involved in the jewelry market.
- Lowest/Highest Price Endpoint: This feature allows users to query the API for the lowest and highest prices of metals over a specified period, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific date, which is crucial for traders looking to analyze market performance.
- Historical LME Endpoint: For those interested in LME symbols, this endpoint provides historical rates dating back to 2008, allowing for extensive market research.
- API Key: Each user is assigned a unique API key that must be included in requests to authenticate and authorize access to the API.
- API Response: The API delivers exchange rates relative to USD by default, with all data returned in a structured JSON format for easy integration into applications.
- Available Endpoints: The Metals-API includes 14 different endpoints, each designed to provide specific functionalities tailored to user needs.
- Supported Symbols Endpoint: This endpoint returns a constantly updated list of all available currencies and metals, ensuring users have access to the latest information.
- Gold Price India Endpoint: Users can retrieve the latest gold price in India using this dedicated endpoint, which is particularly useful for traders in the Indian market.
- News Endpoint: The API allows users to access 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.
API Endpoint Examples and Responses
Understanding the structure of API responses is crucial for developers. Below are examples of various endpoints and their responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1758700828,
"base": "USD",
"date": "2025-09-24",
"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": 1758614428,
"base": "USD",
"date": "2025-09-23",
"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-09-17",
"end_date": "2025-09-24",
"base": "USD",
"rates": {
"2025-09-17": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-09-19": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-09-24": {
"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": 1758700828,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2025-09-17",
"end_date": "2025-09-24",
"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": 1758700828,
"base": "USD",
"date": "2025-09-24",
"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": 1758700828,
"base": "USD",
"date": "2025-09-24",
"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 robust and versatile solution for developers looking to access historical prices and real-time data for gold and other precious metals. With a wide range of endpoints, including the latest rates, historical rates, and various conversion options, this API empowers users to build applications that can analyze market trends and make informed trading decisions.
By leveraging the capabilities of the Metals-API, developers can create innovative solutions that enhance the trading experience, provide valuable insights, and facilitate better decision-making in the precious metals market. For more detailed information on how to implement these features, refer to the Metals-API Documentation and explore the Metals-API Supported Symbols page for a comprehensive list of available metals.
As the digital landscape continues to evolve, the integration of advanced technologies and data analytics in trading will only become more critical. The Metals-API stands at the forefront of this transformation, offering developers the tools they need to succeed in the dynamic world of precious metals trading.