Fetch real-time Gold Bid (XAU-BID) - Per Ounce prices using this API

Introduction
In the world of precious metals trading, real-time data is crucial for making informed decisions. One of the most sought-after metals is gold, represented by the symbol XAU. To access real-time Gold Bid (XAU-BID) prices, developers can leverage the Metals-API, a powerful tool that provides comprehensive data on various metals, including gold, silver, platinum, and palladium. This blog post will delve into the intricacies of the Metals-API, exploring its capabilities, key features, and how it can transform the way developers interact with precious metals markets.
Metals-API Information
About Gold (XAU)
Gold has long been a symbol of wealth and stability. In recent years, the digital transformation in precious metals has revolutionized how traders and investors access and analyze market data. With the rise of data analytics and technology integration in trading, the demand for real-time insights has never been higher. The Metals-API provides a robust solution for developers looking to innovate in price discovery and create digital asset solutions.
By utilizing the Metals-API, developers can access real-time gold prices, historical data, and various analytical tools that empower them to make data-driven decisions. This API not only enhances the trading experience but also opens up new avenues for innovation in the precious metals market.
API Description
The Metals-API is designed to provide developers with real-time and historical data on precious metals. Its capabilities extend beyond simple price retrieval; it empowers developers to build next-generation applications that can analyze trends, forecast prices, and provide insights into market fluctuations. The API is built with a focus on technological advancement, making it a vital resource for anyone involved in the trading of metals.
For comprehensive documentation on how to use the API, developers can refer to the Metals-API Documentation. This resource provides detailed information on endpoints, parameters, and response structures, ensuring that developers can effectively integrate the API into their applications.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs within the precious metals market. Here are 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 the subscription plan, this endpoint can return updates every 60 minutes, every 10 minutes, or even more frequently. This feature is essential for traders who need to stay updated on market conditions.
{
"success": true,
"timestamp": 1754413219,
"base": "USD",
"date": "2025-08-05",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
For developers needing to analyze trends over time, the Historical Rates endpoint provides access to historical exchange rates dating back to 2019. By appending a specific date to the API call, users can retrieve past rates, which is invaluable for market analysis and forecasting.
{
"success": true,
"timestamp": 1754326819,
"base": "USD",
"date": "2025-08-04",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"unit": "per troy ounce"
}
Bid And Ask Endpoint
The Bid and Ask endpoint is a powerful feature that allows developers to retrieve real-time bid and ask prices for metals. This information is crucial for traders looking to execute orders at optimal prices.
{
"success": true,
"timestamp": 1754413219,
"base": "USD",
"date": "2025-08-05",
"rates": {
"XAU": {
"bid": 0.000481,
"ask": 0.000483,
"spread": 2.0e-6
}
},
"unit": "per troy ounce"
}
Convert Endpoint
The Convert endpoint enables 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": 1754413219,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Time-Series Endpoint
The Time-Series endpoint allows developers to query the API for daily historical rates between two specified dates. This is particularly useful for analyzing trends and making informed trading decisions based on historical performance.
{
"success": true,
"timeseries": true,
"start_date": "2025-07-29",
"end_date": "2025-08-05",
"base": "USD",
"rates": {
"2025-07-29": {
"XAU": 0.000485
},
"2025-08-05": {
"XAU": 0.000482
}
},
"unit": "per troy ounce"
}
Fluctuation Endpoint
The Fluctuation endpoint provides insights into how metal prices fluctuate on a day-to-day basis. This feature is essential for traders looking to understand market volatility and make strategic decisions.
{
"success": true,
"fluctuation": true,
"start_date": "2025-07-29",
"end_date": "2025-08-05",
"base": "USD",
"rates": {
"XAU": {
"start_rate": 0.000485,
"end_rate": 0.000482,
"change": -3.0e-6,
"change_pct": -0.62
}
},
"unit": "per troy ounce"
}
Open/High/Low/Close (OHLC) Price Endpoint
The OHLC Price endpoint provides essential data for traders looking to analyze market trends. By retrieving the open, high, low, and close prices for a specific time period, traders can gain insights into market behavior.
{
"success": true,
"timestamp": 1754413219,
"base": "USD",
"date": "2025-08-05",
"rates": {
"XAU": {
"open": 0.000485,
"high": 0.000487,
"low": 0.000481,
"close": 0.000482
}
},
"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 of metals over a specified period. This feature is particularly useful for identifying price trends and making informed trading decisions.
{
"success": true,
"timestamp": 1754413219,
"base": "USD",
"date": "2025-08-05",
"rates": {
"XAU": {
"lowest": 0.000481,
"highest": 0.000487
}
},
"unit": "per troy ounce"
}
Historical LME Endpoint
The Historical LME endpoint provides access to historical rates for LME symbols dating back to 2008. This endpoint is invaluable for developers looking to analyze long-term trends in the metals market.
{
"success": true,
"timestamp": 1754326819,
"base": "USD",
"date": "2025-08-04",
"rates": {
"XAU": 0.000485
},
"unit": "per troy ounce"
}
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 understand the various metals available for trading and analysis.
Conclusion
The Metals-API is a transformative tool for developers in the precious metals trading space. By providing real-time and historical data, as well as a variety of analytical tools, it empowers users to make informed decisions and innovate in the market. With features like the Latest Rates, Historical Rates, and Bid/Ask endpoints, developers can create applications that enhance trading strategies and provide valuable insights.
As the digital landscape continues to evolve, the integration of advanced technologies and data analytics in precious metals trading will only become more critical. The Metals-API stands at the forefront of this transformation, offering developers the resources they need to succeed in a competitive market.
For more information on how to get started with the Metals-API, visit the Metals-API Website and explore the extensive documentation available to guide you through the integration process.