Utilize this API to retrieve Salem Gold 22k (SALE-22k) prices
Introduction
In the ever-evolving landscape of financial markets, the demand for real-time data on precious metals, particularly Gold (XAU), has surged. The ability to access accurate and timely information is crucial for traders, investors, and developers alike. This is where the Metals-API comes into play. By harnessing the power of this API, users can retrieve current and historical prices for Gold and other metals, enabling them to make informed decisions based on market trends and analytics.
Understanding Gold (XAU) and Its Market Dynamics
Gold has long been a symbol of wealth and a safe haven asset during economic uncertainty. Its market is influenced by various factors, including geopolitical events, currency fluctuations, and changes in supply and demand. As digital transformation continues to reshape the financial landscape, the integration of technology in trading and data analytics has become essential for market participants.
With the rise of digital asset solutions, the need for accurate and real-time data has never been more critical. The Metals-API provides a robust platform for accessing this data, allowing developers to build applications that can analyze market trends, track price fluctuations, and provide insights into the Gold market.
Digital Transformation in Precious Metals
The digital transformation of the precious metals market is characterized by the increasing reliance on technology for trading and data analysis. The Metals-API plays a pivotal role in this transformation by offering a suite of endpoints that provide real-time and historical data on Gold prices, enabling developers to create innovative applications that enhance trading strategies.
Data Analytics and Market Insights
Data analytics is crucial for understanding market dynamics and making informed trading decisions. The Metals-API allows users to access historical rates dating back to 2019, enabling them to analyze trends over time. By utilizing the Metals-API Documentation, developers can learn how to implement data analytics features in their applications, providing users with valuable insights into Gold price movements.
Technology Integration in Trading
Integrating technology into trading platforms has become a necessity for staying competitive in the financial markets. The Metals-API offers various endpoints, such as the Latest Rates and Historical Rates endpoints, which provide developers with the tools needed to build sophisticated trading applications. By leveraging these endpoints, developers can create systems that automatically retrieve and analyze Gold prices, allowing traders to react swiftly to market changes.
Innovation in Price Discovery
Price discovery in the Gold market is influenced by various factors, including supply and demand dynamics, geopolitical events, and economic indicators. The Metals-API facilitates innovation in price discovery by providing real-time data through its Bid and Ask endpoint, which allows users to access current bid and ask prices for Gold and other metals. This information is vital for traders looking to optimize their entry and exit points in the market.
Digital Asset Solutions
As the financial landscape continues to evolve, digital asset solutions are becoming increasingly important. The Metals-API empowers developers to create applications that can convert between different currencies and metals, thanks to its Convert Endpoint. This feature allows users to seamlessly convert Gold prices into various currencies, enhancing the usability of trading platforms.
API Description
The Metals-API is a powerful tool that provides developers with access to real-time and historical data on precious metals. With its innovative design and comprehensive features, the API enables users to build next-generation applications that can analyze market trends, track price fluctuations, and provide valuable insights into the Gold market.
For more information on how to get started, visit the Metals-API Website and explore the extensive Metals-API Documentation.
Key Features of the Metals-API
The Metals-API offers a range of features that cater to the needs of developers and traders. Here are some of the key endpoints and their functionalities:
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 or every 10 minutes. This feature is essential for traders who need to stay informed about the latest market prices.
{
"success": true,
"timestamp": 1776816582,
"base": "USD",
"date": "2026-04-22",
"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 to historical rates is crucial for analyzing trends and making informed decisions. The Historical Rates endpoint allows users to query the Metals-API for historical rates dating back to 2019. By appending a specific date to the endpoint, developers can retrieve past prices for Gold and other metals.
{
"success": true,
"timestamp": 1776730182,
"base": "USD",
"date": "2026-04-21",
"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 enables users to retrieve real-time bid and ask prices for metals. This information is essential for traders looking to optimize their trading strategies and make informed decisions based on current market conditions.
{
"success": true,
"timestamp": 1776816582,
"base": "USD",
"date": "2026-04-22",
"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 currency to another or to/from USD. This feature is particularly useful for traders who need to quickly assess the value of their assets in different currencies.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1776816582,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Time-Series Endpoint
The Time-Series endpoint allows users to query the API for daily historical rates between two dates of their choice. This feature is beneficial for analyzing trends over specific periods and understanding how Gold prices have fluctuated over time.
{
"success": true,
"timeseries": true,
"start_date": "2026-04-15",
"end_date": "2026-04-22",
"base": "USD",
"rates": {
"2026-04-15": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-04-17": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-04-22": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Fluctuation Endpoint
The Fluctuation endpoint provides information about how currencies fluctuate on a day-to-day basis. This feature is essential for traders looking to understand the volatility of Gold prices and make informed trading decisions.
{
"success": true,
"fluctuation": true,
"start_date": "2026-04-15",
"end_date": "2026-04-22",
"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 query the API for the open, high, low, and close prices for a specific time period. This information is vital for traders who want to analyze price movements and make informed decisions based on historical data.
{
"success": true,
"timestamp": 1776816582,
"base": "USD",
"date": "2026-04-22",
"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 users interested in analyzing the historical performance of metals traded on the London Metal Exchange.
API Key and Authentication
To access the Metals-API, users must obtain an API Key, which is a unique identifier passed into the API base URL's access_key parameter. This key is essential for authenticating requests and ensuring secure access to the API's features.
API Response Structure
The API responses are delivered in JSON format, with exchange rates typically relative to USD. Each response includes a success flag, a timestamp, the base currency, and the rates for various metals. Understanding the structure of these responses is crucial for developers looking to integrate the API into their applications.
Conclusion
The Metals-API is a powerful tool for developers and traders seeking real-time and historical data on Gold and other precious metals. By leveraging its extensive features, including the Latest Rates, Historical Rates, and Bid and Ask endpoints, users can gain valuable insights into market trends and make informed trading decisions. As the financial landscape continues to evolve, the integration of technology and data analytics will play a crucial role in shaping the future of precious metals trading.
For more information on the Metals-API and its capabilities, visit the Metals-API Website and explore the Metals-API Documentation for detailed guidance on implementation and usage.