2026-11-22 · Guide
Gold price per gram in any currency (24k, 22k, 18k) — API guide for jewellery shops
Jewellery stores and gold apps all need the same thing: today's price per gram for each karat, in the local currency. Spot prices are quoted in US dollars per troy ounce, so you'd normally have to convert currency, convert units and apply purity yourself. The Metals Prices API does it in one call.
Karat table in one request
import requests
HOST = "metals-prices-api-gold-silver-platinum-more.p.rapidapi.com"
H = {"x-rapidapi-host": HOST, "x-rapidapi-key": "YOUR_RAPIDAPI_KEY"}
r = requests.get(f"https://{HOST}/karats", headers=H, params={"currency": "AED", "unit": "gram"}).json()
for row in r["prices"]:
print(row["purity"], row["price"])
# 24k 416.65 · 22k 382.33 · 21k 364.94 · 18k 312.80 ...
Units: gram, kilogram, tola, tael, baht, mithqal, troy_ounce, pennyweight, grain, ounce, pound.
One price, one purity
r = requests.get(f"https://{HOST}/price", headers=H, params={"metal": "gold", "currency": "INR", "purity": "22k", "unit": "tola"}).json()
print(r["price"]) # price of one tola of 22k gold in rupees
print(r["per_unit"]["gram"]) # same purity, per gram
What is my jewellery worth?
v = requests.get(f"https://{HOST}/value", headers=H, params={"metal": "gold", "weight": 50, "unit": "gram", "purity": "18k", "currency": "EUR"}).json()
print(v["value"], "EUR for", v["pure_metal_grams"], "g of pure gold")
Silver, platinum, palladium and base metals
/spot?metals=gold,silver,platinum,palladium¤cy=GBP&unit=gram returns all four with change, high and low. /karats?metal=silver gives 999 / 925 / 900 fineness, /base-metals returns LME aluminium, copper, lead, nickel, tin and zinc, and /history?metal=gold&range=1y gives daily OHLC for charts.
Prices are indicative mid-market values — add your own margin for retail buy/sell prices.
Try it free. Metals Prices API - Gold, Silver, Platinum & More has a free plan on RapidAPI — every endpoint included.
Get your free key