公
Bea Cukai API
1 endpointGovernment & Open DataIDsocial:read1 real examples
Returns Indonesian customs exchange rates (kurs pabean) for a day or the latest set, with the setting decree.
View as Markdown| GET | /bea/kurs | Customs exchange rates (kurs pabean) in force on a day, or the latest set: the rupiah value of each foreign currency, with the decree that sets them. |
kurs
GET
/v1/bea/kursCustoms exchange rates (kurs pabean) in force on a day, or the latest set: the rupiah value of each foreign currency, with the decree that sets them.
scope social:read1 unitcached 1 h
Parameters
datestring | A day, YYYY-MM-DD, inside the period a set applies to. Omit for the latest set. |
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
13 fields
decree | string |
decreeDate | string |
items | Rate[] |
change | number (double) |
code | string |
country | string |
currency | string |
ratio | number (double) |
status | string |
usdConversion | number (double) |
value | number (double) |
validDates | ValidDate[] |
date | string |
curl "https://api.hoshime.com/v1/bea/kurs" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/bea/kurs", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/bea/kurs", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "decree": "KMK Nomor 53/MK/EF.2/2026", "decreeDate": "2026-11-04", "items": [ { "change": 0.01, "code": "KRW", "country": "Korea", "currency": "Won", "ratio": 1, "status": "up", "usdConversion": 0.0007, "value": 13.6 }, { "change": 22.09, "code": "CNY", "country": "Renminbi Tiongkok", "currency": "Yuan", "ratio": 1, "status": "up", "usdConversion": 0.1501, "value": 2723.57 } ], "validDates": [ { "date": "2026-11-04" }, { "date": "2026-11-05" } ] }, "meta": { "cached": false, "endpoint": "kurs", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "bea", "requestId": "req_2Xb9kQ…", "units": 1 } }