How to Get Real-Time Faridabad Gold 18k (FARI-18k) Prices via REST API with Metals-API
Introduction
In today's fast-paced financial landscape, accessing real-time market data is crucial for traders and investors alike. For those interested in the precious metals market, particularly Gold (XAU), the Metals-API offers a powerful solution. This REST API provides developers with the tools to retrieve real-time Gold prices, historical data, and various other functionalities that can enhance trading strategies and market analysis. In this blog post, we will explore how to access real-time Faridabad Gold 18k (FARI-18k) prices via the Metals-API, detailing the API's capabilities, endpoints, and practical use cases.
Metals-API Information
About Gold (XAU)
Gold has long been a symbol of wealth and stability, making it a popular choice for investors and traders. With the digital transformation in precious metals trading, data analytics, and market insights have become more accessible than ever. The integration of technology in trading platforms allows for innovative price discovery and the development of digital asset solutions. By utilizing the Metals-API, developers can tap into real-time data, enabling them to create next-generation applications that respond to market fluctuations and provide valuable insights.
API Description
The Metals-API is designed to empower developers by providing comprehensive access to real-time and historical metals data. This API supports various functionalities, allowing users to build applications that can track market trends, analyze price movements, and convert currencies seamlessly. With its user-friendly documentation, developers can quickly integrate the API into their projects, leveraging its capabilities to enhance their trading strategies.
For more information, you can visit the Metals-API Documentation, which provides detailed guidance on how to utilize the API effectively.
Key Features and Endpoints
The Metals-API offers a range of endpoints that cater to different needs, from retrieving the latest rates to accessing historical data. Here are some of the key features:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint returns real-time exchange rate data for Gold and other metals, updated every 60 minutes or more frequently. This feature is essential for traders who need up-to-the-minute pricing information.
- Historical Rates Endpoint: Access historical rates dating back to 2019 by appending a specific date to your query. This functionality is invaluable for analyzing past trends and making informed decisions based on historical data.
- Bid And Ask Endpoint: Retrieve real-time bid and ask prices for Gold and other metals. This endpoint is crucial for traders looking to execute orders at the best possible prices.
- Convert Endpoint: Easily convert amounts between different currencies or metals. This feature simplifies transactions and calculations for traders dealing with multiple currencies.
- Time-Series Endpoint: Query daily historical rates between two dates of your choice. This endpoint allows for in-depth analysis of price movements over time.
- Fluctuation Endpoint: Track how prices fluctuate on a day-to-day basis. This feature helps traders understand market volatility and make strategic decisions.
- Carat Endpoint: Retrieve Gold rates by carat, allowing for precise calculations based on the purity of the metal.
- Lowest/Highest Price Endpoint: Get the lowest and highest prices for a specified date, providing insights into market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Access open, high, low, and close prices for a specific date, which is essential for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, useful for those interested in industrial metals.
- API Key: Your unique API key is required for authentication and must be included in your requests.
- API Response: The API delivers exchange rates relative to USD, with all data returned in a structured JSON format.
- Available Endpoints: The Metals-API features 14 endpoints, each providing distinct functionalities tailored to various user needs.
- Supported Symbols Endpoint: Access a constantly updated list of all available currencies and metals 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
To illustrate the functionality of the Metals-API, let's explore some example API calls and their responses.
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1777422256,
"base": "USD",
"date": "2026-04-29",
"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 that the current price of Gold (XAU) is 0.000482 per troy ounce, with additional rates for other metals.
Historical Rates Endpoint
Access historical exchange rates for any date since 1999:
{
"success": true,
"timestamp": 1777335856,
"base": "USD",
"date": "2026-04-28",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response shows the historical price of Gold on April 28, 2026, allowing for analysis of past market behavior.
Time-series Endpoint
Get exchange rates for a specific time period:
{
"success": true,
"timeseries": true,
"start_date": "2026-04-22",
"end_date": "2026-04-29",
"base": "USD",
"rates": {
"2026-04-22": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-04-24": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-04-29": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides a time series of Gold prices over a specified period, enabling users to visualize trends and fluctuations.
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": 1777422256,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response indicates that 1000 USD is equivalent to 0.482 troy ounces of Gold, demonstrating the API's conversion capabilities.
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2026-04-22",
"end_date": "2026-04-29",
"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 Gold and other metals fluctuated over the specified period, highlighting changes in rates and percentages.
OHLC (Open/High/Low/Close) Endpoint
Get OHLC data for a specific time period:
{
"success": true,
"timestamp": 1777422256,
"base": "USD",
"date": "2026-04-29",
"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 on a specific date, which is essential for traders conducting technical analysis.
Bid/Ask Endpoint
Get current bid and ask prices for metals:
{
"success": true,
"timestamp": 1777422256,
"base": "USD",
"date": "2026-04-29",
"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 Gold, allowing traders to make informed decisions based on market conditions.
Conclusion
Accessing real-time Faridabad Gold 18k (FARI-18k) prices via the Metals-API is a straightforward process that can significantly enhance trading strategies and market analysis. By leveraging the various endpoints offered by the API, developers can create applications that provide valuable insights into the precious metals market. From retrieving the latest rates to analyzing historical data and tracking fluctuations, the Metals-API equips developers with the tools necessary to navigate the complexities of the metals market.
For further exploration, consider visiting the Metals-API Documentation for detailed guidance on implementation, or check the Metals-API Supported Symbols page for a comprehensive list of available metals. With the right tools and data at your fingertips, you can stay ahead in the ever-evolving world of precious metals trading.