Get Accurate Gold Bid (XAU-BID) - Per Ounce Prices in Various Formats with this API

Get Accurate Gold Bid (XAU-BID) - Per Ounce Prices in Various Formats with this API
In today's fast-paced financial landscape, having access to accurate and real-time data is crucial for making informed decisions. The Metals-API provides developers with the tools to access precise gold prices (XAU) in various formats, enabling businesses to leverage this information for a multitude of applications. This blog post will delve into how the Metals-API empowers developers with accurate gold bid prices, the innovative features it offers, and the potential business applications that can arise from integrating this API.
About Gold (XAU)
Gold, represented by the symbol XAU, has been a cornerstone of wealth and value for centuries. In the context of digital transformation, the trading of precious metals like gold is evolving rapidly. The integration of technology in trading platforms allows for enhanced data analytics and market insights, which are essential for investors and businesses alike. With the rise of digital asset solutions, the demand for accurate and real-time pricing data has never been greater.
The Metals-API plays a pivotal role in this transformation by providing developers with access to real-time gold prices, historical data, and various analytical tools. This API not only facilitates price discovery but also supports innovative applications that can optimize trading strategies and enhance decision-making processes.
API Description
The Metals-API Documentation outlines the capabilities of this powerful API, which is designed to deliver real-time metals data to developers. With a focus on innovation and technological advancement, the Metals-API allows for seamless integration into applications, enabling businesses to harness the power of real-time data for their operations.
One of the standout features of the Metals-API is its ability to provide accurate gold bid prices in various currencies. This functionality is essential for businesses that operate in multiple markets or require currency conversion for their transactions. By utilizing the API, developers can build next-generation applications that cater to the needs of their users, whether they are investors, traders, or financial analysts.
Key Features and Endpoints
The Metals-API offers a range of endpoints that provide different functionalities, each designed to cater to specific business needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint returns real-time exchange rate data for gold and other metals. Depending on your subscription plan, the API updates this information every 60 minutes, every 10 minutes, or even more frequently. This ensures that users always have access to the most current pricing data.
- Historical Rates Endpoint: Access historical rates for gold and other metals dating back to 2019. By appending a specific date to your query, you can retrieve past pricing data, which is invaluable for trend analysis and market research.
- Bid and Ask Endpoint: This powerful feature allows users to retrieve real-time bid and ask prices for gold. Understanding the bid-ask spread is crucial for traders looking to optimize their buying and selling strategies.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, enabling users to convert any amount from one currency to another. This is particularly useful for businesses that deal with international transactions and need to calculate prices in different currencies.
- Time-Series Endpoint: This endpoint allows users to query the API for daily historical rates between two dates of their choice. This feature is essential for analyzing price movements over time and making informed trading decisions.
- Fluctuation Endpoint: Track how gold prices fluctuate on a day-to-day basis. This endpoint provides insights into market volatility, helping traders to strategize their investments effectively.
- Carat Endpoint: Retrieve information about gold rates by carat, which is particularly useful for jewelers and businesses dealing in precious metals.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for gold over a specified period. This information is crucial for identifying market trends and making strategic decisions.
- Open/High/Low/Close (OHLC) Price Endpoint: Access detailed OHLC data for gold prices, which is essential for technical analysis and trading strategies.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a comprehensive view of market trends.
- API Key: Each user is assigned a unique API key, which is required to access the API's functionalities. This ensures secure and authorized access to the data.
- API Response: The Metals-API delivers exchange rates relative to USD by default, with all data returned in a structured JSON format.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available currencies and metals, allowing developers to stay informed about the symbols they can use.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping users updated on market developments and trends.
API Endpoint Examples and Responses
Understanding how to interact with the Metals-API is crucial for developers. Below are examples of API responses for various endpoints, showcasing the structure and data provided.
Latest Rates Endpoint
{
"success": true,
"timestamp": 1761091448,
"base": "USD",
"date": "2025-10-22",
"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"
}
The response above indicates a successful query, providing the latest rates for various metals, including gold (XAU). The data is structured to allow easy access to the rates relative to USD.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1761005048,
"base": "USD",
"date": "2025-10-21",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows how to retrieve historical rates for gold and other metals. Developers can use this data for analysis and reporting purposes.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-10-15",
"end_date": "2025-10-22",
"base": "USD",
"rates": {
"2025-10-15": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-10-17": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-10-22": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series data allows users to analyze trends over specific periods, which is essential for making informed trading decisions.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1761091448,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response illustrates how to convert an amount from one currency to another, providing the conversion rate and the result in troy ounces.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-10-15",
"end_date": "2025-10-22",
"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 endpoint provides insights into how gold prices fluctuate over time, which is crucial for traders looking to capitalize on market movements.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1761091448,
"base": "USD",
"date": "2025-10-22",
"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"
}
The OHLC data is essential for traders who rely on technical analysis to make informed decisions based on price movements throughout the trading day.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1761091448,
"base": "USD",
"date": "2025-10-22",
"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 provides the current bid and ask prices for gold, which is critical for traders looking to execute orders at the best possible prices.
Potential Business Applications
The integration of the Metals-API into various applications opens up numerous business opportunities. Here are some potential use cases:
- Trading Platforms: Developers can create sophisticated trading platforms that leverage real-time gold prices to facilitate buying and selling activities. By integrating the latest rates and bid/ask data, traders can make informed decisions quickly.
- Market Analysis Tools: Financial analysts can utilize the historical rates and time-series data to build analytical tools that provide insights into market trends. This can help investors identify potential investment opportunities based on historical performance.
- Currency Conversion Services: Businesses operating internationally can use the convert endpoint to provide seamless currency conversion services, allowing customers to view prices in their local currencies.
- Investment Apps: Mobile applications that focus on gold investments can benefit from the fluctuation and OHLC data, providing users with the information they need to make strategic investment decisions.
- Educational Platforms: Online learning platforms can incorporate real-time gold pricing data to educate users about market dynamics and trading strategies.
Conclusion
The Metals-API offers a comprehensive solution for accessing accurate gold bid prices and other precious metal data in real-time. By leveraging the innovative features of this API, developers can create powerful applications that cater to the needs of traders, investors, and businesses alike. With capabilities such as the latest rates, historical data, and bid/ask pricing, the Metals-API empowers users to make informed decisions in a rapidly changing market.
For more information on how to get started with the Metals-API, visit the Metals-API Website and explore the Metals-API Documentation for detailed guidance on implementation. Additionally, check out the Metals-API Supported Symbols page to familiarize yourself with the various metal symbols available for use.