zapi.
APIsPricingDocsMCP
APIsPricingDocsMCPSign in
zapi.
APIsPricingDocsMCP
APIsPricingDocsMCPSign in
On this page
  • Playground
  • Code examples
  • Full reference
  • Related APIs
Finance/Pegadaian Gold
Logo Pegadaian Gold

Pegadaian Gold

Indonesian retail gold — the buy and sell price a state pawnbroker quotes, per gram, with daily history.

Endpoints
3
Requests
1.2k
Updated
2 months ago
For LLMs
llms.txt
Endpoint health20 hours ago
  • gold-pricepassing, 0.3s
  • gold-historypassing, 0.2s
  • harga-harianpassing, 0.2s
3/3 passingdaily 01:00 WIB

Playground

3 endpoints
GET/v1/finance:pegadaian/gold-price15m cache1 paramchecking key…
Parameters
xstring

Unused — the current price takes no parameters

·
Response
EXAMPLE
{
  "date": "2026-08-20",
  "metal": "gold",
  "source": "pegadaian",
  "currency": "IDR",
  "unitGram": 0.01,
  "buyPerGram": 2490000,
  "buyPerUnit": 24900,
  "sellPerGram": 2622000,
  "sellPerUnit": 26220,
  "spreadPerGram": 132000
}

Code examples

Gold price
zpi-sdkrecommended
// 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);
Full SDK reference →
request.sh
curl -X GET "https://api.zpi.web.id/v1/finance:pegadaian/gold-price?x=" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"

Full reference

3 endpoints · plain text
GETGold price/v1/finance:pegadaian/gold-priceToday's buy and sell price per gram, and the spread.

Parameters

xstringoptional
Unused — the current price takes no parameters

Request

curl -X GET "https://api.zpi.web.id/v1/finance:pegadaian/gold-price?x=" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"

Example response

{
  "date": "2026-08-20",
  "metal": "gold",
  "source": "pegadaian",
  "currency": "IDR",
  "unitGram": 0.01,
  "buyPerGram": 2490000,
  "buyPerUnit": 24900,
  "sellPerGram": 2622000,
  "sellPerUnit": 26220,
  "spreadPerGram": 132000
}
GETGold history/v1/finance:pegadaian/gold-historyDaily buy/sell history over 7 to 360 days.

Parameters

daysenumoptional
Window length in days. Default 30 Values: 7, 30, 90, 180, 360.
typeenumoptional
Which side to return. Default all Values: all, sell, buy.

Request

curl -X GET "https://api.zpi.web.id/v1/finance:pegadaian/gold-history?days=30&type=all" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"

Example response

{
  "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"
}
GETHarga Harian/v1/finance:pegadaian/harga-harianThe daily Tabungan Emas record itself, rather than today's point inferred from a

Parameters

xstringoptional
Unused — the daily record takes no parameters

Request

curl -X GET "https://api.zpi.web.id/v1/finance:pegadaian/harga-harian?x=" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"

Example response

{
  "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
}

Related APIs

More in finance

Pluang

finance/pluang

Data pasar Pluang lintas aset: order book, running trade, tradebook dan ringkasan broker per saham IDX, plus saham Amerika, emas, kripto, sinyal analis dan berita.

1.2M calls·1d cache

IDX (Bursa Efek Indonesia)

finance/idx

Data Bursa Efek Indonesia: ringkasan saham & indeks, top movers, broker, emiten, laporan keuangan, berita, dan passthrough ke ratusan endpoint /primary/.

512.3K calls·1d cache

TradingView

finance/tradingview

Screener, charts, technical indicators, fundamentals, news and the macro calendar across 16 markets — Indonesian equities, US equities, crypto, forex and futures.

215.3K calls·1d cache

Stockbit

finance/stockbit

Data saham IDX dari Stockbit: harga, chart intraday, profil emiten, diskusi komunitas, dan kamus investasi.

103.9K calls·1d cache

Binance Futures

finance/binance-futures

USD-M perpetual futures market data: funding, premium index, open interest, long/short ratios, candles and depth.

38.1K calls·10m cache

Bybit

finance/bybit

Bybit v5 market data: candles, 5-minute open interest and account ratios with cursor pagination, funding history and instrument specs.

22.3K calls·10m cache
Browse APIsPricingDocsMCP serverGet an API key
zapi.One key, one response shape.
TermsPrivacyCookiesAUPRefunds© 2026