Indonesian retail gold — the buy and sell price a state pawnbroker quotes, per gram, with daily history.
gold-pricepassing, 0.3sgold-historypassing, 0.2sharga-harianpassing, 0.2s/v1/finance:pegadaian/gold-price15m cache1 paramchecking key…// npm i zpi-sdk
import { ZpiClient } from "zpi-sdk";
const client = new ZpiClient({ apiKey: "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" });
const data = await client.run("finance:pegadaian", "gold-price", {});
console.log(data);curl -X GET "https://api.zpi.web.id/v1/finance:pegadaian/gold-price?x=" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"/v1/finance:pegadaian/gold-priceToday's buy and sell price per gram, and the spread.xstringoptionalcurl -X GET "https://api.zpi.web.id/v1/finance:pegadaian/gold-price?x=" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"{
"date": "2026-08-20",
"metal": "gold",
"source": "pegadaian",
"currency": "IDR",
"unitGram": 0.01,
"buyPerGram": 2490000,
"buyPerUnit": 24900,
"sellPerGram": 2622000,
"sellPerUnit": 26220,
"spreadPerGram": 132000
}/v1/finance:pegadaian/gold-historyDaily buy/sell history over 7 to 360 days.daysenumoptionaltypeenumoptionalcurl -X GET "https://api.zpi.web.id/v1/finance:pegadaian/gold-history?days=30&type=all" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"{
"days": 30,
"type": "all",
"count": 30,
"items": [
{
"date": "2026-08-20",
"buyPerGram": 2490000,
"sellPerGram": 2622000,
"spreadPerGram": 132000
},
{
"date": "2026-08-19",
"buyPerGram": 2446000,
"sellPerGram": 2575000,
"spreadPerGram": 129000
},
{
"date": "2026-08-18",
"buyPerGram": 2474000,
"sellPerGram": 2605000,
"spreadPerGram": 131000
},
{
"date": "2026-08-17",
"buyPerGram": 2472000,
"sellPerGram": 2603000,
"spreadPerGram": 131000
},
{
"date": "2026-08-16",
"buyPerGram": 2463000,
"sellPerGram": 2593000,
"spreadPerGram": 130000
},
{
"date": "2026-08-15",
"buyPerGram": 2463000,
"sellPerGram": 2593000,
"spreadPerGram": 130000
},
{
"date": "2026-08-14",
"buyPerGram": 2452000,
"sellPerGram": 2582000,
"spreadPerGram": 130000
},
{
"date": "2026-08-13",
"buyPerGram": 2472000,
"sellPerGram": 2603000,
"spreadPerGram": 131000
}
],
"metal": "gold",
"source": "pegadaian",
"currency": "IDR"
}/v1/finance:pegadaian/harga-harianThe daily Tabungan Emas record itself, rather than today's point inferred from axstringoptionalcurl -X GET "https://api.zpi.web.id/v1/finance:pegadaian/harga-harian?x=" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"{
"date": "2026-08-20",
"metal": "gold",
"source": "pegadaian",
"currency": "IDR",
"unitGram": 0.01,
"buyPerGram": 2490000,
"buyPerUnit": 24900,
"sellPerGram": 2622000,
"sellPerUnit": 26220,
"spreadPerGram": 132000,
"buyChangePercent": 1.8,
"sellChangePercent": 1.83
}