Get Accurate Gold Apr 2027 (GCJ27) Prices in Different Formats with this API
Introduction
In the ever-evolving landscape of precious metals trading, having access to accurate and real-time data is crucial for developers and businesses alike. The Metals-API provides a powerful solution for obtaining accurate Gold (XAU) prices in various currencies, enabling developers to create innovative applications that leverage this data. With features that encompass everything from real-time exchange rates to historical data analysis, the Metals-API stands out as a transformative tool in the digital trading space.
About Gold (XAU)
Gold has long been a symbol of wealth and stability, making it a vital asset in financial markets. As digital transformation continues to reshape the trading landscape, the integration of technology in precious metals trading is more important than ever. The Metals-API not only provides accurate pricing but also empowers developers to harness data analytics and market insights to drive innovation in price discovery and trading strategies.
With the rise of digital asset solutions, understanding the nuances of Gold pricing becomes essential. The Metals-API offers a comprehensive suite of tools that allow developers to access Gold prices in different formats, catering to a wide range of business applications.
API Description
The Metals-API Website serves as a gateway to a wealth of information about precious metals. This API is designed to provide developers with real-time and historical data on various metals, including Gold (XAU). By utilizing cutting-edge technology, the Metals-API enables seamless integration into applications, allowing for the development of next-generation trading platforms.
For detailed guidance on how to implement the API, developers can refer to the Metals-API Documentation, which outlines the capabilities and functionalities of each endpoint.
Key Features and Endpoints
The Metals-API is equipped with a variety of endpoints that cater to different data needs. Hereβs a closer look at some of the key features:
Latest Rates Endpoint
The Latest Rates Endpoint provides real-time exchange rate data for Gold and other metals. Depending on the subscription plan, this endpoint updates every 60 minutes or 10 minutes, ensuring that users have access to the most current pricing information.
{
"success": true,
"timestamp": 1781655799,
"base": "USD",
"date": "2026-06-17",
"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 endpoint is particularly useful for applications that require up-to-the-minute pricing, such as trading platforms and financial analysis tools.
Historical Rates Endpoint
Accessing historical rates is essential for trend analysis and market research. The Historical Rates Endpoint allows users to query rates dating back to 2019 by appending a specific date to the API request.
{
"success": true,
"timestamp": 1781569399,
"base": "USD",
"date": "2026-06-16",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This feature is invaluable for developers looking to implement historical data analysis in their applications.
Bid And Ask Endpoint
The Bid and Ask Endpoint provides real-time bid and ask prices for metals, allowing traders to make informed decisions based on current market conditions.
{
"success": true,
"timestamp": 1781655799,
"base": "USD",
"date": "2026-06-17",
"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 is crucial for applications that require precise trading data, enabling developers to create tools that facilitate real-time trading decisions.
Convert Endpoint
The Convert Endpoint allows users to convert any amount from one metal to another or to/from USD. This feature is particularly useful for applications that require currency conversion capabilities.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1781655799,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
By integrating this endpoint, developers can enhance their applications with robust conversion functionalities, catering to a global audience.
Time-Series Endpoint
The Time-Series Endpoint allows users to query the API for daily historical rates between two specified dates. This feature is essential for analyzing trends over time.
{
"success": true,
"timeseries": true,
"start_date": "2026-06-10",
"end_date": "2026-06-17",
"base": "USD",
"rates": {
"2026-06-10": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-06-12": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-06-17": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This endpoint is particularly useful for applications that require historical data analysis and visualization.
Fluctuation Endpoint
The Fluctuation Endpoint provides insights into how currencies fluctuate on a day-to-day basis, allowing developers to track changes over time.
{
"success": true,
"fluctuation": true,
"start_date": "2026-06-10",
"end_date": "2026-06-17",
"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 feature is particularly beneficial for applications focused on market analysis and trading strategies.
Open/High/Low/Close (OHLC) Price Endpoint
The OHLC Price Endpoint allows users to retrieve open, high, low, and close prices for a specific time period, providing a comprehensive view of market performance.
{
"success": true,
"timestamp": 1781655799,
"base": "USD",
"date": "2026-06-17",
"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 is essential for applications that require detailed market analysis and performance tracking.
Lowest/Highest Price Endpoint
The Lowest/Highest Price Endpoint allows users to query the API for the lowest and highest prices within a specified date range. This feature is crucial for identifying market trends and making informed trading decisions.
{
"success": true,
"timestamp": 1781655799,
"base": "USD",
"date": "2026-06-17",
"rates": {
"XAU": {
"lowest": 0.000481,
"highest": 0.000487
},
"XAG": {
"lowest": 0.0381,
"highest": 0.0383
},
"XPT": {
"lowest": 0.00091,
"highest": 0.000918
}
},
"unit": "per troy ounce"
}
This endpoint is particularly useful for applications focused on market analysis and trading strategies.
Historical LME Endpoint
The Historical LME Endpoint provides access to historical rates for LME symbols dating back to 2008. This feature is essential for developers looking to integrate comprehensive historical data into their applications.
{
"success": true,
"timestamp": 1781655799,
"base": "USD",
"date": "2026-06-17",
"rates": {
"XAU": {
"date": "2026-06-16",
"rate": 0.000485
},
"XAG": {
"date": "2026-06-16",
"rate": 0.03825
}
},
"unit": "per troy ounce"
}
This endpoint is invaluable for applications that require extensive historical data for analysis and reporting.
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. This resource is essential for developers looking to implement specific metal data in their applications.
Conclusion
The Metals-API is a powerful tool for developers seeking to integrate accurate Gold (XAU) prices into their applications. With a wide array of endpoints that provide real-time and historical data, the API empowers businesses to make informed decisions based on comprehensive market insights. By leveraging the capabilities of the Metals-API, developers can create innovative solutions that enhance trading strategies and financial analysis.
For more information on how to implement these features, refer to the Metals-API Documentation. The potential applications of this API are vast, making it an essential resource for any developer in the financial technology space.