Fetch Vijayawada Gold 22k (VIJA-22k) prices in real-time with this API
Introduction
In today's fast-paced financial landscape, the ability to fetch real-time data is crucial for traders and investors, especially in the precious metals market. One of the most sought-after metals is gold, represented by the symbol XAU. With the rise of digital transformation in trading, having access to accurate and timely gold prices is essential. This is where the Metals-API comes into play, providing developers with the tools to integrate real-time gold pricing into their applications seamlessly.
About Gold (XAU)
Gold has long been a symbol of wealth and stability, serving as a hedge against inflation and economic uncertainty. In recent years, the digital transformation of precious metals trading has opened new avenues for investors. The integration of data analytics and market insights allows traders to make informed decisions based on real-time data. The Metals-API empowers developers to harness this data, enabling innovative applications that can track price fluctuations, analyze trends, and provide insights into market behavior.
Digital Transformation in Precious Metals
The digital transformation in the precious metals market is characterized by the integration of technology into trading practices. This shift has led to the development of sophisticated trading platforms that utilize data analytics to provide insights into market trends. By leveraging the Metals-API, developers can create applications that not only fetch real-time gold prices but also analyze historical data to predict future trends.
API Description
The Metals-API is a powerful tool that provides real-time and historical data for various metals, including gold. It allows developers to build next-generation applications that can fetch the latest gold prices, analyze historical trends, and convert between different currencies. The API is designed with innovation in mind, offering a range of endpoints that cater to different data needs.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that provide different functionalities, making it a versatile tool for developers. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for gold and other metals. Depending on your subscription plan, the API can return data updated every 60 minutes or even every 10 minutes. This feature is essential for traders who need to make quick decisions based on the latest market conditions.
- Historical Rates Endpoint: Access historical rates for gold dating back to 2019. By appending a specific date to the API request, developers can retrieve past prices, enabling them to analyze trends over time.
- Bid And Ask Endpoint: This feature allows users to retrieve real-time bid and ask prices for gold. Understanding the spread between these prices is crucial for traders looking to optimize their buying and selling strategies.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, allowing users to convert amounts between different currencies. This is particularly useful for international traders who deal with multiple currencies.
- Time-Series Endpoint: Developers can query the API for daily historical rates between two chosen dates. This feature is beneficial for analyzing price movements over specific periods.
- Fluctuation Endpoint: This endpoint provides information about how gold prices fluctuate on a day-to-day basis. By tracking these fluctuations, traders can identify patterns and make informed decisions.
- Carat Endpoint: Users can retrieve information about gold rates by carat, which is essential for jewelers and buyers looking for specific gold qualities.
- Lowest/Highest Price Endpoint: This feature allows users to query the API for the lowest and highest prices of gold over a specified period, providing insights into market volatility.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides the open, high, low, and close prices for gold, which are crucial for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, allowing for comprehensive market analysis.
- API Key: Each user is provided with a unique API key that must be included in requests to authenticate access to the API.
- API Response: The API returns exchange rates relative to USD, ensuring consistency in data interpretation.
- Available Endpoints: The Metals-API offers 14 different endpoints, each designed to fulfill specific data requirements.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available currencies and metals, ensuring users have access to the latest information.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping users 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 developers looking to integrate the Metals-API into their applications. 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": 1775520504,
"base": "USD",
"date": "2026-04-07",
"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": 1775434104,
"base": "USD",
"date": "2026-04-06",
"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": "2026-03-31",
"end_date": "2026-04-07",
"base": "USD",
"rates": {
"2026-03-31": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-04-02": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-04-07": {
"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": 1775520504,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2026-03-31",
"end_date": "2026-04-07",
"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": 1775520504,
"base": "USD",
"date": "2026-04-07",
"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": 1775520504,
"base": "USD",
"date": "2026-04-07",
"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
The Metals-API is a transformative tool for developers looking to integrate real-time gold pricing into their applications. With its comprehensive range of endpoints, the API provides access to the latest rates, historical data, and valuable market insights. By leveraging this API, developers can create innovative applications that enhance trading strategies and provide users with the information they need to make informed decisions. Whether you are tracking fluctuations, analyzing historical trends, or converting currencies, the Metals-API offers the flexibility and functionality required to succeed in the dynamic world of precious metals trading.