Get Guwahati Gold 22k (GUWA-22k) Historical Prices for your application using this API
Introduction
In the world of finance and investment, gold (XAU) has always held a significant place due to its intrinsic value and historical stability. For developers looking to integrate gold pricing data into their applications, the Metals-API offers a robust solution. This API provides access to historical prices, real-time data, and various endpoints that allow for comprehensive data analytics and market insights. In this blog post, we will explore how to retrieve historical prices for Guwahati Gold 22k (GUWA-22k) using the Metals-API, along with a deep dive into its features, capabilities, and practical applications.
About Gold (XAU)
Gold has been a symbol of wealth and a standard for currency for centuries. With the rise of digital transformation in precious metals trading, the demand for accurate and real-time data has surged. The integration of technology in trading has paved the way for innovative solutions that enhance price discovery and market analysis. As a developer, understanding how to leverage data analytics and market insights can significantly improve your application's functionality and user experience.
Digital Transformation in Precious Metals
The digital transformation of precious metals trading has led to the emergence of various platforms and APIs that provide real-time data. This shift allows traders and investors to make informed decisions based on accurate and timely information. The Metals-API stands out as a leading solution, offering a wide range of endpoints that cater to different data needs.
Data Analytics and Market Insights
With the Metals-API, developers can access historical data dating back to 2019, enabling them to perform in-depth analyses and generate market insights. By utilizing the API's historical rates endpoint, you can retrieve past gold prices and analyze trends over time. This capability is essential for applications focused on investment strategies, market forecasting, and financial modeling.
Technology Integration in Trading
Integrating technology into trading processes has transformed how investors interact with the market. The Metals-API allows developers to build applications that can fetch real-time data, historical prices, and even perform currency conversions. This level of integration enhances user experience and provides traders with the tools they need to succeed.
API Description
The Metals-API is a powerful tool that empowers developers to build next-generation applications by providing real-time metals data. With its innovative features, the API allows users to access a wealth of information about various metals, including gold, silver, platinum, and palladium. The API is designed to be user-friendly, with comprehensive documentation available at the Metals-API Documentation.
Key Features and Endpoints
The Metals-API offers a variety of endpoints, each designed to serve specific data needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated every 60 minutes, 10 minutes, or even more frequently, depending on your subscription plan. This feature is crucial for applications that require up-to-the-minute pricing information.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. By appending a specific date to your query, you can retrieve past prices for gold, allowing for trend analysis and historical comparisons.
- Bid And Ask Endpoint: This powerful feature enables you to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, allowing you to convert any amount from one metal to another or to/from USD. This feature is particularly useful for applications that require multi-currency support.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice. This endpoint is ideal for applications that need to analyze price movements over specific periods.
- Fluctuation Endpoint: Retrieve information about how currencies fluctuate on a day-to-day basis, helping you understand market volatility and price trends.
- Carat Endpoint: Get information about gold rates by carat, allowing for precise calculations in jewelry and precious metal trading.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for a specific date, providing insights into market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Access open, high, low, and close prices for a specific date, essential for technical analysis and trading strategies.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, useful for traders focused on industrial metals.
- API Key: Your unique API key is required to access the API, ensuring secure and authorized usage.
- API Response: The API delivers exchange rates relative to USD, with all data returned in a structured JSON format.
- Available Endpoints: The Metals-API features 14 endpoints, each providing different functionalities to cater to diverse data needs.
- Supported Symbols Endpoint: Access a constantly updated list of all available currencies and metals supported by the API through the Metals-API Supported Symbols.
List of Symbols
The Metals-API provides access to a comprehensive range of metal symbols, including gold, silver, platinum, and palladium. For a complete list of all supported symbols and their specifications, refer to the Symbols page.
API Endpoint Examples and Responses
Understanding the API responses is crucial for effective integration. Below are detailed examples of various endpoints and their responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1782346559,
"base": "USD",
"date": "2026-06-25",
"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 that the current price of gold (XAU) is 0.000482 per troy ounce, with additional rates for other metals.
Historical Rates Endpoint
Access historical exchange rates for any date since 1999:
{
"success": true,
"timestamp": 1782260159,
"base": "USD",
"date": "2026-06-24",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response shows the historical price of gold on June 24, 2026, allowing developers to analyze past trends.
Time-series Endpoint
Get exchange rates for a specific time period:
{
"success": true,
"timeseries": true,
"start_date": "2026-06-18",
"end_date": "2026-06-25",
"base": "USD",
"rates": {
"2026-06-18": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-06-20": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-06-25": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides daily rates for gold over a specified period, enabling developers to visualize price movements.
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": 1782346559,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response indicates that 1000 USD converts to 0.482 troy ounces of gold, providing essential functionality for applications dealing with currency conversions.
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2026-06-18",
"end_date": "2026-06-25",
"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 prices have fluctuated over a specified period, which is vital for traders looking to capitalize on market movements.
OHLC (Open/High/Low/Close) Endpoint
Get OHLC data for a specific time period:
{
"success": true,
"timestamp": 1782346559,
"base": "USD",
"date": "2026-06-25",
"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 the open, high, low, and close prices for gold on a specific date, essential for technical analysis and trading strategies.
Bid/Ask Endpoint
Get current bid and ask prices for metals:
{
"success": true,
"timestamp": 1782346559,
"base": "USD",
"date": "2026-06-25",
"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 the bid and ask prices for gold, which are crucial for traders looking to execute buy or sell orders effectively.
Conclusion
The Metals-API is an invaluable resource for developers looking to integrate gold pricing data into their applications. With its extensive range of endpoints, real-time data capabilities, and historical pricing access, the API empowers developers to create innovative solutions that enhance trading experiences and market analysis. By leveraging the API's features, such as the historical rates endpoint, fluctuation tracking, and conversion capabilities, developers can build applications that provide users with comprehensive insights into the precious metals market.
For more information on how to get started with the Metals-API, refer to the Metals-API Documentation and explore the Symbols List for a complete overview of supported metals and currencies. With the right tools and data, you can unlock the full potential of gold trading and investment strategies.