Retrieve Visakhapatnam Gold 24k (VISA-24k) Historical Prices via Simple API Calls

Retrieve Visakhapatnam Gold 24k (VISA-24k) Historical Prices via Simple API Calls
In today's digital age, the demand for real-time data and analytics in the precious metals market has surged. Developers and traders alike are seeking efficient ways to access historical prices for metals such as Gold (XAU), Silver (XAG), and others. This blog post will explore how to retrieve historical prices for Visakhapatnam Gold 24k (VISA-24k) using the Metals-API, a powerful tool that provides comprehensive data on precious metals.
About Gold (XAU)
Gold has long been a symbol of wealth and a critical asset in financial markets. With the digital transformation of trading, the integration of technology in the precious metals sector has revolutionized how investors access and analyze market data. The rise of data analytics has enabled traders to gain deeper insights into market trends, allowing for more informed decision-making.
As technology continues to evolve, the methods of price discovery for Gold have also transformed. The advent of digital asset solutions has made it easier for investors to track Gold prices in real-time, enhancing their trading strategies. The Metals-API plays a crucial role in this transformation by providing developers with the tools necessary to build next-generation applications that leverage real-time metals data.
API Description
The Metals-API is a robust platform that offers a suite of features designed to empower developers in accessing and utilizing precious metals data. With its innovative capabilities, the API allows for seamless integration into various applications, enabling users to retrieve real-time and historical data effortlessly.
For more information, visit the Metals-API Website or check the Metals-API Documentation for detailed guidance on implementation.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different data retrieval needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for various metals, updated based on your subscription plan. Depending on the plan, updates can occur every 60 minutes or every 10 minutes, ensuring you have the most current data at your fingertips.
- Historical Rates Endpoint: Access historical rates dating back to 2019 by appending a specific date to your request. This feature is invaluable for analyzing trends and making informed investment decisions.
- Bid And Ask Endpoint: Retrieve real-time bid and ask prices for metals, allowing traders to make quick decisions based on the latest market conditions.
- Convert Endpoint: This endpoint allows you to convert any amount from one metal to another or to/from USD, facilitating easy calculations for traders.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice, enabling comprehensive analysis of price movements over time.
- Fluctuation Endpoint: Track how metals fluctuate on a day-to-day basis, providing insights into market volatility.
- Carat Endpoint: Retrieve information about Gold rates by carat, which is essential for jewelers and buyers in the luxury market.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for a specified date, helping traders identify market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Get detailed OHLC data for a specific time period, which is crucial for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a long-term view of market trends.
- API Key: Your unique API key is required to access the API, ensuring secure and authenticated requests.
- 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 includes 14 different endpoints, each designed to provide specific functionalities tailored to user needs.
- Supported Symbols Endpoint: This endpoint returns all available currencies, allowing users to stay updated on the latest symbols supported by the API.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping you 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.
API Endpoint Examples and Responses
Understanding the API responses is crucial for effective integration. Below are examples of various endpoints and their JSON responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1760695235,
"base": "USD",
"date": "2025-10-17",
"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"
}
The response indicates a successful request, providing the latest exchange rates for various metals, including Gold (XAU).
Historical Rates Endpoint
{
"success": true,
"timestamp": 1760608835,
"base": "USD",
"date": "2025-10-16",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This endpoint allows users to access historical exchange rates for any date since 1999, providing valuable data for trend analysis.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-10-10",
"end_date": "2025-10-17",
"base": "USD",
"rates": {
"2025-10-10": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-10-12": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-10-17": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series endpoint is particularly useful for analyzing price movements over a specified period, allowing for a comprehensive view of market trends.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1760695235,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This endpoint simplifies the process of converting amounts between different metals and currencies, making it easier for traders to perform calculations.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-10-10",
"end_date": "2025-10-17",
"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"
}
The fluctuation endpoint provides insights into how prices change over time, which is essential for traders looking to capitalize on market movements.
OHLC (Open/High/Low/Close) Endpoint
{
"success": true,
"timestamp": 1760695235,
"base": "USD",
"date": "2025-10-17",
"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"
}
The OHLC endpoint is crucial for technical analysis, providing traders with the necessary data to make informed decisions based on price movements throughout the trading day.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1760695235,
"base": "USD",
"date": "2025-10-17",
"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 endpoint provides current bid and ask prices, allowing traders to make quick decisions based on the latest market conditions.
Conclusion
In conclusion, the Metals-API offers a comprehensive suite of features that empower developers and traders to access real-time and historical data for precious metals like Gold. By utilizing the various endpoints, users can retrieve critical information, analyze market trends, and make informed trading decisions.
Whether you are looking to track the latest prices, analyze historical data, or convert between different metals, the Metals-API provides the tools necessary for success in the dynamic world of precious metals trading. For further exploration, refer to the Metals-API Documentation and the Metals-API Supported Symbols page to enhance your understanding and implementation of this powerful API.