Request
https://api.zapi.ink/v1/finance:pluang/price-changeSend 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 5 minutes.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
| code | string | query | No | Stock code. Either this or `stockId` is required. Example: BBCA |
| stockId | number | query | No | Numeric Pluang asset id, 10000 or greater. Alternative to `code`. Example: 10020 |
Code examples
curl -X GET "https://api.zapi.ink/v1/finance:pluang/price-change?code=BBCA&stockId=10020" \ -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
const res = await fetch("https://api.zapi.ink/v1/finance:pluang/price-change?code=BBCA&stockId=10020", { 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:pluang/price-change", params={"code":"BBCA","stockId":"10020"}, headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"}, ) print(res.json())
Example response
{ "project": "finance:pluang", "data": { "ytd": 8075, "code": "BBCA", "basis": "reference price at each horizon", "oneDay": 6375, "source": "pluang", "oneWeek": 6375, "oneYear": 8775, "stockId": 10020, "fiveYear": 6410, "oneMonth": 6125, "threeMonth": 6100 }, "timestamp": "2026-08-15T16:14:34Z" }
Frequently asked questions
How do I call the Pluang Reference Prices API?
Send a GET request to https://api.zapi.ink/v1/finance:pluang/price-change with your Zapi key in the x-api-key header. Parameters — optional: code, stockId. The response is JSON in the { project, data, timestamp } envelope.
What does the Pluang Reference Prices API return?
Harga acuan di tiap horizon — 1 hari, 1 minggu, 1 bulan, 3 bulan, YTD, 1 tahun, 5 tahun. The example response has the fields ytd, code, basis, oneDay, source, oneWeek, oneYear, stockId.
Is the Pluang Reference Prices 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 2 Zap. Paid plans raise the limits.
Can an AI assistant call the Pluang Reference Prices 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 "pluang" and endpoint "price-change".
What other Pluang API endpoints are there?
It has 31 endpoints. Besides Reference Prices: Resolve Stock Code, Quote, Multi Quote, Intraday Chart, Order Book, Running Trade, and 24 more.
