The Easiest Way to Get Visakhapatnam Gold 22k (VISA-22k) Historical Rates Using Public APIs

The Easiest Way to Get Visakhapatnam Gold 22k (VISA-22k) Historical Rates Using Public APIs
In today's digital age, accessing historical prices for precious metals like gold has never been easier, thanks to the advent of public APIs. One such powerful tool is the Metals-API, which provides developers with real-time and historical data on various metals, including gold (XAU). This blog post will guide you through the process of retrieving historical gold prices, specifically for Visakhapatnam Gold 22k (VISA-22k), using the Metals-API. We will explore the API's capabilities, endpoints, parameters, and data formats, ensuring you have all the information needed to implement this in your applications.
About Gold (XAU)
Gold has always been a symbol of wealth and stability, and its value is influenced by various factors, including market demand, geopolitical events, and economic indicators. With the digital transformation in precious metals trading, data analytics has become crucial for market insights. The integration of technology in trading has revolutionized how investors and traders access and analyze gold prices. The Metals-API stands at the forefront of this innovation, providing developers with the tools to build next-generation applications that leverage real-time metals data.
By utilizing the Metals-API, developers can access a wealth of information, including the latest gold prices, historical rates, and even fluctuations over time. This API empowers users to make informed decisions based on accurate and timely data, enhancing their trading strategies and investment approaches.
API Description
The Metals-API is a comprehensive JSON API that provides access to a wide range of metal prices, including gold, silver, platinum, and palladium. It offers various endpoints that cater to different needs, from retrieving the latest rates to accessing historical data dating back to 2019. The API is designed to be user-friendly, allowing developers to easily integrate it into their applications.
For more detailed information, you can refer to the Metals-API Documentation, which outlines the available endpoints, parameters, and response formats.
Key Features and Endpoints
The Metals-API boasts several key features that make it a valuable resource for developers:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for various metals, updated every 60 minutes, 10 minutes, or even more frequently, depending on your subscription plan.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019 by appending a specific date to your API request.
- Bid and Ask Endpoint: Retrieve real-time bid and ask prices for metals, allowing traders to make informed decisions based on current market conditions.
- Convert Endpoint: This feature enables users to convert any amount from one metal to another or to/from USD, making it easy to understand the value of metals in different currencies.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice, providing insights into price trends over time.
- Fluctuation Endpoint: Track how metal prices fluctuate on a day-to-day basis, which can be crucial for traders looking to capitalize on market movements.
- Carat Endpoint: Retrieve information about gold rates by carat, which is particularly useful for jewelers and consumers interested in specific gold qualities.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for a specified date, helping users understand market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Get OHLC data for a specific time period, which is essential for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a broader context for market analysis.
- 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 by default, with all data returned in a structured JSON format.
- Supported Symbols Endpoint: This endpoint returns all available currencies and metal symbols, allowing users to explore their options.
- Gold Price India Endpoint: Retrieve the latest gold price in India using this dedicated endpoint, which is particularly useful for local traders.
- News Endpoint: Stay updated with the latest news articles related to various metals, providing context to 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.
API Endpoint Examples and Responses
To illustrate how to interact with the Metals-API, let's explore some example endpoints and their corresponding JSON responses.
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1760428857,
"base": "USD",
"date": "2025-10-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"
}
Historical Rates Endpoint
Access historical exchange rates for any date since 1999:
{
"success": true,
"timestamp": 1760342457,
"base": "USD",
"date": "2025-10-13",
"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-10-07",
"end_date": "2025-10-14",
"base": "USD",
"rates": {
"2025-10-07": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-10-09": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-10-14": {
"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": 1760428857,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2025-10-07",
"end_date": "2025-10-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"
}
OHLC (Open/High/Low/Close) Endpoint
Get OHLC data for a specific time period:
{
"success": true,
"timestamp": 1760428857,
"base": "USD",
"date": "2025-10-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"
}
Bid/Ask Endpoint
Get current bid and ask prices for metals:
{
"success": true,
"timestamp": 1760428857,
"base": "USD",
"date": "2025-10-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"
}
Conclusion
Accessing historical gold prices for Visakhapatnam Gold 22k (VISA-22k) has been simplified through the use of the Metals-API. By leveraging its various endpoints, developers can retrieve real-time and historical data, enabling them to make informed decisions based on accurate market insights. The API's capabilities, including the latest rates, historical data, and fluctuation tracking, provide a comprehensive toolkit for anyone looking to engage with the precious metals market.
For further exploration of the API's features, be sure to check out the Metals-API Documentation and the Metals-API Supported Symbols page. With the right tools and knowledge, you can harness the power of real-time metals data to enhance your trading strategies and investment decisions.