Sources › Finance › Pegadaian Gold › Gold price

Pegadaian Gold Gold price API
Today's buy and sell price per gram, and the spread.
Request
https://api.zapi.ink/v1/finance:pegadaian/gold-priceSend your key in the x-api-key header. The response is JSON in the { project, data, timestamp } envelope, and an identical request is served from cache for 15 minutes.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
| x | string | query | No | Unused — the current price takes no parameters |
Code examples
curl -X GET "https://api.zapi.ink/v1/finance:pegadaian/gold-price?x=" \ -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
const res = await fetch("https://api.zapi.ink/v1/finance:pegadaian/gold-price?x=", { method: "GET", headers: { "x-api-key": "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" }, }); const data = await res.json(); console.log(data);
import requests res = requests.get( "https://api.zapi.ink/v1/finance:pegadaian/gold-price", params={"x":""}, headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"}, ) print(res.json())
Example response
{ "project": "finance:pegadaian", "data": { "date": "2026-08-20", "metal": "gold", "source": "pegadaian", "currency": "IDR", "unitGram": 0.01, "buyPerGram": 2490000, "buyPerUnit": 24900, "sellPerGram": 2622000, "sellPerUnit": 26220, "spreadPerGram": 132000 }, "timestamp": "2026-08-02T04:30:01Z" }
Frequently asked questions
How do I call the Pegadaian Gold Gold price API?
Send a GET request to https://api.zapi.ink/v1/finance:pegadaian/gold-price with your Zapi key in the x-api-key header. Parameters — optional: x. The response is JSON in the { project, data, timestamp } envelope.
What does the Pegadaian Gold Gold price API return?
Today's buy and sell price per gram, and the spread. The example response has the fields date, metal, source, currency, unitGram, buyPerGram, buyPerUnit, sellPerGram.
Is the Pegadaian Gold Gold price API free?
Yes. It is on the Zapi free tier: 600 Zap a month with one API key and no credit card. Each call costs 1 Zap. Paid plans raise the limits.
Can an AI assistant call the Pegadaian Gold Gold price API?
Yes. Add the Zapi MCP server (https://mcp.zapi.ink/mcp) to Claude, Cursor or another MCP client and ask in plain words; it calls run_scraper with scraper "pegadaian" and endpoint "gold-price".
What other Pegadaian Gold API endpoints are there?
It has 2 endpoints. Besides Gold price: Gold history.