Get Gold Bid (XAU-BID) prices in real-time with this API
Introduction
In today's fast-paced financial landscape, having access to real-time data is crucial for making informed decisions, especially in the precious metals market. One of the most sought-after commodities is gold, represented by the symbol XAU. With the rise of digital transformation in trading, the ability to obtain Gold Bid (XAU-BID) prices in real-time has become a game-changer for traders and developers alike. This blog post will explore the capabilities of the Metals-API, which provides comprehensive access to gold prices and other metals data, empowering developers to build innovative applications that leverage real-time market insights.
About Gold (XAU)
Gold has long been a symbol of wealth and stability, often viewed as a safe haven during economic uncertainty. As the world transitions towards digital assets, the integration of technology in trading precious metals has become increasingly important. The Metals-API plays a pivotal role in this transformation by offering developers access to real-time data analytics and market insights. This API enables the creation of applications that can analyze trends, forecast prices, and provide users with the information they need to make informed trading decisions.
Digital Transformation in Precious Metals
The digital transformation of the precious metals market is characterized by the integration of advanced technologies such as machine learning, big data analytics, and blockchain. These technologies enhance the price discovery process, allowing traders to make quicker and more accurate decisions. The Metals-API Documentation provides detailed information on how to utilize these technologies effectively.
Data Analytics and Market Insights
Data analytics is at the heart of modern trading strategies. By leveraging the real-time data provided by the Metals-API, developers can create applications that analyze market trends, identify patterns, and provide actionable insights. This capability is essential for traders looking to capitalize on market fluctuations and optimize their trading strategies.
Technology Integration in Trading
The integration of technology in trading has revolutionized the way traders interact with the markets. With the Metals-API, developers can build applications that not only retrieve real-time gold prices but also integrate with other financial data sources, allowing for a holistic view of the market. This integration is crucial for making informed trading decisions.
Innovation in Price Discovery
Price discovery is a critical aspect of trading, and the Metals-API offers innovative solutions to enhance this process. By providing real-time bid and ask prices, as well as historical data, the API enables traders to understand market dynamics better and make informed decisions based on accurate information.
Digital Asset Solutions
As digital assets gain popularity, the need for reliable data sources becomes paramount. The Metals-API offers a robust solution for developers looking to create applications that cater to the growing demand for digital asset trading. By providing access to real-time gold prices and other metals data, the API empowers developers to innovate and create solutions that meet the needs of modern traders.
API Description
The Metals-API is a powerful tool that provides developers with access to real-time and historical data for precious metals, including gold, silver, platinum, and palladium. This API is designed to facilitate the development of next-generation applications that require accurate and timely metals data. With a variety of endpoints available, developers can easily integrate the API into their applications to retrieve the information they need.
Key Features and Endpoints
The Metals-API offers a range of features that cater to the diverse needs of developers. Here are some of the key endpoints and their functionalities:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint returns real-time exchange rate data updated every 60 minutes, every 10 minutes, or even more frequently. This feature is essential for traders who need up-to-the-minute information on gold prices.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. Developers can query the Metals-API for historical rates by appending a date in the format YYYY-MM-DD, allowing for in-depth analysis of price trends over time.
- Bid And Ask Endpoint: This powerful feature enables developers to retrieve real-time bid and ask prices for gold and other metals, providing critical information for traders looking to execute orders at optimal prices.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, allowing users to convert any amount from one currency to another. This feature is particularly useful for traders operating in multiple currencies.
- Time-Series Endpoint: This endpoint allows developers to query the API for daily historical rates between two dates of their choice, facilitating detailed analysis of price movements over specific periods.
- Fluctuation Endpoint: Retrieve information about how currencies fluctuate on a day-to-day basis, helping traders understand market volatility and make informed decisions.
- Carat Endpoint: This endpoint provides information about gold rates by carat, allowing users to obtain precise pricing based on the purity of gold.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest price for a specified date, providing insights into market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint allows developers to retrieve open, high, low, and close prices for a specific date, essential for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, allowing for comprehensive analysis of market trends.
- API Key: Your API Key is the unique key that is passed into the API base URL's access_key parameter, ensuring secure access to the API's functionalities.
- API Response: Exchange rates delivered by the Metals-API are by default relative to USD, and all data is returned in standardized formats for easy integration.
- Available Endpoints: The Metals-API comes with 14 API endpoints, each providing different functionalities tailored to meet the needs of developers.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies, ensuring developers have access to the latest information.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping traders informed about market 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. This resource is invaluable for developers looking to integrate specific metals into their applications.
API Endpoint Examples and Responses
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1778631057,
"base": "USD",
"date": "2026-05-13",
"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 response indicates a successful request, providing the latest rates for various metals, including gold (XAU).
Historical Rates Endpoint
Access historical exchange rates for any date since 1999:
{
"success": true,
"timestamp": 1778544657,
"base": "USD",
"date": "2026-05-12",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response provides historical rates for gold and other metals, allowing developers to analyze past market performance.
Time-series Endpoint
Get exchange rates for a specific time period:
{
"success": true,
"timeseries": true,
"start_date": "2026-05-06",
"end_date": "2026-05-13",
"base": "USD",
"rates": {
"2026-05-06": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-05-08": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-05-13": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response shows the rates for gold over a specified time period, allowing for trend analysis.
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": 1778631057,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response indicates a successful conversion from USD to gold, providing the equivalent amount in troy ounces.
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2026-05-06",
"end_date": "2026-05-13",
"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 response provides insights into how gold and other metals have fluctuated over a specified period, which is crucial for traders looking to capitalize on market movements.
OHLC (Open/High/Low/Close) Endpoint
Get OHLC data for a specific time period:
{
"success": true,
"timestamp": 1778631057,
"base": "USD",
"date": "2026-05-13",
"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 response provides essential OHLC data for gold and other metals, which is critical for technical analysis and trading strategies.
Bid/Ask Endpoint
Get current bid and ask prices for metals:
{
"success": true,
"timestamp": 1778631057,
"base": "USD",
"date": "2026-05-13",
"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 response provides the current bid and ask prices for gold, silver, and platinum, which are essential for executing trades at the best possible prices.
Conclusion
The Metals-API is an invaluable resource for developers looking to access real-time and historical data for precious metals, including gold. With its comprehensive range of endpoints, the API empowers developers to build innovative applications that leverage market insights and analytics. By integrating this API into their applications, developers can provide users with the tools they need to navigate the complexities of the metals market effectively.
Whether you're interested in tracking gold prices, analyzing historical trends, or converting currencies, the Metals-API offers the functionalities you need to succeed. For more information, visit the Metals-API Website and explore the extensive Metals-API Documentation for detailed guidance on implementation.
In summary, the integration of real-time data through the Metals-API not only enhances trading strategies but also contributes to the overall digital transformation of the precious metals market. By harnessing the power of technology, developers can create solutions that meet the evolving needs of traders and investors alike.