Obtain Vijayawada Gold 22k (VIJA-22k) Historical Prices from this API

Obtain Vijayawada Gold 22k (VIJA-22k) Historical Prices from this API
In the world of precious metals, gold holds a significant place, not just as a valuable commodity but also as a symbol of wealth and stability. For developers and traders alike, having access to accurate and historical price data is crucial for making informed decisions. This blog post will explore how to obtain historical prices for Vijayawada Gold 22k (VIJA-22k) using the Metals-API. We will delve into the capabilities of the Metals-API, focusing on its innovative features, technical specifications, and practical applications for developers looking to integrate gold price data into their applications.
Metals-API Information
About Gold (XAU)
Gold, represented by the symbol XAU, is one of the most sought-after precious metals in the world. Its value is influenced by various factors, including market demand, geopolitical stability, and economic conditions. In recent years, the digital transformation in the precious metals market has led to the integration of advanced data analytics and technology in trading. This shift has enabled traders to gain deeper market insights and make more informed decisions.
The advent of digital asset solutions has further revolutionized the way gold is traded. With the rise of blockchain technology and digital currencies, the landscape of precious metals trading is evolving rapidly. The Metals-API plays a pivotal role in this transformation by providing real-time and historical data that empowers developers to create next-generation applications for trading and investment.
API Description
The Metals-API is a powerful tool that provides developers with access to real-time and historical prices for various metals, including gold, silver, platinum, and palladium. With its robust architecture, the API allows for seamless integration into applications, enabling users to retrieve valuable market data effortlessly.
One of the standout features of the Metals-API is its ability to deliver real-time exchange rate data, updated frequently based on the user's subscription plan. This ensures that traders have access to the most current information, which is vital for making timely trading decisions. Additionally, the API offers historical data dating back to 2019, allowing users to analyze trends and patterns over time.
For more detailed information on how to utilize the API, developers can refer to the Metals-API Documentation, which provides comprehensive guidance on the various endpoints and their functionalities.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different 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 more frequently, depending on the subscription plan. This is essential for traders who need to stay updated on market fluctuations.
- Historical Rates Endpoint: Users can access historical rates for most currencies dating back to 2019. By appending a specific date to the API request, developers can retrieve past prices, which is crucial for trend analysis.
- 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 endpoint, 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 the API for daily historical rates between two specified dates, making it easier to analyze price movements over time.
- Fluctuation Endpoint: Users can track how metal prices fluctuate on a day-to-day basis, providing insights into market volatility.
- Carat Endpoint: This feature allows users to retrieve gold rates by carat, which is essential for jewelers and consumers looking to understand the value of gold jewelry.
- Lowest/Highest Price Endpoint: This endpoint enables users to query the API for the lowest and highest prices of metals over a specified period, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can retrieve OHLC data for a specific time period, which is vital for technical analysis and trading strategies.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, offering a comprehensive view of market trends.
- API Key: Each user is assigned a unique API key, which is required to access the API's features securely.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency in data presentation.
- Available Endpoints: The Metals-API includes 14 endpoints, each designed to provide specific functionalities, making it a versatile tool for developers.
- Supported Symbols Endpoint: This endpoint returns all available currencies, allowing users to stay updated on the latest symbols supported by the API.
- Gold Price India Endpoint: Users can retrieve the latest gold price in India using this dedicated endpoint, which is particularly useful for traders in the Indian market.
- News Endpoint: This feature allows users to access 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
Latest Rates Endpoint
To get real-time exchange rates for all available metals, you can use the Latest Rates Endpoint. Here’s an example response:
{
"success": true,
"timestamp": 1759755641,
"base": "USD",
"date": "2025-10-06",
"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 the success of the request, the timestamp of the data, the base currency (USD), the date of the rates, and the rates for various metals per troy ounce.
Historical Rates Endpoint
Accessing historical exchange rates for any date since 1999 is straightforward with the Historical Rates Endpoint. Here’s an example response:
{
"success": true,
"timestamp": 1759669241,
"base": "USD",
"date": "2025-10-05",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response provides historical rates for the specified date, allowing users to analyze past market conditions.
Time-series Endpoint
The Time-series Endpoint allows users to get exchange rates for a specific time period. Here’s an example response:
{
"success": true,
"timeseries": true,
"start_date": "2025-09-29",
"end_date": "2025-10-06",
"base": "USD",
"rates": {
"2025-09-29": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-10-01": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-10-06": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides a time series of rates between the specified dates, enabling users to visualize trends over time.
Convert Endpoint
The Convert Endpoint allows users to convert any amount from one metal to another or to/from USD. Here’s an example response:
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1759755641,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response shows the conversion of 1000 USD to gold (XAU), providing the equivalent amount in troy ounces.
Fluctuation Endpoint
Using the Fluctuation Endpoint, users can track rate fluctuations between two dates. Here’s an example response:
{
"success": true,
"fluctuation": true,
"start_date": "2025-09-29",
"end_date": "2025-10-06",
"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 detailed information about how the rates have changed over the specified period, which is essential for understanding market dynamics.
OHLC (Open/High/Low/Close) Price Endpoint
The OHLC Price Endpoint allows users to get open, high, low, and close prices for a specific time period. Here’s an example response:
{
"success": true,
"timestamp": 1759755641,
"base": "USD",
"date": "2025-10-06",
"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 critical data for traders who rely on technical analysis to make informed decisions.
Bid/Ask Endpoint
The Bid/Ask Endpoint provides current bid and ask prices for metals. Here’s an example response:
{
"success": true,
"timestamp": 1759755641,
"base": "USD",
"date": "2025-10-06",
"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 essential information for traders looking to understand market pricing and liquidity.
Conclusion
In conclusion, the Metals-API offers a comprehensive suite of features that empower developers to access real-time and historical data for precious metals, including Vijayawada Gold 22k (VIJA-22k). By leveraging the API's capabilities, developers can create innovative applications that provide valuable insights into the precious metals market. The ability to retrieve historical prices, track fluctuations, and convert between different metals makes the Metals-API an indispensable tool for traders and financial analysts.
For more information on how to get started with the Metals-API, be sure to check out the Metals-API Documentation and explore the Metals-API Supported Symbols page for a complete list of available metal symbols. With the right tools and data at your fingertips, you can navigate the complex world of precious metals trading with confidence.