Pull live XAG spot prices, and multi-currency silver data with one clean API call. No bloat. No nonsense.
$ curl -X GET \ https://api.commoditiespriceapi.com/v2/rates/latest/xag \ -H "x-api-key: YOUR_API_KEY"
{
"success": true,
"timestamp": 1774724335,
"rates": {
"XAG": {
"rate": 79.22,
"bid": 79.14,
"ask": 79.22,
"carats": {
"24k_per_gram": 2.547,
"22k_per_gram": 2.3347,
"21k_per_gram": 2.2286,
"20k_per_gram": 2.1225,
"18k_per_gram": 1.9102,
"16k_per_gram": 1.698,
"14k_per_gram": 1.4857,
"12k_per_gram": 1.2735,
"10k_per_gram": 1.0612,
"9k_per_gram": 0.9551,
"8k_per_gram": 0.849
}
}
},
"metadata": {
"XAG": {
"unit": "T.oz",
"quote": "USD"
}
}
}Capabilities
Silver sits at the intersection of finance and industry. The API reflects that complexity — giving you accurate pricing data for every use case, whether you're building a trading dashboard or a retail pricing tool.
Pull live silver prices refreshed every second from global exchanges — London, CME, and Shanghai Futures Exchange.
Every response can be denominated in any world currency. USD, EUR, GBP, PKR — natively supported in each call.
Build trading dashboards and analytics with full open-high-low-close data across any time interval you need.
Silver never sleeps. Our CFD-based feed tracks prices across extended trading hours — capturing moves that benchmark fixes miss.
Troy ounce, gram, kilogram, tola — request silver prices in any unit your app or finance platform requires.
TLS-encrypted, key-authenticated requests with 99.97% uptime SLA. Built for production-grade applications.
Integration
A REST API with predictable JSON responses. Authenticate once, query anywhere. No SDK required — works with any HTTP client in any language.
Documentation →API Reference
Returns the latest CFD-based spot rate for silver (XAG), including bid and ask prices. Rates are sourced from live OTC market feeds and reflect real-world traded prices.
Endpoint
/v2/rates/latest/xagLite plan users receive rates in USD and data may be delayed by up to 10 minutes. The quote parameter is not available on this plan. Premium and Plus users receive real-time rates and can request any supported quote currency.
Authentication
X-API-Keyheader · stringrequiredQuery Parameters
quotestringoptionalPremium & Plusincludestringoptionalgram— appends a gram field with the per-gram rate (1 troy oz ÷ 31.1035)tola— appends a tola field with the per-tola rate (1 troy oz ÷ 2.66667)carat— appends a carats object with per-gram rates for 24k, 22k, 21k, 20k, 18k, 16k, 14k, 12k, 10k, 9k, and 8k purityThe base rate, bid, and ask fields are always returned in troy ounce regardless of this parameter.
Response Fields
successbooleanAlways true for 200 responses. Indicates the request was processed successfully.
timestampnumberUnix timestamp (seconds) of when the rate was generated on the server.
rates.XAGobjectRate data for XAG. Includes rate (mid-market price per troy ounce), bid (highest buy price), and ask (lowest sell price). Additional fields — gram, tola, or carats — are present only when the include parameter is passed.
metadata.XAGobjectContext for the returned rate — the unit it's expressed in (T.oz) and the quote currency (e.g. USD, or whichever currency was requested).
Example
curl https://api.commoditiespriceapi.com/v2/rates/latest/silver \
-H "X-API-Key: YOUR_API_KEY" \
-G -d "currency=USD" \
-d "include=carat"Get started
Start with a 7-day free trial on our Lite plan — 2,000 requests included, zero commitment. Need more runway? Extend your trial up to a full month. When you're ready to scale, request a plan upgrade and we'll have you live within the day.
No credit card · Cancel anytime · Admin-approved upgrades