Sources › Finance › Bareksa › Bonds

Bareksa Bonds API

Bonds, one of the endpoints of the Bareksa API.

BareksaGET /bondsAll plans1 Zap

Request

GET
https://api.zapi.ink/v1/finance:bareksa/bonds

Send 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 10 minutes.

Parameters

NameTypeInRequiredDescription
typeenum: all | government | corporatequeryNoIssuer type. Default all Example: government
currencystringqueryNoRestrict to issues denominated in this currency Example: IDR
querystringqueryNoFilter by bond code, name or issuer substring Example: PLN
pagenumberqueryNoPage number. Default 1 Example: 1
countnumberqueryNoItems per page. Default 100, max 500 Example: 100

Code examples

cURL
curl -X GET "https://api.zapi.ink/v1/finance:bareksa/bonds?type=government&currency=IDR&query=PLN&page=1&count=100" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
JavaScript
const res = await fetch("https://api.zapi.ink/v1/finance:bareksa/bonds?type=government&currency=IDR&query=PLN&page=1&count=100", {
  method: "GET",
  headers: {
    "x-api-key": "zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
  },
});
const data = await res.json();
console.log(data);
Python
import requests

res = requests.get(
    "https://api.zapi.ink/v1/finance:bareksa/bonds",
    params={"type":"government","currency":"IDR","query":"PLN","page":"1","count":"100"},
    headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"},
)
print(res.json())

Example response

200 OK · application/json
{
  "project": "finance:bareksa",
  "data": {
    "page": 1,
    "type": "government",
    "count": 100,
    "items": [
      {
        "code": "FR0031",
        "name": "Obligasi Negara Republik Indonesia Seri FR0031",
        "yield": 8.16803,
        "bondId": "5",
        "issuer": "The Government of Indonesia",
        "sector": "Pemerintah",
        "currency": "IDR",
        "lowPrice": 105.38,
        "highPrice": 105.411,
        "lastPrice": 105.411,
        "prevPrice": 105.46,
        "priceDate": "2019-09-04",
        "couponRate": 11,
        "issuerType": "government",
        "maturityDate": "2020-11-15",
        "ratingPefindo": null,
        "modifiedDuration": 0.24496634653705,
        "nominalOutstanding": 17890000000000,
        "timeToMaturityYears": 1.29
      },
      {
        "code": "FR0032",
        "name": "Obligasi Negara Republik Indonesia Seri FR0032",
        "yield": 15.6,
        "bondId": "6",
        "issuer": "The Government of Indonesia",
        "sector": "Pemerintah",
        "currency": "IDR",
        "lowPrice": 101.576,
        "highPrice": 101.576,
        "lastPrice": 101.576,
        "prevPrice": 101.4,
        "priceDate": "2018-05-15",
        "couponRate": 15,
        "issuerType": "government",
        "maturityDate": "2018-07-15",
        "ratingPefindo": null,
        "modifiedDuration": -0.12492590587467,
        "nominalOutstanding": 918492000000,
        "timeToMaturityYears": -1.09
      },
      {
        "code": "FR0034",
        "name": "Obligasi Negara Republik Indonesia Seri FR0034",
        "yield": 9.16758,
        "bondId": "7",
        "issuer": "The Government of Indonesia",
        "sector": "Pemerintah",
        "currency": "IDR",
        "lowPrice": 110.48,
        "highPrice": 110.66,
        "lastPrice": 110.66,
        "prevPrice": 111.65,
        "priceDate": "2019-09-02",
        "couponRate": 12.8,
        "issuerType": "government",
        "maturityDate": "2021-06-15",
        "ratingPefindo": null,
        "modifiedDuration": 0.26277878660994,
        "nominalOutstanding": 16286400000000,
        "timeToMaturityYears": 1.88
      },
      {
        "code": "FR0035",
        "name": "Obligasi Negara Republik Indonesia Seri FR0035",
        "yield": 9.35081,
        "bondId": "8",
        "issuer": "The Government of Indonesia",
        "sector": "Pemerintah",
        "currency": "IDR",
        "lowPrice": 116.13,
        "highPrice": 116.15,
        "lastPrice": 116.15,
        "prevPrice": 116,
        "priceDate": "2019-03-05",
        "couponRate": 12.9,
        "issuerType": "government",
        "maturityDate": "2022-06-15",
        "ratingPefindo": null,
        "modifiedDuration": 0.21900614853409,
        "nominalOutstanding": 11023750000000,
        "timeToMaturityYears": 2.89
      },
      {
        "code": "FR0036",
        "name": "Obligasi Negara Republik Indonesia Seri FR0036",
        "yield": 5.21739,
        "bondId": "9",
        "issuer": "The Government of Indonesia",
        "sector": "Pemerintah",
        "currency": "IDR",
        "lowPrice": 100.167,
        "highPrice": 100.17,
        "lastPrice": 100.167,
        "prevPrice": 100.25,
        "priceDate": "2019-09-02",
        "couponRate": 11.5,
        "issuerType": "government",
        "maturityDate": "2019-09-15",
        "ratingPefindo": null,
        "modifiedDuration": 0.028433729798763,
        "nominalOutstanding": 9422500000000,
        "timeToMaturityYears": 0.1
      },
      {
        "code": "FR0037",
        "name": "Obligasi Negara Republik Indonesia Seri FR0037",
        "yield": 9.3559,
        "bondId": "10",
        "issuer": "The Government of Indonesia",
        "sector": "Pemerintah",
        "currency": "IDR",
        "lowPrice": 122.75,
        "highPrice": 122.75,
        "lastPrice": 122.75,
        "prevPrice": 126.5,
        "priceDate": "2019-03-04",
        "couponRate": 12,
        "issuerType": "government",
        "maturityDate": "2026-09-15",
        "ratingPefindo": null,
        "modifiedDuration": 0.19494832814027,
        "nominalOutstanding": 2450000000000,
        "timeToMaturityYears": 7.2
      },
      {
        "code": "FR0038",
        "name": "Obligasi Negara Republik Indonesia Seri FR0038",
        "yield": 11.7985,
        "bondId": "11",
        "issuer": "The Government of Indonesia",
        "sector": "Pemerintah",
        "currency": "IDR",
        "lowPrice": 100.4,
        "highPrice": 100.45,
        "lastPrice": 100.45,
        "prevPrice": 102.7,
        "priceDate": "2018-07-20",
        "couponRate": 11.6,
        "issuerType": "government",
        "maturityDate": "2018-08-15",
        "ratingPefindo": null,
        "modifiedDuration": -0.14626950718739,
        "nominalOutstanding": 3337862000000,
        "timeToMaturityYears": -1
      },
      {
        "code": "FR0039",
        "name": "Obligasi Negara Republik Indonesia Seri FR0039",
        "yield": 9.04407,
        "bondId": "12",
        "issuer": "The Government of Indonesia",
        "sector": "Pemerintah",
        "currency": "IDR",
        "lowPrice": 116.1,
        "highPrice": 116.1,
        "lastPrice": 116.1,
        "prevPrice": 114.66,
        "priceDate": "2019-03-18",
        "couponRate": 11.75,
        "issuerType": "government",
        "maturityDate": "2023-08-15",
        "ratingPefindo": null,
        "modifiedDuration": 0.20448186807331,
        "nominalOutstanding": 4175000000000,
        "timeToMaturityYears": 4.07
      }
    ],
    "query": null,
    "total": 119,
    "dataset": "bonds",
    "hasMore": true,
    "currency": null,
    "nextPage": 2,
    "provider": "bareksa"
  },
  "timestamp": "2026-08-21T02:26:15Z"
}

Frequently asked questions

How do I call the Bareksa Bonds API?

Send a GET request to https://api.zapi.ink/v1/finance:bareksa/bonds with your Zapi key in the x-api-key header. Parameters — optional: type, currency, query, page, count. The response is JSON in the { project, data, timestamp } envelope.

What does the Bareksa Bonds API return?

The example response has the fields page, type, count, items, query, total, dataset, hasMore. Each item in items has fields such as code, name, yield, bondId, issuer, sector, currency, lowPrice.

Is the Bareksa Bonds 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 Bareksa Bonds 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 "bareksa" and endpoint "bonds".

What other Bareksa API endpoints are there?

It has 3 endpoints. Besides Bonds: Fund Nav, Funds.