Skip to content

Harga Pangan Bank Indonesia API

2 endpointsGovernment & Open DataIDsocial:read1 real examples

Returns the food commodities of the Bank Indonesia price panel with the date of their latest prices.

View as Markdown
GET/hargapangan/commoditiesThe food commodities of the Bank Indonesia price panel, with the date of their latest prices.
GET/hargapangan/pricesDaily prices of one food commodity by region in Indonesia: the national average, each province, city and market, for the five days up to a date.

commodities

GET/v1/hargapangan/commodities

The food commodities of the Bank Indonesia price panel, with the date of their latest prices.

scope social:read1 unitcached 1 hpaginated

Parameters

tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

3 fields
idstring
namestring
priceDatestring
curl "https://api.hoshime.com/v1/hargapangan/commodities" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "id": "11",
      "name": "Bawang Merah Ukuran Sedang",
      "priceDate": "2026-11-06"
    },
    {
      "id": "12",
      "name": "Bawang Putih Ukuran Sedang",
      "priceDate": "2026-11-06"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "commodities",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "hargapangan",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

prices

GET/v1/hargapangan/prices

Daily prices of one food commodity by region in Indonesia: the national average, each province, city and market, for the five days up to a date.

scope social:read1 unitcached 1 hpaginated

Parameters

commodity
string
required
Commodity id from the commodities endpoint, such as 11 for Bawang Merah.
e.g. 11
priceType
string
1 traditional market (default), 2 modern market, 3 wholesale trader, 4 producer.
date
string
Last day of the five-day table, as YYYY-MM-DD. Empty uses the day of the commodity's latest prices.
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

6 fields
levelinteger (int64)
namestring
parentstring
pricesDailyPrice[]
datestring
pricenumber (double)
curl "https://api.hoshime.com/v1/hargapangan/prices?commodity=11" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "data": [
    {
      "level": 0,
      "name": "…",
      "parent": "…",
      "prices": [
        {
          "date": null,
          "price": null
        }
      ]
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "prices",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "hargapangan",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}
esc
↑↓ move↵ open