# Pegadaian Gold — Zapi reference > Indonesian retail gold — the buy and sell price a state pawnbroker quotes, per gram, with daily history. **Base URL:** `https://api.zapi.ink` **Auth:** Send `x-api-key: YOUR_KEY` header on every request. Get a free key at https://zapi.ink/dashboard/keys. **Response envelope:** `{ content, message, errors }` **Rate limit:** 60 req/min on free tier. **Related:** - Detail page: https://zapi.ink/api/finance/pegadaian - Endpoint catalog: https://zapi.ink/category/finance - Concise index: https://zapi.ink/llms.txt - Full reference: https://zapi.ink/llms-full.txt --- ## Pegadaian Gold **Category:** finance · **Slug:** `pegadaian` **Detail page:** https://zapi.ink/api/finance/pegadaian Indonesian retail gold — the buy and sell price a state pawnbroker quotes, per gram, with daily history. **Tags:** gold, indonesia, idr, commodity, savings ### Gold price Today's buy and sell price per gram, and the spread. - **Method:** `GET` - **Endpoint:** `https://api.zapi.ink/v1/finance:pegadaian/gold-price` - **Cache TTL:** 900s **Parameters:** | Name | Type | Location | Required | Description | |------|------|----------|----------|-------------| | `x` | string | query | no | Unused — the current price takes no parameters | **cURL:** ```bash curl "https://api.zapi.ink/v1/finance:pegadaian/gold-price?x=" \ -H "x-api-key: YOUR_API_KEY" ``` **JavaScript / TypeScript:** ```javascript const res = await fetch("https://api.zapi.ink/v1/finance:pegadaian/gold-price?x=", { headers: { "x-api-key": process.env.ZAPI_KEY } }); const data = await res.json(); ``` **Python:** ```python import requests r = requests.get("https://api.zapi.ink/v1/finance:pegadaian/gold-price?x=", headers={"x-api-key": "YOUR_API_KEY"}) data = r.json() ``` **Example response:** ```json { "date": "2026-08-20", "metal": "gold", "source": "pegadaian", "currency": "IDR", "unitGram": 0.01, "buyPerGram": 2490000, "buyPerUnit": 24900, "sellPerGram": 2622000, "sellPerUnit": 26220, "spreadPerGram": 132000 } ``` --- ### Gold history Daily buy/sell history over 7 to 360 days. - **Method:** `GET` - **Endpoint:** `https://api.zapi.ink/v1/finance:pegadaian/gold-history` - **Cache TTL:** 3600s **Parameters:** | Name | Type | Location | Required | Description | |------|------|----------|----------|-------------| | `days` | enum(7|30|90|180|360) | query | no | Window length in days. Default 30 | | `type` | enum(all|sell|buy) | query | no | Which side to return. Default all | **cURL:** ```bash curl "https://api.zapi.ink/v1/finance:pegadaian/gold-history?days=30&type=all" \ -H "x-api-key: YOUR_API_KEY" ``` **JavaScript / TypeScript:** ```javascript const res = await fetch("https://api.zapi.ink/v1/finance:pegadaian/gold-history?days=30&type=all", { headers: { "x-api-key": process.env.ZAPI_KEY } }); const data = await res.json(); ``` **Python:** ```python import requests r = requests.get("https://api.zapi.ink/v1/finance:pegadaian/gold-history?days=30&type=all", headers={"x-api-key": "YOUR_API_KEY"}) data = r.json() ``` **Example response:** ```json { "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" } ``` --- ### Harga Harian The daily Tabungan Emas record itself, rather than today's point inferred from a - **Method:** `GET` - **Endpoint:** `https://api.zapi.ink/v1/finance:pegadaian/harga-harian` - **Cache TTL:** 900s **Parameters:** | Name | Type | Location | Required | Description | |------|------|----------|----------|-------------| | `x` | string | query | no | Unused — the daily record takes no parameters | **cURL:** ```bash curl "https://api.zapi.ink/v1/finance:pegadaian/harga-harian?x=" \ -H "x-api-key: YOUR_API_KEY" ``` **JavaScript / TypeScript:** ```javascript const res = await fetch("https://api.zapi.ink/v1/finance:pegadaian/harga-harian?x=", { headers: { "x-api-key": process.env.ZAPI_KEY } }); const data = await res.json(); ``` **Python:** ```python import requests r = requests.get("https://api.zapi.ink/v1/finance:pegadaian/harga-harian?x=", headers={"x-api-key": "YOUR_API_KEY"}) data = r.json() ``` **Example response:** ```json { "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 } ``` --- _Generated: 2026-09-25T14:30:03.941Z_