Query Surat Gold 22k (SURA-22k) Historical Prices utilizing this API

Query Surat Gold 22k (SURA-22k) Historical Prices Utilizing Metals-API
In the ever-evolving landscape of precious metals trading, the need for accurate and timely data has never been more critical. For developers and traders alike, accessing historical prices of gold, particularly the Surat Gold 22k (SURA-22k), can provide invaluable insights into market trends and price movements. This blog post delves into the capabilities of the Metals-API and how it can be utilized to obtain historical prices for gold and other precious metals.
About Gold (XAU)
Gold, represented by the symbol XAU, has long been regarded as a safe haven asset and a store of value. In recent years, the digital transformation in the precious metals market has revolutionized how traders and investors access and analyze gold prices. With the integration of data analytics and advanced technology, market participants can now leverage real-time data to make informed decisions.
The innovation in price discovery mechanisms has made it easier for traders to understand market dynamics. The rise of digital asset solutions has further enhanced the accessibility of gold trading, allowing for seamless transactions and efficient price tracking. As the demand for gold continues to grow, understanding its historical price movements becomes essential for both short-term traders and long-term investors.
Metals-API Information
The Metals-API is a powerful tool designed to provide developers with real-time and historical data on various metals, including gold. This API empowers users to build next-generation applications that can analyze market trends, track price fluctuations, and convert currencies with ease. The API's capabilities extend beyond simple price retrieval; it offers a comprehensive suite of features that can enhance trading strategies and decision-making processes.
Key Features and Endpoints
The Metals-API boasts a variety of endpoints that cater to different needs within the precious metals market. Here are some of the key features:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint returns real-time exchange rate data updated every 60 minutes, every 10 minutes, or even more frequently. This feature is crucial for traders who need to stay updated on the latest market prices.
- Historical Rates Endpoint: Historical rates are available for most currencies dating back to 2019. You can query the Metals-API for historical rates by appending a date to the endpoint. This is particularly useful for analyzing past price trends of Surat Gold 22k.
- Bid And Ask Endpoint: This feature allows you to retrieve real-time bid and ask prices, providing insights into the current market sentiment and liquidity.
- Convert Endpoint: The API includes a currency conversion endpoint, enabling users to convert any amount from one currency to another, which is essential for traders operating in different markets.
- Time-Series Endpoint: This endpoint allows you to query the API for daily historical rates between two dates of your choice, making it easier to analyze trends over specific periods.
- Fluctuation Endpoint: With this feature, you can retrieve information about how prices fluctuate on a day-to-day basis, providing insights into market volatility.
- Carat Endpoint: This endpoint allows you to retrieve information about gold rates by carat, which is particularly relevant for those dealing with different gold purities.
- Lowest/Highest Price Endpoint: This endpoint enables you to query the API to get the lowest and highest price for a specified date, helping traders identify price extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This feature provides open, high, low, and close prices for a specific date, which is essential for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, which can be beneficial for comprehensive market analysis.
- API Key: Your API Key is essential for accessing the API's features, ensuring secure and authorized usage.
- API Response: The API delivers exchange rates relative to USD by default, with all data returned in a structured JSON format.
- Available Endpoints: The Metals-API offers 14 different endpoints, each providing unique functionalities to cater to various trading needs.
- Supported Symbols Endpoint: This endpoint returns all available currencies, allowing users to stay informed about the latest symbols supported by the API.
- Gold Price India Endpoint: Retrieve the latest gold price in India using the dedicated endpoint, which is particularly useful for traders in the Indian market.
- News Endpoint: Stay updated with the latest news articles related to various metals, providing context to market movements.
API Endpoint Examples and Responses
To illustrate the capabilities of the Metals-API, here are some example responses for key endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1758308436,
"base": "USD",
"date": "2025-09-19",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
{
"success": true,
"timestamp": 1758222036,
"base": "USD",
"date": "2025-09-18",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-09-12",
"end_date": "2025-09-19",
"base": "USD",
"rates": {
"2025-09-12": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-09-14": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-09-19": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1758308436,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-09-12",
"end_date": "2025-09-19",
"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"
}
OHLC (Open/High/Low/Close) Endpoint
{
"success": true,
"timestamp": 1758308436,
"base": "USD",
"date": "2025-09-19",
"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"
}
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1758308436,
"base": "USD",
"date": "2025-09-19",
"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"
}
Conclusion
In conclusion, the Metals-API offers a robust and comprehensive solution for accessing historical prices of gold, including Surat Gold 22k (SURA-22k). By leveraging the various endpoints provided by the API, developers can create powerful applications that analyze market trends, track price fluctuations, and make informed trading decisions. The integration of real-time data, historical analysis, and advanced features such as bid/ask pricing and currency conversion positions the Metals-API as an essential tool for anyone involved in the precious metals market.
For further exploration of the API's capabilities, refer to the Metals-API Documentation and discover the full range of supported symbols on the Metals-API Supported Symbols page. Whether you are a seasoned trader or a developer looking to integrate precious metals data into your applications, the Metals-API is equipped to meet your needs.