Skip to content

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/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.

kurs

GET/v1/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.

scope social:read1 unitcached 1 h

Parameters

date
string
A day, YYYY-MM-DD, inside the period a set applies to. Omit for the latest set.
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

13 fields
decreestring
decreeDatestring
itemsRate[]
changenumber (double)
codestring
countrystring
currencystring
rationumber (double)
statusstring
usdConversionnumber (double)
valuenumber (double)
validDatesValidDate[]
datestring
curl "https://api.hoshime.com/v1/bea/kurs" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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
  }
}
esc
↑↓ move↵ open