Access Detailed Historical Prices for Gold Nov 2025 (GCX25) with this API
Access Detailed Historical Prices for Gold Nov 2025 (GCX25) with this API
In the ever-evolving landscape of financial markets, the demand for precise and timely data has never been more critical. For developers and traders focusing on precious metals, particularly gold (XAU), having access to detailed historical prices is essential for making informed decisions. The Metals-API provides a robust solution for accessing real-time and historical data on gold and other metals, empowering developers to create innovative applications that leverage this data for market insights and trading strategies.
About Gold (XAU)
Gold has long been regarded as a safe-haven asset, a hedge against inflation, and a store of value. As the world transitions into a more digital economy, the integration of technology in trading precious metals is becoming increasingly important. The digital transformation in precious metals trading is characterized by the use of data analytics and market insights to drive decision-making. With the rise of digital asset solutions, traders can now access real-time data and historical prices with unprecedented ease.
Metals-API stands at the forefront of this transformation, offering developers the tools they need to harness the power of data analytics in their trading applications. By utilizing the API, developers can integrate advanced features such as price discovery, market analysis, and trading automation into their platforms, ultimately enhancing the user experience and improving trading outcomes.
API Description
The Metals-API is a powerful JSON API that provides comprehensive access to metals prices, including gold, silver, platinum, and palladium. It allows developers to retrieve real-time and historical data, enabling them to build next-generation applications that can analyze market trends, track price fluctuations, and convert currencies seamlessly. The API is designed with innovation and technological advancement in mind, making it an essential tool for any developer working in the financial sector.
For detailed information on how to get started, refer to the Metals-API Documentation, which provides comprehensive guidance on utilizing the API's features effectively.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs, each designed to provide specific functionalities that can be integrated into trading applications. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated every 60 minutes or more frequently depending on your subscription plan. It allows developers to access the most current prices for gold and other metals, ensuring that their applications reflect the latest market conditions.
- Historical Rates Endpoint: With access to historical rates dating back to 2019, developers can query the Metals-API for past prices by appending a specific date to the request. This feature is invaluable for analyzing trends and making informed trading decisions based on historical performance.
- Bid And Ask Endpoint: This powerful feature enables developers to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and helping traders make timely decisions.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint that allows users to convert amounts from one metal to another or to/from USD. This functionality is essential for traders dealing with multiple currencies.
- Time-Series Endpoint: Developers can query the API for daily historical rates between two specified dates, allowing for in-depth analysis of price movements over time.
- Fluctuation Endpoint: This endpoint provides information on how metal prices fluctuate on a day-to-day basis, helping traders understand market volatility and make strategic decisions.
- Carat Endpoint: For those interested in gold rates by carat, this endpoint allows users to retrieve specific pricing information based on carat weight.
- Lowest/Highest Price Endpoint: This feature enables users to query the API for the lowest and highest prices of metals on a given date, providing insights into market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Developers can access OHLC data for specific time periods, which is crucial for technical analysis and understanding market trends.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, allowing for comprehensive analysis of metal prices over an extended period.
- API Key: Each user is assigned a unique API key that must be included in requests to authenticate 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.
- Available Endpoints: The Metals-API features 14 distinct endpoints, each offering unique functionalities tailored to various trading needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies and metal symbols, ensuring that developers have access to the latest information.
For a complete list of supported symbols and their specifications, visit the Metals-API Supported Symbols page.
API Endpoint Examples and Responses
Understanding the API's response structure is crucial for effective implementation. Below are examples of responses from various endpoints, illustrating how to interpret the data returned by the Metals-API.
Latest Rates Endpoint
{
"success": true,
"timestamp": 1779927614,
"base": "USD",
"date": "2026-05-28",
"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 a successful request, providing the latest exchange rates for various metals relative to USD. The "rates" object contains the current price of gold (XAU) and other metals per troy ounce.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1779841214,
"base": "USD",
"date": "2026-05-27",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows the historical exchange rates for a specific date, allowing developers to analyze past performance and trends in the gold market.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2026-05-21",
"end_date": "2026-05-28",
"base": "USD",
"rates": {
"2026-05-21": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-05-23": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-05-28": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides daily historical rates for the specified time period, enabling developers to visualize trends and fluctuations in gold prices over time.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1779927614,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
The Convert Endpoint allows users to convert a specified amount from one currency to another. In this case, it shows the conversion of $1000 to gold (XAU), resulting in 0.482 troy ounces.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2026-05-21",
"end_date": "2026-05-28",
"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 metal prices fluctuated over a specified period, highlighting both the absolute change and percentage change for each metal.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1779927614,
"base": "USD",
"date": "2026-05-28",
"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"
}
The OHLC endpoint provides critical data for traders, allowing them to analyze price movements within a specific time frame, which is essential for technical analysis.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1779927614,
"base": "USD",
"date": "2026-05-28",
"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 endpoint provides the current bid and ask prices for metals, along with the spread, which is crucial for traders looking to execute orders at the best possible prices.
Conclusion
Accessing detailed historical prices for gold and other metals is essential for developers and traders alike. The Metals-API offers a comprehensive suite of features that empower users to analyze market trends, track price fluctuations, and make informed trading decisions. By leveraging the API's capabilities, developers can create innovative applications that enhance the trading experience and provide valuable insights into the precious metals market.
For further exploration of the API's features and to get started with your integration, refer to the Metals-API Documentation and explore the Metals-API Supported Symbols for a complete list of available data. Embrace the future of trading with the Metals-API and unlock the potential of real-time metals data.