Fetch Gold Bid (XAU-BID) Historical Prices for 2026 with this API
Introduction
In the ever-evolving landscape of financial markets, the demand for accurate and timely data is paramount, especially when it comes to precious metals like Gold (XAU). As we look towards 2026, developers and traders alike are seeking reliable methods to fetch historical prices and real-time data. The Metals-API offers a robust solution for accessing Gold bid (XAU-BID) historical prices, providing a comprehensive suite of features designed to empower developers in building next-generation applications.
About Gold (XAU)
Gold has long been a symbol of wealth and stability, serving as a hedge against inflation and economic uncertainty. In recent years, the digital transformation in precious metals trading has opened new avenues for data analytics and market insights. The integration of technology in trading has revolutionized how investors approach Gold, enabling them to make informed decisions based on real-time data and historical trends.
With the rise of digital asset solutions, the importance of accurate price discovery has never been more critical. The Metals-API stands at the forefront of this transformation, offering developers the tools necessary to harness the power of real-time metals data. By leveraging this API, developers can create applications that provide innovative insights into Gold pricing, allowing users to track fluctuations, analyze trends, and optimize their trading strategies.
API Description
The Metals-API is a powerful tool that provides access to real-time and historical data for various metals, including Gold (XAU). This API is designed to facilitate seamless integration into applications, enabling developers to access vital market data with ease. With its focus on innovation and technological advancement, the Metals-API empowers users to build applications that can adapt to the dynamic nature of the metals market.
For detailed information on how to implement the API, refer to the Metals-API Documentation. This resource provides comprehensive guidance on utilizing the API's capabilities effectively.
Key Features and Endpoints
The Metals-API offers 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 various metals, including Gold. Depending on your subscription plan, this endpoint can return updated rates every 60 minutes, every 10 minutes, or even more frequently. This feature is crucial for traders who need to make quick decisions based on the latest market conditions.
{
"success": true,
"timestamp": 1779581967,
"base": "USD",
"date": "2026-05-24",
"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
For those interested in analyzing past performance, the Historical Rates Endpoint allows users to access historical rates dating back to 2019. By appending a specific date in the format YYYY-MM-DD, developers can retrieve valuable historical data that can inform trading strategies and market analysis.
{
"success": true,
"timestamp": 1779495567,
"base": "USD",
"date": "2026-05-23",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Bid And Ask Endpoint
The Bid and Ask Endpoint is a powerful feature that provides real-time bid and ask prices for metals. This information is essential for traders looking to execute orders at the best possible prices. Depending on your subscription plan, this endpoint can deliver accurate bid and ask data, allowing for effective trading strategies.
{
"success": true,
"timestamp": 1779581967,
"base": "USD",
"date": "2026-05-24",
"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"
}
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 traders who need to quickly assess the value of their holdings in different currencies.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1779581967,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Time-Series Endpoint
The Time-Series Endpoint enables users to query the API for daily historical rates between two specified dates. This feature is invaluable for conducting trend analysis and understanding market movements over time.
{
"success": true,
"timeseries": true,
"start_date": "2026-05-17",
"end_date": "2026-05-24",
"base": "USD",
"rates": {
"2026-05-17": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-05-19": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-05-24": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Fluctuation Endpoint
The Fluctuation Endpoint allows users to track rate fluctuations between two dates. This feature is essential for understanding market volatility and making informed trading decisions.
{
"success": true,
"fluctuation": true,
"start_date": "2026-05-17",
"end_date": "2026-05-24",
"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"
}
Open/High/Low/Close (OHLC) Price Endpoint
The OHLC Price Endpoint provides open, high, low, and close prices for a specific time period. This data is crucial for traders who rely on candlestick patterns and other technical analysis methods.
{
"success": true,
"timestamp": 1779581967,
"base": "USD",
"date": "2026-05-24",
"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"
}
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 particularly useful for identifying market extremes and making strategic trading decisions.
{
"success": true,
"timestamp": 1779581967,
"base": "USD",
"date": "2026-05-24",
"rates": {
"XAU": {
"lowest": 0.000481,
"highest": 0.000487
}
},
"unit": "per troy ounce"
}
Carat Endpoint
The Carat Endpoint provides information about Gold rates by carat. This feature is essential for jewelers and consumers who need to understand the value of Gold based on its purity.
{
"success": true,
"timestamp": 1779581967,
"base": "USD",
"date": "2026-05-24",
"rates": {
"XAU": {
"carat_24": 0.000482,
"carat_18": 0.000362,
"carat_14": 0.000281
}
},
"unit": "per troy ounce"
}
API Key and Authentication
To access the Metals-API, users must obtain an API key, which is a unique identifier passed into the API base URL's access_key parameter. This key is essential for authentication and ensures that only authorized users can access the data.
API Response Structure
The API responses are delivered in JSON format, with exchange rates typically relative to USD. Each response includes a success flag, a timestamp, the base currency, and the rates for the requested metals. Understanding the structure of these responses is crucial for developers to effectively parse and utilize the data.
Common Use Cases
Developers can leverage the Metals-API in various applications, including:
- Trading Platforms: Integrate real-time and historical data to provide users with comprehensive market insights.
- Financial Analysis Tools: Use historical rates to analyze trends and forecast future movements in Gold prices.
- Portfolio Management: Track the value of Gold holdings and assess performance over time.
Conclusion
The Metals-API is an invaluable resource for developers looking to access Gold bid (XAU-BID) historical prices and real-time data. With its extensive range of endpoints and features, this API empowers users to build innovative applications that can adapt to the dynamic nature of the metals market. By leveraging the capabilities of the Metals-API, developers can provide their users with the tools necessary to make informed trading decisions and optimize their investment strategies.
For more information on how to get started with the Metals-API, visit the Metals-API Documentation and explore the Metals-API Supported Symbols for a comprehensive list of available metals.