Integrate Gold Aug 2025 (GCQ25) Historical Prices into your app with this API
Integrate Gold Aug 2025 (GCQ25) Historical Prices into Your App with This API
In the ever-evolving landscape of financial technology, the integration of real-time data into applications has become a cornerstone for developers. One of the most sought-after commodities in this realm is gold (XAU), a timeless asset that has maintained its value across centuries. With the Metals-API, developers can seamlessly access historical prices of gold and other precious metals, enabling them to create innovative applications that provide market insights and analytics.
About Gold (XAU)
Gold has long been a symbol of wealth and stability. In recent years, the digital transformation in precious metals has opened new avenues for data analytics and market insights. Developers can leverage technology integration in trading to enhance user experiences and provide real-time information. The innovation in price discovery through APIs like Metals-API allows for the creation of digital asset solutions that cater to the needs of modern investors.
API Description
The Metals-API is a powerful tool that provides developers with access to real-time and historical metals data. This API empowers developers to build next-generation applications that can analyze trends, track prices, and provide insights into the precious metals market. With its robust features, the Metals-API stands out as a transformative solution for those looking to integrate gold pricing data into their applications.
For comprehensive guidance on how to utilize the API, developers can refer to the Metals-API Documentation, which outlines all available endpoints, their functionalities, and how to implement them effectively.
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 gold and other metals. Depending on your subscription plan, the data can be updated every 60 minutes or every 10 minutes. This feature is essential for applications that require up-to-the-minute pricing information.
- Historical Rates Endpoint: Access historical rates for gold dating back to 2019. By appending a specific date in the format YYYY-MM-DD, developers can retrieve past pricing data, which is invaluable for trend analysis and forecasting.
- Bid and Ask Endpoint: This feature allows developers to retrieve real-time bid and ask prices for gold. Understanding the spread between these prices is crucial for traders looking to make informed decisions.
- Convert Endpoint: The Metals-API includes a currency conversion feature that enables users to convert amounts from one metal to another or to/from USD. This is particularly useful for applications that deal with multiple currencies.
- Time-Series Endpoint: Developers can query the API for daily historical rates between two dates of their choice. This endpoint is ideal for applications that require a comprehensive view of price movements over time.
- Fluctuation Endpoint: This endpoint provides insights into how gold prices fluctuate on a day-to-day basis. By tracking these fluctuations, developers can offer users valuable information about market volatility.
- Carat Endpoint: Retrieve information about gold rates by carat. This feature is essential for applications focused on jewelry and precious metal trading.
- Lowest/Highest Price Endpoint: This endpoint allows developers to query the API for the lowest and highest prices of gold over a specified period, helping users identify market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Access open, high, low, and close prices for gold on a specific date. This data is crucial for technical analysis and trading strategies.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a broader context for market analysis.
- 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 returns exchange rates relative to USD, ensuring consistency across all data provided.
- Available Endpoints: The Metals-API features 14 different endpoints, each designed to fulfill specific data needs.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available currencies and metals, ensuring developers have access to the latest information.
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": 1780013915,
"base": "USD",
"date": "2026-05-29",
"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": 1779927515,
"base": "USD",
"date": "2026-05-28",
"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-05-22",
"end_date": "2026-05-29",
"base": "USD",
"rates": {
"2026-05-22": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-05-24": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-05-29": {
"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": 1780013915,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2026-05-22",
"end_date": "2026-05-29",
"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": 1780013915,
"base": "USD",
"date": "2026-05-29",
"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": 1780013915,
"base": "USD",
"date": "2026-05-29",
"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
Integrating gold historical prices into your application using the Metals-API can significantly enhance the functionality and user experience of your financial tools. By leveraging the various endpoints, developers can access real-time data, historical trends, and market fluctuations, enabling them to create applications that provide valuable insights to users. The comprehensive documentation available at the Metals-API Documentation serves as an essential resource for developers looking to implement these features effectively.
As the demand for accurate and timely financial data continues to grow, utilizing APIs like Metals-API will empower developers to build innovative solutions that meet the needs of modern investors. By understanding the capabilities of the API and implementing best practices, developers can ensure their applications remain competitive in the dynamic world of precious metals trading.