Discover Fluctuations in Surat Gold 22k (SURA-22k) Historical Prices with this API
Introduction
In the ever-evolving landscape of precious metals trading, understanding the historical prices of Gold (XAU) is crucial for investors and developers alike. With the rise of digital transformation in the financial sector, the ability to access real-time and historical data has become a game-changer. The Metals-API provides a robust solution for retrieving historical prices of Gold 22k (SURA-22k) and other metals, empowering developers to create innovative applications that leverage this data.
About Gold (XAU)
Gold has long been regarded as a safe haven asset, a hedge against inflation, and a store of value. As the world transitions towards digital asset solutions, the integration of technology in trading has transformed how investors approach precious metals. The Metals-API Documentation outlines how developers can harness the power of data analytics and market insights to build applications that provide real-time updates on Gold prices.
Digital Transformation in Precious Metals
The digital transformation of precious metals trading has enabled a more transparent and efficient market. By utilizing APIs, developers can access a wealth of information that was previously difficult to obtain. This includes real-time pricing, historical data, and market trends, all of which can be used to inform trading strategies and investment decisions.
Data Analytics and Market Insights
Data analytics plays a pivotal role in understanding market dynamics. With the Metals-API, developers can analyze historical price fluctuations, identify trends, and make data-driven decisions. The ability to query historical rates dating back to 2019 allows for comprehensive analysis and forecasting.
Technology Integration in Trading
Integrating technology into trading platforms enhances user experience and operational efficiency. The Metals-API provides various endpoints that allow developers to retrieve the latest rates, historical prices, and even bid/ask prices, facilitating seamless trading experiences.
API Description
The Metals-API is a powerful tool designed to provide developers with access to real-time and historical metals data. Its innovative capabilities empower users to build next-generation applications that can track price movements, analyze trends, and convert currencies with ease. The API supports a wide range of metals, including Gold (XAU), Silver (XAG), Platinum (XPT), and Palladium (XPD), among others.
Key Features of Metals-API
The Metals-API offers a variety of endpoints that cater to different needs:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data, updated based on your subscription plan. Depending on the plan, updates can occur every 60 minutes or every 10 minutes.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. By appending a date in the format YYYY-MM-DD, developers can retrieve past prices for analysis.
- Bid And Ask Endpoint: This feature allows users to retrieve real-time bid and ask prices, providing insights into market liquidity and pricing strategies.
- Convert Endpoint: The conversion endpoint enables users to convert any amount from one currency to another, facilitating transactions across different metals.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice, allowing for in-depth analysis of price movements over time.
- Fluctuation Endpoint: This endpoint provides information on how currencies fluctuate on a day-to-day basis, offering insights into market volatility.
- Carat Endpoint: Retrieve information about Gold rates by carat, which is essential for jewelers and investors in the jewelry market.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for a specified date, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific date, essential for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, useful for those involved in industrial metals.
- API Key: Each user is assigned a unique API key that must be included in requests to authenticate and authorize access.
- API Response: The API delivers exchange rates relative to USD, with all data returned in a structured JSON format.
- Available Endpoints: The Metals-API includes 14 endpoints, each providing distinct functionalities to cater to diverse user needs.
- Supported Symbols Endpoint: This endpoint returns all available currencies, ensuring users have access to the latest symbols.
- Intraday Endpoint: Query intraday exchange rate data for a single symbol, providing real-time insights into market movements.
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.
API Endpoint Examples and Responses
Understanding the structure of API responses is crucial for developers. Below are examples of various endpoints and their corresponding JSON responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1786666390,
"base": "USD",
"date": "2026-08-14",
"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 a successful request, providing the latest rates for various metals, with Gold priced at 0.000482 per troy ounce.
Historical Rates Endpoint
Access historical exchange rates for any date since 1999:
{
"success": true,
"timestamp": 1786579990,
"base": "USD",
"date": "2026-08-13",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response shows the historical rates for Gold and other metals on a specific date, allowing for retrospective analysis.
Time-series Endpoint
Get exchange rates for a specific time period:
{
"success": true,
"timeseries": true,
"start_date": "2026-08-07",
"end_date": "2026-08-14",
"base": "USD",
"rates": {
"2026-08-07": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-08-09": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-08-14": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides a time series of exchange rates, allowing developers to visualize trends over a specified period.
Convert Endpoint
Convert any amount from one metal to another or to/from USD:
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1786666390,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response demonstrates the conversion of 1000 USD to Gold, resulting in 0.482 troy ounces.
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2026-08-07",
"end_date": "2026-08-14",
"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 provides insights into how Gold and other metals fluctuated over a specified period, highlighting both absolute and percentage changes.
OHLC (Open/High/Low/Close) Endpoint
Get OHLC data for a specific time period:
{
"success": true,
"timestamp": 1786666390,
"base": "USD",
"date": "2026-08-14",
"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"
}
This response provides a comprehensive view of the price action for Gold and other metals, essential for traders looking to make informed decisions based on market behavior.
Bid/Ask Endpoint
Get current bid and ask prices for metals:
{
"success": true,
"timestamp": 1786666390,
"base": "USD",
"date": "2026-08-14",
"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 response provides valuable information for traders, highlighting the current bid and ask prices along with the spread, which is crucial for executing trades effectively.
Conclusion
The Metals-API is a transformative tool for developers looking to access historical prices and real-time data for Gold (XAU) and other precious metals. By leveraging its comprehensive endpoints, developers can create applications that provide valuable insights into market trends, facilitate trading strategies, and enhance user experiences. The ability to track fluctuations, convert currencies, and analyze historical data empowers users to make informed decisions in a dynamic market.
For more information on how to implement these features, refer to the Metals-API Documentation and explore the Metals-API Supported Symbols for a complete list of available metals. As the financial landscape continues to evolve, embracing these technological advancements will be key to staying ahead in the precious metals market.