Fin2Dev Blog / Financial API Guides / Silver Price API – Real-Time Silver Prices (XAG) in JSON

Silver Price API – Real-Time Silver Prices (XAG) in JSON

Silver price API dashboard showing XAG data and real-time JSON response
Silver Price API dashboard with real-time XAG price data, chart visualization, and JSON response.

A silver price API provides structured access to real-time and historical silver prices, commonly represented by the symbol XAG. Silver is a key industrial and precious metal, widely used in trading, manufacturing, and financial markets.

This guide explains how silver price data works, how it is structured in APIs, and how developers use it in trading systems, dashboards, and analytics platforms.

In practical applications, silver price data is used to monitor market trends, analyze price movements, and integrate commodity pricing into financial systems.


Typical XAG Market Data Structure

Silver price data is typically delivered as structured JSON objects, where each record represents a price snapshot.

A typical silver price response includes the following parameters:

  • commodity_name – commodity identifier (silver)
  • symbol – XAG
  • commodity_price – current price
  • price_change_day – daily price change
  • percentage_day – daily percentage change
  • datetime – timestamp of the price update

This structure allows developers to integrate silver price data into applications, compare price changes, and build real-time monitoring tools.


What is XAG in Silver Price Data?

XAG is the standard market symbol used to represent silver in financial systems and APIs. It is commonly paired with USD (XAG/USD) and used in trading platforms, charting tools, and commodity data feeds.

Many developers search specifically for XAG API or XAG price API when integrating silver data into applications.


How Silver Price Data Is Used

Silver price data is used across financial and industrial applications.

Trading Platforms

Silver is actively traded in commodity markets, with real-time price data used for charting, execution, and algorithmic trading.

Industrial Analysis

Silver is widely used in electronics, solar panels, and manufacturing, making price data important for industrial planning and cost analysis.

Portfolio Monitoring

Investors track silver alongside gold to balance exposure to precious metals.

Financial Analytics

Historical silver data is used for trend analysis and macroeconomic research.


Example Silver Price Data

Below is an example of how silver price data may appear in JSON format.

{
  "commodity_name": "silver",
  "symbol": "XAG",
  "commodity_price": "28.45",
  "price_change_day": "0.32",
  "percentage_day": "1.14%",
  "datetime": "2026-04-29T10:30:00"
}

Example Silver Data Request

To retrieve silver price data, you can send a simple API request:

https://apidata.fin2dev.com/v1/commodities?key=YOUR_API_KEY&commodity_name=silver

Example API Integration

The following examples show how developers can request silver price data using Python and PHP.

Python Example

import requests

url = "https://apidata.fin2dev.com/v1/commodities"
params = {"key":"YOUR_API_KEY","commodity_name":"silver"}

data = requests.get(url, params=params).json()

print(data["result"]["output"])

PHP Example

<?php

$url = "https://apidata.fin2dev.com/v1/commodities?key=YOUR_API_KEY&commodity_name=silver";

$response = file_get_contents($url);
$data = json_decode($response, true);

print_r($data["result"]["output"]);

?>

Live Silver Price Data Example

For example, the following JSON shows a compact silver price response using the output field from the API.

{
  "output": [
    {
      "commodity_name": "silver",
      "commodity_unit": "usd/t.oz",
      "commodity_price": "82.839",
      "price_change_day": "2.515",
      "percentage_day": "3.13%",
      "percentage_week": "14.14%",
      "percentage_month": "9.88%",
      "percentage_year": "154.83%",
      "datetime": "2026-05-11T12:48:00.000"
    }
  ]
}

Start Using Silver Price API

Silver Price API is included in all plans.
Silver is available through the Fin2Dev Commodity Prices API, together with Gold, Oil, Natural Gas, Copper, Lithium and more.

Start with a small plan for testing real-time and historical silver price data in JSON format.

Basic

Entry plan for testing and small projects
Intro offer
$9
  • Silver price data via API
  • 500 calls included
  • 10 calls per minute
Need more API calls? Compare all available plans on the pricing page.

Silver Price API vs Commodity Price API

A silver price API provides focused access to XAG data, while a broader Commodity Price API includes gold, oil, natural gas, and other commodities.


Related Commodity APIs


Frequently Asked Questions

What is XAG?

XAG is the standard symbol used to represent silver in financial markets and APIs.

How often is silver price data updated?

Silver price data is typically updated every few minutes depending on the data provider.

Can I use silver data API in real-time systems?

Yes, silver data API are commonly used in trading platforms and analytics tools.


If you need access to multiple commodities including silver, gold, crude oil, natural gas, and industrial metals, you can explore the full Commodity Price API.

Start Using Silver Price Data

Access real-time and historical silver prices via Fin2Dev APIs.

Explore Commodity Price API