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

UBS Gold

Indonesian retail gold from UBS — buy and buyback price per bar denomination, with daily history.

Endpoints
4
Requests
49
Updated
18 minutes ago
For LLMs
llms.txt
Endpoint healthnot yet measured
  • pricenot measured
  • buybacknot measured
  • historynot measured
  • summarynot measured
no measurements yetdaily 01:00 WIB

Playground

4 endpoints
GET/v1/finance:ubs/price30m cache1 paramchecking key…
Parameters
denominationnumber

Keep only this bar weight in grams. Omit for the whole board.

·
Response
EXAMPLE
{
  "asOf": "2026-08-29",
  "count": 13,
  "items": [
    {
      "spread": 100800,
      "buyPrice": 215800,
      "weightGram": 0.05,
      "weightText": "0.05 Gram",
      "buybackPrice": 115000,
      "buyPricePerGram": 4316000,
      "buybackPricePerGram": 2300000
    },
    {
      "spread": 113600,
      "buyPrice": 344600,
      "weightGram": 0.1,
      "weightText": "0.1 Gram",
      "buybackPrice": 231000,
      "buyPricePerGram": 3446000,
      "buybackPricePerGram": 2310000
    },
    {
      "spread": 207900,
      "buyPrice": 784900,
      "weightGram": 0.25,
      "weightText": "0.25 Gram",
      "buybackPrice": 577000,
      "buyPricePerGram": 3139600,
      "buybackPricePerGram": 2308000
    },
    {
      "spread": 261700,
      "buyPrice": 1416700,
      "weightGram": 0.5,
      "weightText": "0.5 Gram",
      "buybackPrice": 1155000,
      "buyPricePerGram": 2833400,
      "buybackPricePerGram": 2310000
    },
    {
      "spread": 201500,
      "buyPrice": 2512500,
      "weightGram": 1,
      "weightText": "1 Gram",
      "buybackPrice": 2311000,
      "buyPricePerGram": 2512500,
      "buybackPricePerGram": 2311000
    },
    {
      "spread": 339100,
      "buyPrice": 4962100,
      "weightGram": 2,
      "weightText": "2 Gram",
      "buybackPrice": 4623000,
      "buyPricePerGram": 2481050,
      "buybackPricePerGram": 2311500
    },
    {
      "spread": 491700,
      "buyPrice": 7425700,
      "weightGram": 3,
      "weightText": "3 Gram",
      "buybackPrice": 6934000,
      "buyPricePerGram": 2475233,
      "buybackPricePerGram": 2311333
    },
    {
      "spread": 618700,
      "buyPrice": 9864700,
      "weightGram": 4,
      "weightText": "4 Gram",
      "buybackPrice": 9246000,
      "buyPricePerGram": 2466175,
      "buybackPricePerGram": 2311500
    }
  ],
  "metal": "gold",
  "total": 13,
  "dataset": "price",
  "currency": "IDR",
  "provider": "ubs",
  "denomination": null,
  "productionYear": 2026,
  "denominationsAvailable": [
    0.05,
    0.1,
    0.25,
    0.5,
    1,
    2,
    3,
    4
  ]
}

Code examples

Price board
zpi-sdkrecommended
// npm i zpi-sdk
import { ZpiClient } from "zpi-sdk";

const client = new ZpiClient({ apiKey: "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" });

const data = await client.run("finance:ubs", "price", {
  "denomination": 1
});
console.log(data);
Full SDK reference →
request.sh
curl -X GET "https://api.zpi.web.id/v1/finance:ubs/price?denomination=1" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"

Full reference

4 endpoints · plain text
GETPrice board/v1/finance:ubs/priceBuy and buyback price for every bar denomination on today's board.

Parameters

denominationnumberoptional
Keep only this bar weight in grams. Omit for the whole board.

Request

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

Example response

{
  "asOf": "2026-08-29",
  "count": 13,
  "items": [
    {
      "spread": 100800,
      "buyPrice": 215800,
      "weightGram": 0.05,
      "weightText": "0.05 Gram",
      "buybackPrice": 115000,
      "buyPricePerGram": 4316000,
      "buybackPricePerGram": 2300000
    },
    {
      "spread": 113600,
      "buyPrice": 344600,
      "weightGram": 0.1,
      "weightText": "0.1 Gram",
      "buybackPrice": 231000,
      "buyPricePerGram": 3446000,
      "buybackPricePerGram": 2310000
    },
    {
      "spread": 207900,
      "buyPrice": 784900,
      "weightGram": 0.25,
      "weightText": "0.25 Gram",
      "buybackPrice": 577000,
      "buyPricePerGram": 3139600,
      "buybackPricePerGram": 2308000
    },
    {
      "spread": 261700,
      "buyPrice": 1416700,
      "weightGram": 0.5,
      "weightText": "0.5 Gram",
      "buybackPrice": 1155000,
      "buyPricePerGram": 2833400,
      "buybackPricePerGram": 2310000
    },
    {
      "spread": 201500,
      "buyPrice": 2512500,
      "weightGram": 1,
      "weightText": "1 Gram",
      "buybackPrice": 2311000,
      "buyPricePerGram": 2512500,
      "buybackPricePerGram": 2311000
    },
    {
      "spread": 339100,
      "buyPrice": 4962100,
      "weightGram": 2,
      "weightText": "2 Gram",
      "buybackPrice": 4623000,
      "buyPricePerGram": 2481050,
      "buybackPricePerGram": 2311500
    },
    {
      "spread": 491700,
      "buyPrice": 7425700,
      "weightGram": 3,
      "weightText": "3 Gram",
      "buybackPrice": 6934000,
      "buyPricePerGram": 2475233,
      "buybackPricePerGram": 2311333
    },
    {
      "spread": 618700,
      "buyPrice": 9864700,
      "weightGram": 4,
      "weightText": "4 Gram",
      "buybackPrice": 9246000,
      "buyPricePerGram": 2466175,
      "buybackPricePerGram": 2311500
    }
  ],
  "metal": "gold",
  "total": 13,
  "dataset": "price",
  "currency": "IDR",
  "provider": "ubs",
  "denomination": null,
  "productionYear": 2026,
  "denominationsAvailable": [
    0.05,
    0.1,
    0.25,
    0.5,
    1,
    2,
    3,
    4
  ]
}
GETBuyback/v1/finance:ubs/buybackBuyback price per denomination — UBS quotes a different rate for each bar size.

Parameters

denominationnumberoptional
Keep only this bar weight in grams. Omit for the whole board.

Request

curl -X GET "https://api.zpi.web.id/v1/finance:ubs/buyback?denomination=1" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"

Example response

{
  "asOf": "2026-08-29",
  "count": 13,
  "items": [
    {
      "weightGram": 0.05,
      "weightText": "0.05 Gram",
      "buybackPrice": 115000,
      "buybackPricePerGram": 2300000
    },
    {
      "weightGram": 0.1,
      "weightText": "0.1 Gram",
      "buybackPrice": 231000,
      "buybackPricePerGram": 2310000
    },
    {
      "weightGram": 0.25,
      "weightText": "0.25 Gram",
      "buybackPrice": 577000,
      "buybackPricePerGram": 2308000
    },
    {
      "weightGram": 0.5,
      "weightText": "0.5 Gram",
      "buybackPrice": 1155000,
      "buybackPricePerGram": 2310000
    },
    {
      "weightGram": 1,
      "weightText": "1 Gram",
      "buybackPrice": 2311000,
      "buybackPricePerGram": 2311000
    },
    {
      "weightGram": 2,
      "weightText": "2 Gram",
      "buybackPrice": 4623000,
      "buybackPricePerGram": 2311500
    },
    {
      "weightGram": 3,
      "weightText": "3 Gram",
      "buybackPrice": 6934000,
      "buybackPricePerGram": 2311333
    },
    {
      "weightGram": 4,
      "weightText": "4 Gram",
      "buybackPrice": 9246000,
      "buybackPricePerGram": 2311500
    }
  ],
  "metal": "gold",
  "total": 13,
  "dataset": "buyback",
  "currency": "IDR",
  "provider": "ubs",
  "denomination": null,
  "productionYear": 2026,
  "denominationsAvailable": [
    0.05,
    0.1,
    0.25,
    0.5,
    1,
    2,
    3,
    4
  ],
  "appliesToAllDenominations": false
}
GETHistory/v1/finance:ubs/historyDaily 1 g buyback series back to 2023, filterable by date window.

Parameters

daysnumberoptional
How many of the most recent published days to pull. Default 30. Ignored when from or to is given.
fromstringoptional
Earliest date to include, YYYY-MM-DD.
tostringoptional
Latest date to include, YYYY-MM-DD.
orderenumoptional
Oldest first (asc) or newest first (desc). Default desc. Values: asc, desc.
pagenumberoptional
Page of days. Default 1.
limitnumberoptional
Days per page. Default 100, max 1000.

Request

curl -X GET "https://api.zpi.web.id/v1/finance:ubs/history?days=30&from=2026-01-01&to=2026-08-29&order=desc&page=1&limit=100" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"

Example response

{
  "to": "2026-08-29",
  "days": null,
  "from": "2026-08-01",
  "page": 1,
  "count": 10,
  "items": [
    {
      "low": 2289000,
      "date": "2026-08-04",
      "high": 2289000,
      "open": 2289000,
      "close": 2278000
    },
    {
      "low": 2338000,
      "date": "2026-08-05",
      "high": 2338000,
      "open": 2338000,
      "close": 2327000
    },
    {
      "low": 2404000,
      "date": "2026-08-06",
      "high": 2404000,
      "open": 2404000,
      "close": 2393000
    },
    {
      "low": 2390000,
      "date": "2026-08-07",
      "high": 2390000,
      "open": 2390000,
      "close": 2379000
    },
    {
      "low": 2391000,
      "date": "2026-08-08",
      "high": 2391000,
      "open": 2391000,
      "close": 2380000
    },
    {
      "low": 2418000,
      "date": "2026-08-11",
      "high": 2418000,
      "open": 2418000,
      "close": 2406000
    },
    {
      "low": 2381000,
      "date": "2026-08-12",
      "high": 2381000,
      "open": 2381000,
      "close": 2370000
    },
    {
      "low": 2371000,
      "date": "2026-08-14",
      "high": 2371000,
      "open": 2371000,
      "close": 2360000
    }
  ],
  "metal": "gold",
  "order": "asc",
  "total": 21,
  "covered": 498,
  "dataset": "history",
  "hasMore": true,
  "currency": "IDR",
  "nextPage": 2,
  "provider": "ubs",
  "unitGram": 1,
  "latestDate": "2026-08-29",
  "earliestDate": "2023-11-20"
}
GETSummary/v1/finance:ubs/summaryToday's 1 g buy and buyback, with the change against the previous published day.

Parameters

xstringoptional
Unused — the summary takes no parameters.

Request

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

Example response

{
  "asOf": "2026-08-29",
  "metal": "gold",
  "spread": 201500,
  "dataset": "summary",
  "buyPrice": 2512500,
  "currency": "IDR",
  "provider": "ubs",
  "unitGram": 1,
  "changeAbs": -28000,
  "buybackPrice": 2311000,
  "previousDate": "2026-08-28",
  "changePercent": -1.2,
  "denominationCount": 13,
  "previousBuybackPrice": 2339000
}

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.

167.8K 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.

23.6K calls·10m 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/.

258.8K 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.

83.9K calls·1d cache

Stockbit

finance/stockbit

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

50.8K calls·1d cache

Binance Vision

finance/binance-vision

Binance's public bulk archive: klines, 5-minute open-interest and long/short metrics, funding, book depth and liquidations, back to 2017.

8.1K calls·1d cache
Browse APIsPricingDocsMCP serverGet an API key
zapi.One key, one response shape.
TermsPrivacyCookiesAUPRefunds© 2026