公
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/commodities | The food commodities of the Bank Indonesia price panel, with the date of their latest prices. |
| GET | /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. |
commodities
GET
/v1/hargapangan/commoditiesThe food commodities of the Bank Indonesia price panel, with the date of their latest prices.
scope social:read1 unitcached 1 hpaginated
Parameters
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
id | string |
name | string |
priceDate | string |
curl "https://api.hoshime.com/v1/hargapangan/commodities" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/hargapangan/commodities", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/hargapangan/commodities", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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/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.
scope social:read1 unitcached 1 hpaginated
Parameters
commoditystring required | Commodity id from the commodities endpoint, such as 11 for Bawang Merah. e.g. 11 |
priceTypestring | 1 traditional market (default), 2 modern market, 3 wholesale trader, 4 producer. |
datestring | Last day of the five-day table, as YYYY-MM-DD. Empty uses the day of the commodity's latest prices. |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
level | integer (int64) |
name | string |
parent | string |
prices | DailyPrice[] |
date | string |
price | number (double) |
curl "https://api.hoshime.com/v1/hargapangan/prices?commodity=11" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/hargapangan/prices?commodity=11", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/hargapangan/prices?commodity=11", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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 } }