Query Visakhapatnam Gold 22k (VISA-22k) Historical Prices from this API
Query Visakhapatnam Gold 22k (VISA-22k) Historical Prices from this API
In the ever-evolving landscape of precious metals trading, the ability to access historical prices for Gold (XAU) is crucial for investors, traders, and developers alike. The Metals-API provides a powerful platform for querying historical prices, enabling users to make informed decisions based on accurate and timely data. This blog post will delve into the capabilities of the Metals-API, focusing on how to retrieve historical prices for Gold, particularly in the context of Visakhapatnam Gold 22k (VISA-22k).
About Gold (XAU)
Gold has long been regarded as a safe haven asset and a store of value. Its significance in the financial markets is underscored by its role in digital transformation and data analytics. As technology continues to integrate into trading practices, the demand for real-time data and market insights has surged. The Metals-API stands at the forefront of this transformation, offering developers the tools needed to harness the power of data analytics in precious metals trading.
With the rise of digital asset solutions, the integration of technology in trading has become more pronounced. The Metals-API not only provides access to real-time and historical data but also empowers developers to innovate in price discovery. By leveraging the API, users can create applications that analyze market trends, track price fluctuations, and optimize trading strategies based on comprehensive data.
API Description
The Metals-API is a robust JSON API that delivers real-time and historical data for various metals, including Gold (XAU). Its capabilities extend beyond mere data retrieval; it enables developers to build next-generation applications that can analyze and visualize precious metals data. The API's innovative architecture allows for seamless integration with existing systems, making it an invaluable resource for developers looking to enhance their applications with metals data.
For detailed information on how to get started, refer to the Metals-API Documentation. This resource provides comprehensive guidance on utilizing the API's features effectively.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs, allowing users to access the data they require efficiently. Here are some of the key features:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint returns real-time exchange rate data for metals, updated every 60 minutes or more frequently. This is essential for traders who need to stay informed about current market conditions.
- Historical Rates Endpoint: Users can access historical rates for Gold dating back to 2019. By appending a specific date to the API request, developers can retrieve historical price data, which is crucial for trend analysis and forecasting.
- Bid And Ask Endpoint: This feature allows users to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The API includes a currency conversion feature, enabling users to convert amounts from one metal to another or to/from USD. This is particularly useful for traders dealing in multiple currencies.
- Time-Series Endpoint: This endpoint allows users to query daily historical rates between two specified dates, facilitating in-depth analysis of price movements over time.
- Fluctuation Endpoint: Users can track how metal prices fluctuate between two dates, providing insights into market volatility and trends.
- Carat Endpoint: This feature allows users to retrieve Gold rates by carat, which is essential for jewelers and consumers interested in specific gold purity levels.
- Lowest/Highest Price Endpoint: Users can query the API to find the lowest and highest prices for Gold over a specified period, 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 traders looking to analyze market performance.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, allowing for comprehensive market analysis.
- API Key: Each user is assigned a unique API key, which must be included in requests to authenticate and authorize access to the API.
- API Response: The API returns exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Available Endpoints: The Metals-API features 14 different endpoints, each designed to provide specific functionalities tailored to user needs.
- Supported Symbols Endpoint: This endpoint returns a constantly updated list of all available currencies, ensuring users have access to the latest information.
- News Endpoint: Users can retrieve the latest news articles related to various metals, keeping them informed about market developments.
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 metal data into their applications.
API Endpoint Examples and Responses
Understanding the API's response structure is crucial for effective integration. 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": 1763607742,
"base": "USD",
"date": "2025-11-20",
"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
Access historical exchange rates for any date since 1999.
{
"success": true,
"timestamp": 1763521342,
"base": "USD",
"date": "2025-11-19",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
Get exchange rates for a specific time period.
{
"success": true,
"timeseries": true,
"start_date": "2025-11-13",
"end_date": "2025-11-20",
"base": "USD",
"rates": {
"2025-11-13": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-11-15": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-11-20": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
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": 1763607742,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2025-11-13",
"end_date": "2025-11-20",
"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
Get OHLC data for a specific time period.
{
"success": true,
"timestamp": 1763607742,
"base": "USD",
"date": "2025-11-20",
"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
Get current bid and ask prices for metals.
{
"success": true,
"timestamp": 1763607742,
"base": "USD",
"date": "2025-11-20",
"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 provides a comprehensive suite of tools for accessing historical prices and real-time data for Gold (XAU) and other precious metals. By leveraging its various endpoints, developers can create innovative applications that enhance trading strategies and market analysis. The ability to query historical prices, track fluctuations, and convert between metals empowers users to make informed decisions in a dynamic market.
For further exploration of the API's capabilities, visit the Metals-API Documentation and discover how to integrate these features into your applications. Additionally, the Metals-API Supported Symbols page provides a complete list of available symbols, ensuring you have access to the data you need.
As the digital landscape continues to evolve, the Metals-API stands as a vital resource for developers seeking to harness the power of precious metals data. Embrace the future of trading with the innovative solutions offered by the Metals-API.