Implement this API to Access Mumbai Gold 18k (MUMB-18k) Historical Prices
Introduction
Gold, represented by the symbol XAU, has long been a cornerstone of wealth and investment. In today's digital age, accessing historical prices for gold has become increasingly important for investors, traders, and analysts. The Metals-API provides a robust solution for retrieving historical prices of gold and other precious metals, empowering developers to create innovative applications that leverage real-time and historical data. This blog post will delve into the capabilities of the Metals-API, focusing on how to effectively access Mumbai Gold 18k (MUMB-18k) historical prices and the transformative potential of integrating this data into your applications.
Understanding Gold (XAU)
Gold has always been a symbol of wealth and stability, often serving as a hedge against inflation and economic uncertainty. In recent years, the digital transformation in the precious metals market has led to the emergence of advanced data analytics and market insights. The integration of technology in trading has revolutionized how investors interact with gold prices, making it essential for developers to have access to accurate and timely data.
With the rise of digital asset solutions, the demand for real-time metals data has surged. The Metals-API stands at the forefront of this transformation, offering developers the tools they need to build next-generation applications that can analyze and visualize gold price trends, historical data, and market fluctuations.
API Description
The Metals-API is a powerful JSON API that provides access to real-time and historical prices for various metals, including gold. It enables developers to retrieve data through a variety of endpoints, each designed to meet specific needs. The API's capabilities extend beyond mere price retrieval; it empowers developers to create applications that can analyze trends, forecast prices, and provide insights into market behavior.
For comprehensive documentation on how to implement the API, visit the Metals-API Documentation. This resource provides detailed information on how to utilize the API effectively, including endpoint descriptions, parameter requirements, and example responses.
Key Features of Metals-API
The Metals-API offers a variety of endpoints that cater to different data needs. Here are some of the key features:
Latest Rates Endpoint
The Latest Rates endpoint provides real-time exchange rate data for various metals, including gold. Depending on your subscription plan, this endpoint can return data updated every 60 minutes, every 10 minutes, or even more frequently. This feature is crucial for traders who need to make quick decisions based on the latest market conditions.
Historical Rates Endpoint
Accessing historical rates is essential for understanding market trends over time. The Historical Rates endpoint allows users to query prices dating back to 2019 by appending a specific date in the format YYYY-MM-DD. This functionality is particularly useful for analysts looking to study price movements and identify patterns.
Bid and Ask Endpoint
The Bid and Ask endpoint provides real-time bid and ask prices for metals. This feature is vital for traders who need to know the current market spread to make informed trading decisions. Depending on your subscription plan, this endpoint can deliver precise pricing data that reflects the current market conditions.
Convert Endpoint
The Convert endpoint allows users to convert any amount from one metal to another or to/from USD. This feature is particularly useful for investors who want to understand the value of their holdings in different currencies or metals.
Time-Series Endpoint
The Time-Series endpoint enables users to query daily historical rates between two dates of their choice. This feature is invaluable for conducting in-depth analyses of price trends over specific periods, allowing developers to build applications that visualize historical data effectively.
Fluctuation Endpoint
Using the Fluctuation endpoint, developers can track how metal prices fluctuate on a day-to-day basis. This feature provides insights into market volatility and can help traders make informed decisions based on historical price movements.
Carat Endpoint
The Carat endpoint allows users to retrieve information about gold rates by carat. This feature is particularly relevant for jewelers and consumers interested in understanding the value of gold based on its purity.
Lowest/Highest Price Endpoint
The Lowest/Highest Price endpoint enables users to query the API for the lowest and highest prices of gold over a specified period. This information is crucial for traders looking to identify potential entry and exit points in the market.
Open/High/Low/Close (OHLC) Price Endpoint
The OHLC Price endpoint provides users with the open, high, low, and close prices for gold over a specified date range. This data is essential for technical analysis and helps traders understand market trends and price movements.
Historical LME Endpoint
The Historical LME endpoint provides access to historical rates for LME symbols dating back to 2008. This feature is particularly useful for analysts and traders who need to study historical price trends in the context of the London Metal Exchange.
API Key and Response
To access the Metals-API, users must obtain an API key, which is passed into the API base URL's access_key parameter. The API delivers exchange rates relative to USD by default, and all data is returned in a structured JSON format, making it easy for developers to integrate into their applications.
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 understand the various metals available through the API.
API Endpoint Examples and Responses
Understanding how to interpret API responses is crucial for developers. 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": 1781741953,
"base": "USD",
"date": "2026-06-18",
"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": 1781655553,
"base": "USD",
"date": "2026-06-17",
"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-06-11",
"end_date": "2026-06-18",
"base": "USD",
"rates": {
"2026-06-11": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-06-13": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-06-18": {
"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": 1781741953,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2026-06-11",
"end_date": "2026-06-18",
"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": 1781741953,
"base": "USD",
"date": "2026-06-18",
"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": 1781741953,
"base": "USD",
"date": "2026-06-18",
"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 offers a comprehensive solution for accessing historical prices of gold and other precious metals. By leveraging the various endpoints provided by the API, developers can create powerful applications that analyze market trends, track fluctuations, and convert between different metals and currencies. The ability to access real-time and historical data empowers traders and investors to make informed decisions based on accurate information.
For further exploration of the API's capabilities, developers are encouraged to visit the Metals-API Documentation for detailed guidance on implementation. Additionally, the Metals-API Supported Symbols page provides a complete list of available metals, ensuring that users can find the data they need for their applications.
As the digital landscape continues to evolve, the integration of advanced data analytics and real-time pricing will play a crucial role in shaping the future of precious metals trading. By utilizing the Metals-API, developers can stay ahead of the curve and create innovative solutions that meet the demands of today's market.