Get Gold Ask (XAU-ASK) - Per Ounce price data in 2025 using this API

In the ever-evolving landscape of financial technology, the demand for real-time data on precious metals has surged. One of the most sought-after commodities is gold, represented by the symbol XAU. As we look towards 2025, understanding the XAU-ASK price data becomes crucial for investors, traders, and developers alike. This blog post delves into the intricacies of the Metals-API, which provides comprehensive data on gold and other metals, empowering users to make informed decisions based on real-time analytics.
Metals-API Information
About Gold (XAU)
Gold has long been a symbol of wealth and stability, serving as a hedge against inflation and currency fluctuations. In recent years, the digital transformation in the precious metals market has revolutionized how investors access and analyze gold data. With the integration of advanced data analytics, traders can gain insights into market trends, price movements, and investment opportunities.
The rise of technology in trading has led to innovative solutions for price discovery. The XAU market is now more accessible than ever, thanks to digital asset solutions that allow for seamless transactions and real-time data access. As we move into 2025, the importance of having accurate and timely information on gold prices cannot be overstated. This is where the Metals-API comes into play, providing a robust platform for developers to build next-generation applications that leverage real-time metals data.
API Description
The Metals-API is designed to deliver real-time and historical data on various metals, including gold, silver, platinum, and palladium. Its capabilities extend beyond mere price tracking; it empowers developers to create applications that can analyze trends, convert currencies, and even track fluctuations over time. The API's innovative architecture allows for seamless integration into existing systems, making it an invaluable tool for anyone involved in the precious metals market.
With the Metals-API Documentation, developers can explore the extensive features and endpoints available. The API supports a wide range of functionalities, ensuring that users can access the data they need in a format that suits their requirements. From real-time rates to historical data, the Metals-API is equipped to handle the demands of modern trading.
Key Features and Endpoints
The Metals-API offers several key features that enhance its usability and functionality:
Latest Rates Endpoint
The Latest Rates Endpoint provides real-time exchange rate data for all available metals. Depending on your subscription plan, this endpoint can return updates every 60 minutes or even more frequently. For example, a typical response might look like this:
{
"success": true,
"timestamp": 1750327217,
"base": "USD",
"date": "2025-06-19",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
This response provides the current price of gold in relation to USD, allowing traders to make quick decisions based on the latest market data.
Historical Rates Endpoint
For those interested in analyzing trends over time, the Historical Rates Endpoint allows users to access exchange rates dating back to 2019. By appending a specific date to the API call, users can retrieve historical data, which is invaluable for trend analysis and forecasting. A sample response might look like this:
{
"success": true,
"timestamp": 1750240817,
"base": "USD",
"date": "2025-06-18",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"unit": "per troy ounce"
}
This data can help investors understand how gold prices have fluctuated over time, aiding in more informed decision-making.
Bid And Ask Endpoint
The Bid and Ask Endpoint is a powerful feature that provides real-time bid and ask prices for metals. This is crucial for traders who need to know the current market spread. A typical response might look like this:
{
"success": true,
"timestamp": 1750327217,
"base": "USD",
"date": "2025-06-19",
"rates": {
"XAU": {
"bid": 0.000481,
"ask": 0.000483,
"spread": 2.0e-6
}
},
"unit": "per troy ounce"
}
This information is essential for traders looking to execute buy or sell orders at the most favorable prices.
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 deal in multiple currencies. An example response might look like this:
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1750327217,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This conversion capability simplifies transactions and enhances trading efficiency.
Time-Series Endpoint
The Time-Series Endpoint allows users to query the API for daily historical rates between two dates of their choice. This is particularly useful for analyzing price trends over specific periods. A sample response might look like this:
{
"success": true,
"timeseries": true,
"start_date": "2025-06-12",
"end_date": "2025-06-19",
"base": "USD",
"rates": {
"2025-06-12": {
"XAU": 0.000485
},
"2025-06-19": {
"XAU": 0.000482
}
},
"unit": "per troy ounce"
}
This endpoint is invaluable for traders looking to identify patterns and make predictions based on historical data.
Fluctuation Endpoint
Using the Fluctuation Endpoint, users can track rate fluctuations between two dates. This feature is essential for understanding market volatility. A typical response might look like this:
{
"success": true,
"fluctuation": true,
"start_date": "2025-06-12",
"end_date": "2025-06-19",
"base": "USD",
"rates": {
"XAU": {
"start_rate": 0.000485,
"end_rate": 0.000482,
"change": -3.0e-6,
"change_pct": -0.62
}
},
"unit": "per troy ounce"
}
This data provides insights into how gold prices have changed over a specific period, helping traders assess risk and opportunity.
Open/High/Low/Close (OHLC) Price Endpoint
The OHLC Price Endpoint allows users to query the API for the open, high, low, and close prices for a specific time period. This is crucial for technical analysis. A sample response might look like this:
{
"success": true,
"timestamp": 1750327217,
"base": "USD",
"date": "2025-06-19",
"rates": {
"XAU": {
"open": 0.000485,
"high": 0.000487,
"low": 0.000481,
"close": 0.000482
}
},
"unit": "per troy ounce"
}
This endpoint provides traders with critical data for making informed trading decisions based on market performance.
Lowest/Highest Price Endpoint
The Lowest/Highest Price Endpoint allows users to query the API to get the lowest and highest price for a specified date. This is particularly useful for identifying price extremes. A typical response might look like this:
{
"success": true,
"timestamp": 1750327217,
"base": "USD",
"date": "2025-06-19",
"rates": {
"XAU": {
"lowest": 0.000481,
"highest": 0.000487
}
},
"unit": "per troy ounce"
}
This information can help traders set stop-loss orders and identify potential entry points.
Historical LME Endpoint
The Historical LME Endpoint provides access to historical rates for LME symbols dating back to 2008. This endpoint is particularly useful for users interested in the London Metal Exchange prices. A sample response might look like this:
{
"success": true,
"timestamp": 1750240817,
"base": "USD",
"date": "2025-06-18",
"rates": {
"XAU": 0.000485
},
"unit": "per troy ounce"
}
This endpoint allows for comprehensive analysis of historical price movements in the context of LME trading.
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.
Conclusion
The Metals-API is a powerful tool for anyone involved in the precious metals market, particularly for gold represented by XAU. With its extensive range of features, including real-time rates, historical data, and various endpoints for analysis and conversion, the API empowers developers to create innovative applications that can transform how users interact with gold and other metals.
As we approach 2025, the importance of accurate and timely data on gold prices will only increase. By leveraging the capabilities of the Metals-API, developers can build solutions that not only meet the current demands of the market but also anticipate future trends. For more information, visit the Metals-API Website and explore the Metals-API Documentation for detailed guidance on implementation and usage.