Get Accurate LBMA Gold Am (LBXAUAM) Prices in Historical Data with this API
Get Accurate LBMA Gold Am (LBXAUAM) Prices in Historical Data with this API
In the ever-evolving landscape of precious metals trading, having access to accurate and real-time data is paramount. The Metals-API provides developers with a powerful tool to retrieve precise Gold (XAU) prices in various currencies, including historical data. This blog post will delve into the capabilities of the Metals-API, exploring its innovative features, potential applications, and how it can transform the way businesses interact with gold pricing data.
Metals-API Information
About Gold (XAU)
Gold has long been a symbol of wealth and stability, and its significance in the financial markets cannot be overstated. As digital transformation sweeps across industries, the precious metals market is also undergoing significant changes. The integration of data analytics and technology in trading has opened new avenues for innovation in price discovery and market insights. With the rise of digital asset solutions, the demand for accurate and timely gold pricing data has never been greater.
The Metals-API stands at the forefront of this transformation, offering developers the ability to access real-time and historical gold prices. By leveraging advanced data analytics, businesses can gain insights into market trends, optimize trading strategies, and make informed decisions. The API empowers developers to build next-generation applications that can seamlessly integrate gold pricing data into their platforms.
API Description
The Metals-API is designed to provide comprehensive access to metals pricing data, including gold, silver, platinum, and palladium. It offers a range of endpoints that allow users to retrieve real-time rates, historical data, and perform conversions between different currencies. The API's capabilities are built on a foundation of technological advancement, ensuring that users have access to the most accurate and up-to-date information available.
For more detailed information about the API's capabilities, you can visit the Metals-API Website or check the Metals-API Documentation.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs, making it a versatile tool for developers. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for gold and other metals, updated every 60 minutes, every 10 minutes, or even more frequently, depending on your subscription plan. This feature is essential for traders who need to stay informed about market fluctuations.
- Historical Rates Endpoint: Access to historical rates dating back to 2019 allows businesses to analyze trends over time. By appending a specific date to the API request, users can retrieve historical gold prices, enabling them to make data-driven decisions based on past performance.
- Bid And Ask Endpoint: This powerful feature retrieves real-time bid and ask prices for gold, providing traders with critical information to execute trades effectively. Understanding the spread between bid and ask prices can help traders optimize their entry and exit points.
- Convert Endpoint: The conversion endpoint allows users to convert any amount from one currency to another, making it easy to calculate gold prices in different currencies. This feature is particularly useful for international traders and businesses operating in multiple markets.
- Time-Series Endpoint: Users can query the API for daily historical rates between two dates of their choice. This endpoint is invaluable for conducting in-depth analyses of price movements over specific periods, allowing businesses to identify patterns and trends.
- Fluctuation Endpoint: Track how gold prices fluctuate on a day-to-day basis with this endpoint. By understanding price changes over time, businesses can better anticipate market movements and adjust their strategies accordingly.
- Carat Endpoint: This unique feature allows users to retrieve gold rates by carat, catering to jewelers and businesses that require precise measurements for their products.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for gold over a specified period. This information can help traders identify potential buying or selling opportunities.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for gold, offering a comprehensive view of market performance over a specific timeframe.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, allowing users to analyze long-term trends in the metals market.
- API Key: The unique API key is essential for authentication and must be included in every request to access the API's features.
- API Response: The Metals-API delivers exchange rates relative to USD by default, ensuring that users receive consistent and reliable data.
- Available Endpoints: With 14 different API endpoints, the Metals-API provides a wide range of functionalities to meet various business needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies and metals, making it easy for users to find the symbols they need.
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.
API Endpoint Examples and Responses
Understanding the API responses is crucial for effective integration. Here are examples of responses from various endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1782001196,
"base": "USD",
"date": "2026-06-21",
"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 the success of the request and provides the latest rates for various metals, including gold (XAU). The rates are expressed per troy ounce, which is the standard measurement for precious metals.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1781914796,
"base": "USD",
"date": "2026-06-20",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows a successful request for historical rates, providing the gold price on a specific date. This data can be invaluable for trend analysis and market forecasting.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2026-06-14",
"end_date": "2026-06-21",
"base": "USD",
"rates": {
"2026-06-14": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-06-16": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-06-21": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides a time series of gold prices over a specified period, allowing users to visualize trends and fluctuations in the market.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1782001196,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
The convert endpoint allows users to convert a specified amount from one currency to another. In this case, converting 1000 USD to gold yields 0.482 troy ounces, providing a clear understanding of the value of gold in USD terms.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2026-06-14",
"end_date": "2026-06-21",
"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 illustrates how gold prices fluctuate over a specified period, providing insights into market volatility and helping traders make informed decisions.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1782001196,
"base": "USD",
"date": "2026-06-21",
"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 endpoint provides a comprehensive view of market performance, showing the opening, highest, lowest, and closing prices for gold. This data is crucial for traders looking to analyze market behavior and make strategic decisions.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1782001196,
"base": "USD",
"date": "2026-06-21",
"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 current bid and ask prices for gold, allowing traders to assess market conditions and make timely trading decisions.
Conclusion
The Metals-API is a powerful tool for developers looking to access accurate and real-time gold pricing data. With its extensive range of endpoints, businesses can leverage this API to gain valuable insights into market trends, optimize trading strategies, and enhance their applications. By integrating the Metals-API into their platforms, developers can provide users with the most up-to-date information on gold prices, enabling them to make informed decisions in a fast-paced market.
For more information on how to implement the Metals-API and explore its capabilities, visit the Metals-API Documentation and discover the full potential of this innovative API.