Access Historical Data for Madurai Gold 22k (MADU-22k) using this API
Access Historical Data for Madurai Gold 22k (MADU-22k) using this API
Gold, particularly in the form of 22k jewelry, holds significant cultural and economic value in regions like Madurai, India. With the advent of technology, accessing historical data for gold prices has become easier than ever. The Metals-API provides a robust solution for developers looking to integrate real-time and historical gold price data into their applications. This blog post will explore the capabilities of the Metals-API, focusing on how to access historical prices for gold (XAU) and the innovative features that make it a powerful tool for developers.
About Gold (XAU)
Gold has been a symbol of wealth and a medium of exchange for centuries. In today's digital age, the transformation of precious metals trading through technology is remarkable. The integration of data analytics and market insights allows traders and investors to make informed decisions. The Metals-API stands at the forefront of this digital transformation, offering developers the tools to harness real-time data for gold and other metals.
With the rise of digital asset solutions, the demand for accurate and timely information about gold prices has surged. The Metals-API not only provides current rates but also historical data, enabling users to analyze trends and make predictions. This capability is essential for those involved in trading, investment, and market analysis.
API Description
The Metals-API is a powerful tool that provides access to real-time and historical data for various metals, including gold (XAU). It empowers developers to build next-generation applications that can leverage this data for various purposes, such as market analysis, trading strategies, and financial forecasting. The API's capabilities include retrieving the latest rates, historical prices, bid and ask prices, and much more.
For more information, you can visit the Metals-API Website or check out 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 needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated based on your subscription plan. Depending on the plan, updates can occur every 60 minutes or even every 10 minutes.
- Historical Rates Endpoint: Access historical rates dating back to 2019. By appending a specific date in the format YYYY-MM-DD, users can retrieve past prices for analysis.
- Bid And Ask Endpoint: This feature allows users to obtain real-time bid and ask prices, which are crucial for traders looking to make informed decisions.
- Convert Endpoint: Easily convert amounts between different metals or to/from USD. This is particularly useful for users dealing with multiple currencies.
- Time-Series Endpoint: Query daily historical rates between two dates of your choice, enabling users to analyze trends over time.
- Fluctuation Endpoint: Track how metal prices fluctuate over specific periods, providing insights into market volatility.
- Carat Endpoint: Retrieve gold rates by carat, which is essential for jewelers and consumers interested in specific gold purities.
- Lowest/Highest Price Endpoint: Get the lowest and highest prices for a specified date, helping users understand market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Access detailed price data for specific periods, which is vital for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, useful for those tracking industrial metals.
- API Key: Each user is assigned a unique API key, which is required for authentication when making requests.
- API Response: The API delivers exchange rates relative to USD, ensuring consistency across data retrieval.
- Available Endpoints: The Metals-API features 14 endpoints, each designed for specific functionalities, making it a versatile tool for developers.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available currencies and metals, ensuring users have access to the latest information.
For a complete list of supported symbols, refer to the Metals-API Supported Symbols page.
API Endpoint Examples and Responses
Understanding how to interact with the Metals-API is crucial for effective implementation. 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": 1783469896,
"base": "USD",
"date": "2026-07-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"
}
Historical Rates Endpoint
Access historical exchange rates for any date since 1999.
{
"success": true,
"timestamp": 1783383496,
"base": "USD",
"date": "2026-07-07",
"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-07-01",
"end_date": "2026-07-08",
"base": "USD",
"rates": {
"2026-07-01": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-07-03": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-07-08": {
"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": 1783469896,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2026-07-01",
"end_date": "2026-07-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"
}
OHLC (Open/High/Low/Close) Endpoint
Get OHLC data for a specific time period.
{
"success": true,
"timestamp": 1783469896,
"base": "USD",
"date": "2026-07-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"
}
Bid/Ask Endpoint
Get current bid and ask prices for metals.
{
"success": true,
"timestamp": 1783469896,
"base": "USD",
"date": "2026-07-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"
}
Conclusion
In conclusion, the Metals-API provides a comprehensive solution for accessing historical and real-time data for gold and other metals. Its innovative features, such as the ability to retrieve historical rates, bid and ask prices, and conversion capabilities, empower developers to create sophisticated applications that can analyze market trends and make informed decisions.
By leveraging the Metals-API, developers can tap into a wealth of data that can enhance their trading strategies, improve market analysis, and ultimately lead to better investment outcomes. For those looking to integrate this powerful API into their projects, the Metals-API Documentation is an invaluable resource, providing detailed guidance on how to effectively utilize its features.
As the digital landscape continues to evolve, the importance of accurate and timely data in the precious metals market cannot be overstated. The Metals-API stands ready to support developers in navigating this complex environment, ensuring they have the tools necessary to succeed.