Download Gold Feb 2028 (GCG28) Historical Prices via this API
Download Gold Feb 2028 (GCG28) Historical Prices via this API
In the world of finance and trading, gold (XAU) has always held a significant place as a precious metal and a hedge against inflation. With the advent of technology, the way we access and analyze gold prices has transformed dramatically. One of the most innovative tools available for developers and traders alike is the Metals-API. This API provides real-time and historical data on various metals, including gold, enabling users to make informed decisions based on accurate market insights.
About Gold (XAU)
Gold has been a symbol of wealth and stability for centuries. In recent years, the digital transformation in precious metals has opened new avenues for trading and investment. The integration of data analytics and technology in trading has revolutionized the way traders interact with gold markets. With the Metals-API, developers can leverage real-time data to create applications that provide innovative solutions for price discovery and market analysis.
The API empowers users to access historical prices, analyze trends, and gain insights into market fluctuations. By utilizing advanced data analytics, traders can make more informed decisions, optimizing their trading strategies. The integration of technology in trading not only enhances efficiency but also allows for better risk management and investment strategies.
API Description
The Metals-API is designed to provide developers with comprehensive access to metals data, including gold prices. This API is a powerful tool that enables users to build next-generation applications that can analyze and visualize metal prices in real-time. With its innovative capabilities, the Metals-API transforms how traders and developers interact with precious metals.
For detailed information on how to use the API, you can refer to the Metals-API Documentation. This documentation provides a thorough overview of the API's capabilities, including endpoints, parameters, and response formats.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated every 60 minutes, every 10 minutes, or even more frequently, depending on your subscription plan. This feature is essential for traders who need up-to-the-minute pricing information.
- Historical Rates Endpoint: Users can access historical rates dating back to 2019. By appending a specific date to the API request, developers can retrieve past prices, which is crucial for trend analysis and forecasting.
- Bid And Ask Endpoint: This feature allows users to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The API includes a currency conversion feature, enabling users to convert amounts between different metals or from/to USD. This is particularly useful for traders dealing with multiple currencies.
- Time-Series Endpoint: This endpoint allows users to query daily historical rates between two specified dates, making it easier to analyze price movements over time.
- Fluctuation Endpoint: Users can track how metal prices fluctuate on a day-to-day basis, which is vital for understanding market volatility.
- Carat Endpoint: This feature provides information about gold rates by carat, allowing jewelers and traders to assess gold value based on purity.
- Lowest/Highest Price Endpoint: Users can query the API to find the lowest and highest prices for a specified date, which is essential for identifying market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides the open, high, low, and close prices for a specific date, offering a comprehensive view of daily price action.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, which is beneficial for users interested in long-term trends.
- API Key: Each user is assigned a unique API key, which is required for authentication when making requests to the API.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Available Endpoints: The Metals-API features 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 data.
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
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1783296912,
"base": "USD",
"date": "2026-07-06",
"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": 1783210512,
"base": "USD",
"date": "2026-07-05",
"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": "2026-06-29",
"end_date": "2026-07-06",
"base": "USD",
"rates": {
"2026-06-29": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-07-01": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-07-06": {
"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": 1783296912,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2026-06-29",
"end_date": "2026-07-06",
"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": 1783296912,
"base": "USD",
"date": "2026-07-06",
"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": 1783296912,
"base": "USD",
"date": "2026-07-06",
"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
The Metals-API is a powerful tool for developers and traders looking to access comprehensive data on gold and other precious metals. By leveraging its various endpoints, users can gain insights into real-time pricing, historical trends, and market fluctuations. The ability to convert currencies, track fluctuations, and analyze OHLC data provides a robust framework for making informed trading decisions.
As the financial landscape continues to evolve, the integration of technology and data analytics in trading will only become more critical. The Metals-API stands out as a leading solution for those seeking to harness the power of real-time metals data. For more information, visit the Metals-API Website and explore the Metals-API Documentation for detailed guidance on implementation.
In summary, whether you are a seasoned trader or a developer looking to create innovative applications, the Metals-API provides the tools necessary to navigate the complex world of precious metals trading effectively.