Access Mumbai Gold 18k (MUMB-18k) API Data in JSON Format
Access Mumbai Gold 18k (MUMB-18k) API Data in JSON Format
In today's rapidly evolving financial landscape, the demand for real-time data on precious metals, particularly gold, has surged. Developers and traders alike are increasingly turning to APIs to access accurate and timely information. One such powerful tool is the Metals-API, which provides comprehensive access to gold (XAU) exchange rates in JSON format. This blog post will explore how to effectively retrieve and utilize gold exchange rates using the Metals-API, including sample API responses and integration tips.
About Gold (XAU)
Gold has long been regarded as a safe-haven asset, especially during times of economic uncertainty. With the digital transformation in precious metals trading, the integration of data analytics and technology has revolutionized how traders and investors approach the market. The Metals-API stands at the forefront of this transformation, offering developers the tools to harness real-time data for innovative applications.
By leveraging the Metals-API, developers can gain insights into market trends, perform data analytics, and create applications that facilitate seamless trading experiences. The API empowers users to discover price fluctuations, analyze historical data, and integrate digital asset solutions into their platforms. As the market evolves, the need for accurate and timely data becomes paramount, and the Metals-API provides a robust solution for accessing this information.
API Description
The Metals-API is designed to deliver real-time exchange rate data for various metals, including gold, silver, platinum, and palladium. With its user-friendly interface and comprehensive documentation, developers can easily integrate the API into their applications. The API supports multiple endpoints, each tailored to meet specific data retrieval needs, from the latest rates to historical data and conversion functionalities.
For detailed information on how to use the API, visit the Metals-API Documentation. This resource provides insights into the API's capabilities, including how to authenticate requests and handle responses effectively.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different data retrieval needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for gold and other metals, updated based on your subscription plan. Depending on the plan, updates can occur every 60 minutes or every 10 minutes, ensuring that you have the most current information at your fingertips.
- Historical Rates Endpoint: Access historical exchange rates dating back to 2019. By appending a specific date to your query, you can retrieve past rates for analysis and comparison.
- Bid And Ask Endpoint: This feature allows you to retrieve real-time bid and ask prices for metals, providing crucial information for traders looking to make informed decisions.
- Convert Endpoint: Easily convert any amount from one metal to another or to/from USD. This endpoint simplifies the process of currency conversion, making it easier for users to understand the value of their assets.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice. This feature is particularly useful for analyzing trends over time.
- Fluctuation Endpoint: Retrieve information about how currencies fluctuate on a day-to-day basis, allowing for better market predictions and trading strategies.
- Carat Endpoint: Get information about gold rates by carat. This endpoint is essential for jewelers and consumers looking to understand the value of gold in different purities.
- Lowest/Highest Price Endpoint: Query the API to find the lowest and highest prices for gold over a specified period, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific time period, which is vital for traders analyzing market movements.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, offering a comprehensive view of market trends.
- API Key: Your unique API key is essential for accessing the API's features. It must be included in your requests to authenticate your access.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency in data representation.
- Available Endpoints: The Metals-API includes 14 different endpoints, each providing unique functionalities to cater to various data needs.
- Supported Symbols Endpoint: This endpoint returns a constantly updated list of all available currencies, ensuring you have access to the latest symbols.
For a complete list of all supported symbols and their specifications, refer to the Metals-API Supported Symbols.
API Endpoint Examples and Responses
Latest Rates Endpoint
To get real-time exchange rates for all available metals, you can use the Latest Rates Endpoint. Here’s an example response:
{
"success": true,
"timestamp": 1779746884,
"base": "USD",
"date": "2026-05-25",
"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. Here’s an example response:
{
"success": true,
"timestamp": 1779660484,
"base": "USD",
"date": "2026-05-24",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
To get exchange rates for a specific time period, you can use the Time-Series Endpoint. Here’s an example response:
{
"success": true,
"timeseries": true,
"start_date": "2026-05-18",
"end_date": "2026-05-25",
"base": "USD",
"rates": {
"2026-05-18": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-05-20": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-05-25": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
The Convert Endpoint allows you to convert any amount from one metal to another or to/from USD. Here’s an example response:
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1779746884,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates using the Fluctuation Endpoint. Here’s an example response:
{
"success": true,
"fluctuation": true,
"start_date": "2026-05-18",
"end_date": "2026-05-25",
"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 using the OHLC Endpoint. Here’s an example response:
{
"success": true,
"timestamp": 1779746884,
"base": "USD",
"date": "2026-05-25",
"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
Retrieve current bid and ask prices for metals using the Bid/Ask Endpoint. Here’s an example response:
{
"success": true,
"timestamp": 1779746884,
"base": "USD",
"date": "2026-05-25",
"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
Accessing gold exchange rates through the Metals-API is a powerful way for developers to integrate real-time data into their applications. With a variety of endpoints available, including the Latest Rates, Historical Rates, and Conversion functionalities, the API provides a comprehensive toolkit for analyzing and trading precious metals. By understanding the capabilities of the Metals-API and how to effectively utilize its features, developers can create innovative solutions that enhance trading experiences and provide valuable market insights.
For further exploration of the API's capabilities, be sure to check out the Metals-API Website and dive into the Metals-API Documentation for detailed guidance on implementation. Additionally, the Metals-API Supported Symbols page offers a comprehensive list of all available symbols, ensuring you have the necessary information to make informed decisions in your trading endeavors.