Fetch Salem Gold 22k (SALE-22k) price information using this API
Introduction
In the ever-evolving landscape of precious metals trading, the demand for accurate and real-time data has never been more critical. Gold (XAU), as one of the most sought-after metals, plays a pivotal role in global markets. To effectively track and analyze gold prices, developers can leverage the Metals-API. This powerful API provides comprehensive access to gold price information, enabling developers to create innovative applications that harness the potential of real-time metals data.
About Gold (XAU)
Gold has long been a symbol of wealth and stability, serving as a hedge against inflation and economic uncertainty. With the rise of digital transformation in precious metals trading, the integration of technology has revolutionized how investors and traders access market insights. Data analytics plays a crucial role in understanding market trends, and the Metals-API empowers developers to tap into this wealth of information.
Through the use of advanced technology, the API facilitates innovation in price discovery, allowing users to obtain real-time gold prices and historical data. This capability is essential for traders looking to make informed decisions based on market fluctuations. Furthermore, the API supports digital asset solutions, enabling seamless integration with various trading platforms.
API Description
The Metals-API is designed to provide developers with the tools necessary to build next-generation applications that require real-time metals data. With its robust capabilities, the API allows users to access a wide range of endpoints that deliver critical information about gold and other precious metals.
For detailed information on how to utilize the API, developers can refer to the Metals-API Documentation. This resource outlines the various functionalities available, including the latest rates, historical data, and conversion capabilities.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs in the precious metals market. Here are some of the key features:
Latest Rates Endpoint
The Latest Rates Endpoint provides real-time exchange rate data for gold and other metals. Depending on the subscription plan, this endpoint can return updated rates every 60 minutes, every 10 minutes, or even more frequently. This feature is essential for traders who need to stay updated with the latest market prices.
{
"success": true,
"timestamp": 1783037487,
"base": "USD",
"date": "2026-07-03",
"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
Accessing historical rates is crucial for analyzing trends over time. The Historical Rates Endpoint allows users to retrieve data dating back to 2019. By appending a specific date in the format YYYY-MM-DD, developers can query the API for past rates, enabling them to conduct thorough market analysis.
{
"success": true,
"timestamp": 1782951087,
"base": "USD",
"date": "2026-07-02",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Bid And Ask Endpoint
The Bid and Ask Endpoint is a powerful feature that provides real-time bid and ask prices for gold and other metals. This information is vital for traders looking to execute orders at the best possible prices. Depending on the subscription plan, users can access this data to make informed trading decisions.
{
"success": true,
"timestamp": 1783037487,
"base": "USD",
"date": "2026-07-03",
"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"
}
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 traders who need to calculate the equivalent value of their holdings in different metals.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1783037487,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Time-Series Endpoint
The Time-Series Endpoint enables users to query the API for daily historical rates between two specified dates. This functionality is essential for analyzing trends and fluctuations over time, allowing traders to make data-driven decisions.
{
"success": true,
"timeseries": true,
"start_date": "2026-06-26",
"end_date": "2026-07-03",
"base": "USD",
"rates": {
"2026-06-26": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-06-28": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-07-03": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Fluctuation Endpoint
The Fluctuation Endpoint provides insights into how metal prices fluctuate on a day-to-day basis. By tracking rate changes between two dates, traders can better understand market volatility and make informed decisions.
{
"success": true,
"fluctuation": true,
"start_date": "2026-06-26",
"end_date": "2026-07-03",
"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"
}
Open/High/Low/Close (OHLC) Price Endpoint
The OHLC Price Endpoint allows users to retrieve open, high, low, and close prices for a specific time period. This data is crucial for traders who rely on technical analysis to make trading decisions.
{
"success": true,
"timestamp": 1783037487,
"base": "USD",
"date": "2026-07-03",
"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"
}
Historical LME Endpoint
The Historical LME Endpoint provides access to historical rates for LME symbols dating back to 2008. This endpoint is particularly useful for traders who require long-term data for analysis and decision-making.
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 integrate specific metals into their applications.
Conclusion
The Metals-API is a powerful tool for developers seeking to access real-time and historical data on gold and other precious metals. By leveraging its various endpoints, users can gain insights into market trends, track fluctuations, and make informed trading decisions. The API's capabilities, including the Latest Rates, Historical Rates, and Conversion features, empower developers to create innovative applications that meet the demands of today's trading environment.
For those interested in exploring the full potential of the Metals-API, the Metals-API Documentation is an essential resource. It provides comprehensive guidance on how to utilize the API effectively, ensuring that developers can maximize their applications' capabilities. As the market for precious metals continues to evolve, the integration of real-time data through APIs like Metals-API will be crucial for success.