Access Gold Jul 2026 (GCN26) JSON API for Exchange Rates
Access Gold Jul 2026 (GCN26) JSON API for Exchange Rates
In the ever-evolving landscape of financial technology, the ability to retrieve real-time exchange rates for precious metals is crucial for developers and traders alike. The Metals-API offers a robust solution for accessing exchange rates in JSON format, specifically for metals like Gold (XAU). This blog post will delve into how to effectively utilize the Metals-API to retrieve Gold exchange rates, including sample API responses and integration tips.
About Gold (XAU)
Gold has long been a symbol of wealth and stability, and in today's digital age, it is undergoing a transformation driven by technology and data analytics. The integration of digital solutions in precious metals trading is reshaping how investors and traders interact with the market. With the rise of digital asset solutions, the demand for accurate and real-time data has never been higher.
Data analytics plays a pivotal role in providing market insights, allowing traders to make informed decisions based on historical trends and real-time fluctuations. The Metals-API empowers developers to harness this data, enabling the creation of next-generation applications that can analyze market conditions, predict price movements, and optimize trading strategies.
API Description
The Metals-API is a powerful tool that provides developers with access to real-time and historical data for various metals, including Gold (XAU). This API is designed to facilitate innovation in price discovery and trading technology, offering a suite of endpoints that cater to different needs. Whether you are looking to retrieve the latest rates, historical data, or perform conversions, the Metals-API has you covered.
For comprehensive documentation on how to use the API, visit the Metals-API Documentation. Here, you will find detailed information on all available endpoints, including their functionalities and usage examples.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that provide different functionalities, each designed to cater to specific use cases. Here are some of the key features:
- Latest Rates Endpoint: This endpoint returns real-time exchange rate data for metals, updated every 60 minutes, 10 minutes, or even more frequently, depending on your subscription plan. This is essential for traders who need the most current data to make quick decisions.
- Historical Rates Endpoint: Access historical rates dating back to 2019. By appending a specific date to the endpoint, you can retrieve past exchange rates for analysis and trend identification.
- Bid And Ask Endpoint: Retrieve real-time bid and ask prices, which are crucial for understanding market dynamics and making informed trading decisions.
- Convert Endpoint: This feature allows you to convert any amount from one metal to another or to/from USD, making it easy to perform transactions across different currencies.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice, allowing for in-depth analysis of price movements over time.
- Fluctuation Endpoint: Track how currencies fluctuate on a day-to-day basis, providing insights into market volatility.
- Carat Endpoint: Retrieve information about Gold rates by Carat, which is particularly useful for jewelers and those in the jewelry industry.
- Lowest/Highest Price Endpoint: Get the lowest and highest prices for a specified date, helping traders identify market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Access OHLC data for a specific time period, which is vital for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, useful for those trading on the London Metal Exchange.
- API Key: Your unique API key is required to access the API, ensuring secure and authorized usage.
- API Response: All exchange rates are delivered relative to USD, providing a consistent basis for comparison.
- Supported Symbols Endpoint: This endpoint returns all available currencies, ensuring you have the most up-to-date information on what metals are supported.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping you informed about market trends and developments.
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
Understanding how to interpret API responses is crucial for effective integration. Below are examples of various endpoints and their JSON responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1770260844,
"base": "USD",
"date": "2026-02-05",
"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": 1770174444,
"base": "USD",
"date": "2026-02-04",
"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-01-29",
"end_date": "2026-02-05",
"base": "USD",
"rates": {
"2026-01-29": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-01-31": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-02-05": {
"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": 1770260844,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2026-01-29",
"end_date": "2026-02-05",
"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) Price Endpoint
Get OHLC data for a specific time period.
{
"success": true,
"timestamp": 1770260844,
"base": "USD",
"date": "2026-02-05",
"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": 1770260844,
"base": "USD",
"date": "2026-02-05",
"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
Accessing Gold exchange rates through the Metals-API provides developers with a powerful tool to enhance their trading applications and market analysis capabilities. By leveraging the various endpoints, such as the Latest Rates, Historical Rates, and Conversion features, developers can create sophisticated applications that respond to real-time market conditions.
As the financial landscape continues to evolve, the integration of technology in precious metals trading will play a crucial role in shaping the future of investment strategies. The Metals-API not only facilitates access to critical data but also empowers developers to innovate and create solutions that meet the demands of modern traders.
For more information on how to get started with the Metals-API, refer to the Metals-API Documentation and explore the Metals-API Supported Symbols for a comprehensive list of available metals. Embrace the future of trading with the Metals-API and unlock the potential of real-time metals data.