Skip to content

Kodepos API

2 endpointsGovernment & Open DataIDsocial:read2 real examples

Returns Indonesian postal codes matched by village, district, city or province, and the areas sharing a postal code.

View as Markdown
GET/kodepos/searchPostal codes whose village, district, city or province matches a name.
GET/kodepos/postalCodeThe villages, districts and cities that share one five-digit postal code.

postalCode

GET/v1/kodepos/postalCode

The villages, districts and cities that share one five-digit postal code.

scope social:read1 unitcached 24 hpaginated

Parameters

code
string
required
Five-digit postal code, such as 10310.
e.g. 10310
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

5 fields
citystring
districtstring
postalCodestring
provincestring
villagestring
curl "https://api.hoshime.com/v1/kodepos/postalCode?code=10310" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "city": "KOTA ADM. JAKARTA PUSAT",
      "district": "Menteng",
      "postalCode": "10310",
      "province": "DKI JAKARTA",
      "village": "Menteng"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "postalCode",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "kodepos",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}
esc
↑↓ move↵ open