Access Gold Continuous Contract (GC00) prices with this API
Access Gold Continuous Contract (GC00) Prices with this API
The world of precious metals trading has undergone a significant transformation in recent years, driven by technological advancements and the increasing demand for real-time data. Among these precious metals, gold (symbol: XAU) stands out as a cornerstone of financial markets, serving as a safe haven for investors and a critical component in various industries. In this blog post, we will explore the capabilities of the Metals-API, which provides developers with access to real-time gold prices and other valuable data. We will delve into the features of this API, its endpoints, and how it empowers developers to create innovative applications that leverage gold market insights.
Metals-API Information
About Gold (XAU)
Gold has long been revered for its intrinsic value and stability, making it a popular choice for investors seeking to hedge against inflation and economic uncertainty. The digital transformation in precious metals trading has opened new avenues for data analytics and market insights, allowing traders to make informed decisions based on real-time information. The integration of technology in trading has revolutionized price discovery, enabling faster and more accurate assessments of market conditions.
As a digital asset, gold is now more accessible than ever, thanks to innovative solutions that facilitate trading and investment. The Metals-API plays a crucial role in this ecosystem by providing developers with the tools they need to access and analyze gold prices in real-time. This API not only offers the latest market rates but also historical data, bid and ask prices, and various conversion options, making it an invaluable resource for anyone involved in precious metals trading.
API Description
The Metals-API is designed to provide developers with comprehensive access to metals pricing data, including gold, silver, platinum, and palladium. With its real-time capabilities, the API empowers users to build next-generation applications that can analyze market trends, track price fluctuations, and provide insights into trading strategies.
One of the standout features of the Metals-API is its ability to deliver real-time exchange rate data, updated at intervals depending on the user's subscription plan. This ensures that developers can access the most current information available, which is critical for making timely trading decisions. Additionally, the API offers a range of endpoints that cater to various needs, from retrieving historical rates to converting currencies and tracking fluctuations.
Key Features and Endpoints
The Metals-API boasts a variety of endpoints that provide developers with the flexibility to access the data they need. Here are some of the key features:
- Latest Rates Endpoint: This endpoint returns real-time exchange rate data for gold and other metals, updated every 60 minutes, every 10 minutes, or even more frequently, depending on the subscription plan. This feature is essential for traders who require up-to-the-minute pricing information to make informed decisions.
- Historical Rates Endpoint: Developers can access historical rates dating back to 2019 by appending a specific date to the API request. This functionality allows for in-depth analysis of price trends over time, enabling users to identify patterns and make predictions based on historical data.
- Bid And Ask Endpoint: This powerful feature provides real-time bid and ask prices for gold and other metals, allowing traders to gauge market sentiment and make strategic decisions based on current market conditions.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, enabling users to convert any amount from one metal to another or to/from USD. This feature is particularly useful for traders who operate in multiple currencies and need to quickly assess the value of their holdings.
- Time-Series Endpoint: This endpoint allows users to query the API for daily historical rates between two specified dates. It is invaluable for conducting trend analyses and understanding how prices have changed over time.
- Fluctuation Endpoint: With this endpoint, developers can retrieve information about how metal prices fluctuate on a day-to-day basis. This data is crucial for traders looking to capitalize on short-term price movements.
- Carat Endpoint: This feature provides information about gold rates by carat, allowing users to assess the value of gold based on its purity.
- Lowest/Highest Price Endpoint: Users can query the API to get the lowest and highest prices for a specified date, providing insights into market volatility.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint allows users to retrieve open, high, low, and close prices for a specific date, which is essential for technical analysis.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, allowing for comprehensive analysis of market trends.
- API Key: Each user is assigned a unique API key that must be included in the API requests to authenticate access.
- API Response: The Metals-API delivers exchange rates relative to USD by default, ensuring consistency in data presentation.
- Available Endpoints: The API features 14 endpoints, each designed to provide specific functionalities tailored to the needs of developers.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies, ensuring users have access to the latest information.
- News Endpoint: The Metals-API includes a news feature that retrieves the latest articles related to various metals, keeping users informed about market developments.
List of Symbols
The Metals-API provides access to a comprehensive range of metal symbols, including gold (XAU), silver (XAG), platinum (XPT), and palladium (XPD). For a complete list of all supported symbols and their specifications, refer to the Metals-API Supported Symbols page.
API Endpoint Examples and Responses
To illustrate the capabilities of the Metals-API, let's explore some example responses for various endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1774310935,
"base": "USD",
"date": "2026-03-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"
}
This response indicates that the latest exchange rate for gold (XAU) is 0.000482 per troy ounce, providing a snapshot of the current market conditions.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1774224535,
"base": "USD",
"date": "2026-03-23",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows historical rates for gold and other metals on a specific date, allowing users to analyze past market performance.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2026-03-17",
"end_date": "2026-03-24",
"base": "USD",
"rates": {
"2026-03-17": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-03-19": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-03-24": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides daily historical rates for gold over a specified time period, enabling users to track price movements and identify trends.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1774310935,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This example demonstrates how the Convert Endpoint allows users to convert a specified amount from USD to gold (XAU), providing the equivalent value in troy ounces.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2026-03-17",
"end_date": "2026-03-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"
}
This response provides insights into how gold prices have fluctuated over a specified period, offering valuable information for traders looking to capitalize on market movements.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1774310935,
"base": "USD",
"date": "2026-03-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"
}
This endpoint provides open, high, low, and close prices for gold, which are essential for conducting technical analysis and making informed trading decisions.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1774310935,
"base": "USD",
"date": "2026-03-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"
}
This response provides the current bid and ask prices for gold, enabling traders to assess market conditions and make informed decisions based on the spread.
Conclusion
The Metals-API is a powerful tool for developers looking to access real-time gold prices and other precious metals data. With its extensive range of endpoints and capabilities, the API empowers users to build innovative applications that leverage market insights and analytics. By providing access to the latest rates, historical data, and various conversion options, the Metals-API enables traders to make informed decisions and capitalize on market opportunities.
As the digital landscape continues to evolve, the integration of technology in precious metals trading will only become more critical. The Metals-API stands at the forefront of this transformation, offering developers the tools they need to navigate the complexities of the gold market. For more information on how to get started with the Metals-API, visit the Metals-API Documentation and explore the full range of features available.