Postal codes All docs

Indonesia Postal codes API Reference

2 routes under /v1/id/postal-codes. Base URL https://api.apifor.dev, authenticated with x-api-key, one credit per request.

GET/v1/id/postal-codes

List postal codes with filters and paging.

ParameterInTypeRules
pagequeryintegermin 1 · default 1
limitqueryinteger1 to 200 · default 50
countryquerystringISO 3166-1 alpha-2
qquerystring2 to 100 chars
postal_codequerystringNone
GET/v1/id/postal-codes
curl 'https://api.apifor.dev/v1/id/postal-codes' \
  -G -d limit=1 \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "success": true,
  "data": [
    {
      "id": "legacy-villages-v1:1101012001",
      "postal_code": "23773",
      "village_code": "1101012001",
      "district_code": "110101",
      "regency_code": "1101",
      "province_code": "11"
    }
  ]
}
  • 200Successful response. Pagination is explicit; no silent truncation.
  • 400Invalid query parameters
  • 404Record not found
  • 500Dataset unavailable
GET/v1/id/postal-codes/{id}

Find indonesia postal codes by identifier.

ParameterInTypeRules
id *pathstringNone
GET/v1/id/postal-codes/{id}
curl 'https://api.apifor.dev/v1/id/postal-codes/{id}' \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "success": true,
  "data": {
    "id": "legacy-villages-v1:1101012001",
    "postal_code": "23773",
    "village_code": "1101012001",
    "district_code": "110101",
    "regency_code": "1101",
    "province_code": "11"
  }
}
  • 200Successful response. Pagination is explicit; no silent truncation.
  • 400Invalid query parameters
  • 404Record not found
  • 500Dataset unavailable

Error handling · Rate limits · Source licences