How to get Gold Feb 2026 (GCG26) prices through an API
Introduction
In the ever-evolving landscape of financial markets, the demand for real-time data on precious metals like Gold (XAU) has surged. As we look towards February 2026, understanding how to access Gold prices through an API is crucial for traders, developers, and financial analysts. The Metals-API offers a comprehensive solution for obtaining accurate and timely data on Gold and other metals, empowering users to make informed decisions based on the latest market insights.
Metals-API Information
About Gold (XAU)
Gold, represented by the symbol XAU, has long been a cornerstone of the global economy. Its value is influenced by various factors, including geopolitical stability, inflation rates, and currency fluctuations. As digital transformation reshapes the financial landscape, the integration of data analytics and technology in trading has become paramount. The ability to leverage real-time data for price discovery and market analysis is essential for traders seeking to capitalize on market movements.
With the rise of digital asset solutions, Gold is not only a physical commodity but also a digital asset that can be traded on various platforms. The Metals-API provides developers with the tools needed to harness this potential, offering innovative solutions for accessing Gold prices and other metals in real-time.
API Description
The Metals-API is designed to deliver real-time and historical data on precious metals, enabling developers to build next-generation applications that require accurate and timely information. This API stands out for its innovative capabilities, allowing users to access a wide range of endpoints tailored to different needs.
One of the key features of the Metals-API is its ability to provide real-time exchange rates, updated frequently based on the user's subscription plan. This ensures that traders have access to the most current data, which is vital for making informed trading decisions. Additionally, the API supports historical data queries, allowing users to analyze trends and patterns over time.
For developers, the Metals-API offers extensive documentation that outlines how to implement and utilize the various endpoints effectively. This resource is invaluable for understanding the intricacies of the API and maximizing its potential in applications.
Key Features and Endpoints
The Metals-API boasts a variety of endpoints, each designed to cater to specific user needs. Here are some of the most notable features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for Gold and other metals, updated based on the user's subscription plan. For instance, users can receive updates every 60 minutes or every 10 minutes, ensuring they have the latest information at their fingertips.
- Historical Rates Endpoint: Users can access historical rates dating back to 2019. By appending a specific date to the API request, developers can retrieve past exchange rates, which is essential for trend analysis and forecasting.
- Bid And Ask Endpoint: This feature allows users to obtain real-time bid and ask prices for Gold and other metals. This information is crucial for traders looking to execute orders at the best possible prices.
- Convert Endpoint: The Metals-API includes a currency conversion feature, enabling users to convert amounts between different metals or to/from USD. This is particularly useful for traders dealing with multiple currencies.
- Time-Series Endpoint: Users can query the API for daily historical rates between two specified dates. This endpoint is invaluable for analyzing price movements over time and identifying trends.
- Fluctuation Endpoint: This feature provides insights into how metal prices fluctuate on a day-to-day basis. Users can track changes in rates between two dates, helping them understand market volatility.
- Carat Endpoint: This endpoint allows users to retrieve Gold rates by carat, which is particularly useful for jewelers and those in the jewelry industry.
- Lowest/Highest Price Endpoint: Users can 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 the open, high, low, and close prices for Gold, which are essential metrics for traders.
- Historical LME Endpoint: Users can access historical rates for LME symbols dating back to 2008, providing a comprehensive view of market trends.
- API Key: Each user is assigned a unique API key, which must be included in requests to authenticate access to the API.
- API Response: The API delivers exchange rates relative to USD by default, with all data returned in a structured JSON format.
- Available Endpoints: The Metals-API features 14 different endpoints, each offering unique functionalities to meet diverse user needs.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available metal symbols, ensuring users can access the latest information.
- News Endpoint: Users can retrieve the latest news articles related to various metals, keeping them informed about market developments.
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.
API Endpoint Examples and Responses
Understanding the structure of API responses is crucial for effective integration. Below are examples of responses from various endpoints:
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1762992066,
"base": "USD",
"date": "2025-11-13",
"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": 1762905666,
"base": "USD",
"date": "2025-11-12",
"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": "2025-11-06",
"end_date": "2025-11-13",
"base": "USD",
"rates": {
"2025-11-06": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-11-08": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-11-13": {
"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": 1762992066,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2025-11-06",
"end_date": "2025-11-13",
"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": 1762992066,
"base": "USD",
"date": "2025-11-13",
"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": 1762992066,
"base": "USD",
"date": "2025-11-13",
"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 prices through the Metals-API is a powerful tool for traders and developers alike. With its extensive range of endpoints, the API provides real-time and historical data that is essential for making informed trading decisions. By leveraging the capabilities of the Metals-API, users can integrate advanced data analytics into their applications, enhancing their ability to respond to market changes swiftly.
As the financial landscape continues to evolve, the importance of accurate and timely data cannot be overstated. The Metals-API not only facilitates access to this data but also empowers developers to create innovative solutions that can transform the way precious metals are traded. For more information on how to implement the Metals-API in your projects, refer to the Metals-API Documentation and explore the Metals-API Supported Symbols for a comprehensive list of available metals.