Explore Vijayawada Gold 22k (VIJA-22k) Historical Prices through this API
Introduction
Gold (XAU) has long been a symbol of wealth and stability, serving as a crucial asset in financial markets worldwide. With the rise of digital transformation in precious metals trading, developers now have access to innovative tools that enable them to analyze historical prices and market trends effectively. One such tool is the Metals-API, which provides real-time and historical data on gold prices, empowering developers to create next-generation applications that leverage this information.
Understanding Gold (XAU)
Gold is not just a commodity; it is a digital asset that plays a pivotal role in the global economy. The integration of technology in trading has transformed how investors and traders interact with gold. The Metals-API Documentation provides a comprehensive overview of how developers can utilize this API to access vital data on gold prices.
Digital Transformation in Precious Metals
The digital transformation in precious metals trading has led to the emergence of sophisticated platforms that offer real-time data analytics and market insights. The Metals-API allows developers to access up-to-date information on gold prices, enabling them to make informed decisions based on current market conditions.
Data Analytics and Market Insights
With the Metals-API, developers can harness the power of data analytics to gain insights into market trends. By utilizing the API's historical rates endpoint, developers can analyze price movements over time, helping them identify patterns and make predictions about future price changes.
Technology Integration in Trading
Integrating technology into trading processes has streamlined operations and improved efficiency. The Metals-API offers various endpoints that allow developers to retrieve real-time exchange rates, historical data, and even bid and ask prices. This integration facilitates seamless trading experiences and enhances decision-making capabilities.
Innovation in Price Discovery
The Metals-API represents a significant innovation in price discovery for gold and other precious metals. By providing access to real-time and historical data, the API enables developers to build applications that can track price fluctuations, analyze trends, and optimize trading strategies.
Digital Asset Solutions
As gold continues to be viewed as a safe-haven asset, the demand for digital asset solutions has increased. The Metals-API supports developers in creating applications that cater to this demand, offering features such as currency conversion and historical price tracking.
API Description
The Metals-API is a powerful tool that provides developers with access to real-time and historical data on precious metals, including gold (XAU). This API is designed to empower developers to build applications that can analyze market trends, track price movements, and provide valuable insights into the precious metals market.
Key Features of Metals-API
The Metals-API offers a range of features that enhance its functionality and usability:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint returns real-time exchange rate data updated every 60 minutes, every 10 minutes, or even more frequently. This feature is essential for developers looking to implement real-time trading applications.
- Historical Rates Endpoint: Developers can access historical rates for most currencies dating back to 2019. By appending a date in the format YYYY-MM-DD, users can query the Metals-API for historical rates, making it easier to analyze past market performance.
- Bid And Ask Endpoint: This powerful feature allows developers to retrieve real-time bid and ask prices, providing crucial information for traders looking to make informed decisions.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint that enables users to convert any amount from one currency to another, facilitating seamless transactions.
- Time-Series Endpoint: This endpoint allows developers to query the API for daily historical rates between two dates of their choice, providing a comprehensive view of price movements over time.
- Fluctuation Endpoint: Developers can retrieve information about how currencies fluctuate on a day-to-day basis, helping them understand market volatility.
- Carat Endpoint: This feature enables users to retrieve information about gold rates by carat, allowing for more precise calculations in jewelry and other applications.
- Lowest/Highest Price Endpoint: This endpoint allows developers to query the API to get the lowest and highest price for a specified date, providing insights into market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides developers with the open, high, low, and close prices for a specified date, essential for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, allowing for extensive market analysis.
- API Key: Each user is assigned a unique API key that must be passed into the API base URL's access_key parameter for authentication.
- API Response: Exchange rates delivered by the Metals-API are relative to USD, and all data is returned in a structured JSON format.
- Available Endpoints: The Metals-API comes with 14 API endpoints, each providing different functionalities to cater to various developer needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies, ensuring developers have access to the latest information.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping developers informed about market trends and events.
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
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1778199566,
"base": "USD",
"date": "2026-05-08",
"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 a successful query, providing the current exchange rates for various metals relative to USD.
Historical Rates Endpoint
Access historical exchange rates for any date since 1999:
{
"success": true,
"timestamp": 1778113166,
"base": "USD",
"date": "2026-05-07",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response shows the historical rates for gold and other metals on a specific date, allowing for detailed market analysis.
Time-series Endpoint
Get exchange rates for a specific time period:
{
"success": true,
"timeseries": true,
"start_date": "2026-05-01",
"end_date": "2026-05-08",
"base": "USD",
"rates": {
"2026-05-01": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-05-03": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-05-08": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides a time-series view of exchange rates, enabling developers to analyze trends over a specified period.
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": 1778199566,
"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
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2026-05-01",
"end_date": "2026-05-08",
"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 the rates for various metals have fluctuated over the specified period, helping developers understand market volatility.
OHLC (Open/High/Low/Close) Endpoint
Get OHLC data for a specific time period:
{
"success": true,
"timestamp": 1778199566,
"base": "USD",
"date": "2026-05-08",
"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 and other metals, essential for technical analysis and trading strategies.
Bid/Ask Endpoint
Get current bid and ask prices for metals:
{
"success": true,
"timestamp": 1778199566,
"base": "USD",
"date": "2026-05-08",
"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 current bid and ask prices for various metals, essential for traders looking to execute transactions at optimal prices.
Conclusion
In conclusion, the Metals-API offers a robust and comprehensive solution for developers looking to access real-time and historical data on gold prices. By leveraging the various endpoints provided by the API, developers can create applications that analyze market trends, track price movements, and provide valuable insights into the precious metals market. The integration of technology in trading has transformed how investors interact with gold, making it essential for developers to stay informed about the latest tools and resources available.
For more information on how to implement these features and access the full capabilities of 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 symbols. With the right tools and knowledge, developers can harness the power of gold data to create innovative applications that meet the demands of today's market.