Query Lucknow Gold 22k (LUCK-22k) Daily Historical Prices using this API
Introduction
Gold, represented by the symbol XAU, has long been a cornerstone of wealth and investment. As a precious metal, it plays a crucial role in global finance, jewelry, and technology. In today's digital age, the ability to access real-time and historical data on gold prices is essential for traders, investors, and developers alike. The Metals-API provides a robust solution for querying daily historical prices of gold, including the 22k variant known as LUCK-22k. This blog post will explore the capabilities of the Metals-API, focusing on how developers can leverage its features to obtain historical gold prices and gain insights into market trends.
About Gold (XAU)
Gold has undergone a digital transformation, evolving from a physical asset to a digital commodity that can be traded and analyzed through advanced technologies. The integration of data analytics and market insights has revolutionized how traders and investors approach gold trading. With the rise of technology in trading, the importance of real-time data and innovative price discovery methods cannot be overstated.
The Metals-API stands at the forefront of this transformation, offering developers the tools they need to build next-generation applications that can analyze gold prices and trends. By utilizing the API, developers can access a wealth of information, enabling them to create applications that provide valuable insights into the gold market.
API Description
The Metals-API is a powerful JSON API that provides real-time and historical data for various metals, including gold. This API empowers developers to create applications that can track prices, analyze trends, and convert currencies with ease. With its innovative features and capabilities, the Metals-API is designed to meet the needs of modern developers looking to integrate precious metals data into their applications.
One of the key advantages of the Metals-API is its ability to deliver real-time data, which is crucial for making informed trading decisions. The API updates its data frequently, ensuring that users have access to the latest market information. Additionally, the API supports a wide range of endpoints, each designed to provide specific functionalities that cater to different use cases.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that developers can utilize to access different types of data. Here are some of the most notable features:
Latest Rates Endpoint
The Latest Rates Endpoint provides real-time exchange rate data for gold and other metals. Depending on your subscription plan, the API can return updates every 60 minutes, every 10 minutes, or even more frequently. This endpoint is essential for traders who need to stay informed about the latest market movements.
{
"success": true,
"timestamp": 1786839276,
"base": "USD",
"date": "2026-08-16",
"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"
}
Historical Rates Endpoint
The Historical Rates Endpoint allows users to access historical exchange rates for gold dating back to 2019. By appending a specific date to the API request, developers can retrieve past prices, enabling them to analyze trends over time.
{
"success": true,
"timestamp": 1786752876,
"base": "USD",
"date": "2026-08-15",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Bid And Ask Endpoint
The Bid and Ask Endpoint is a powerful feature that enables developers to retrieve real-time bid and ask prices for gold and other metals. This information is crucial for traders looking to make informed decisions based on market conditions.
{
"success": true,
"timestamp": 1786839276,
"base": "USD",
"date": "2026-08-16",
"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"
}
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 need to quickly assess the value of their holdings in different currencies.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1786839276,
"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 dates of their choice. This feature is invaluable for conducting in-depth analyses of price movements over specific periods.
{
"success": true,
"timeseries": true,
"start_date": "2026-08-09",
"end_date": "2026-08-16",
"base": "USD",
"rates": {
"2026-08-09": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-08-11": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-08-16": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Fluctuation Endpoint
The Fluctuation Endpoint provides information about how gold prices fluctuate on a day-to-day basis. This feature is essential for traders who want to understand market volatility and make informed decisions based on price changes.
{
"success": true,
"fluctuation": true,
"start_date": "2026-08-09",
"end_date": "2026-08-16",
"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"
}
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 gold over a specific time period. This data is crucial for technical analysis and helps traders identify trends and patterns in the market.
{
"success": true,
"timestamp": 1786839276,
"base": "USD",
"date": "2026-08-16",
"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"
}
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 developers looking to analyze long-term trends in the metals market.
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 who need to understand the various metals available for querying.
Conclusion
In conclusion, the Metals-API offers a powerful suite of tools for developers looking to access real-time and historical data on gold prices, including the 22k variant LUCK-22k. By leveraging the various endpoints provided by the API, developers can create applications that analyze market trends, track price fluctuations, and convert currencies with ease. The ability to access comprehensive data on gold and other metals is essential for making informed trading decisions in today's fast-paced financial environment.
For more information on how to get started with the Metals-API, be sure to check out the Metals-API Documentation. This resource provides detailed information on how to implement the API and make the most of its features. With the right tools and knowledge, developers can harness the power of real-time metals data to drive innovation and success in their applications.