公
Kurs Pajak API
1 endpointGovernment & Open DataIDsocial:read1 real examples
Returns weekly Indonesian tax exchange rates in IDR per unit of foreign currency.
View as Markdown| GET | /kurspajak/rates | Tax exchange rates of the week in IDR per unit of each foreign currency, or one currency. |
rates
GET
/v1/kurspajak/ratesTax exchange rates of the week in IDR per unit of each foreign currency, or one currency.
scope social:read1 unitcached 1 h
Parameters
currencystring | Currency code, such as USD. Omit it for every currency. e.g. USD |
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
7 fields
items | Rate[] |
change | number (double) |
currency | string |
name | string |
rate | number (double) |
validFrom | string |
validTo | string |
curl "https://api.hoshime.com/v1/kurspajak/rates?currency=USD" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/kurspajak/rates?currency=USD", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/kurspajak/rates?currency=USD", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "items": [ { "change": 109, "currency": "USD", "name": "Dolar Amerika Serikat", "rate": 18141 } ], "validFrom": "2026-11-04", "validTo": "2026-11-10" }, "meta": { "cached": false, "endpoint": "rates", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "kurspajak", "requestId": "req_2Xb9kQ…", "units": 1 } }