Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Refnusa Dev Postal Codes API
version: 0.2.0
description: 'Operations tagged Postal Codes across 2 of this provider''s published API definitions: openapi.json, refnusa-dev-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://refnusa.dev
tags:
- name: Postal Codes
paths:
/v1/postal-codes/reverse:
get:
summary: Regions that carry one postal code
responses:
'200':
description: OK
'400':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
'429':
$ref: '#/components/responses/Error'
parameters:
- name: code
in: query
required: true
schema:
type: string
description: Postal code
pattern: ^\d{5}$
tags:
- Postal Codes
operationId: getV1PostalCodesReverse
x-operation-id-source: derived
servers:
- url: https://refnusa.dev
/v1/postal-codes/{wilayah_code}:
get:
summary: Postal codes of one kelurahan or desa by its wilayah code
responses:
'200':
description: OK
'400':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
'429':
$ref: '#/components/responses/Error'
parameters:
- name: wilayah_code
in: path
required: true
schema:
type: string
description: Kemendagri wilayah code
pattern: ^\d{2}(\.\d{2}){0,2}(\.\d{4})?$
tags:
- Postal Codes
operationId: getV1PostalCodesByWilayahCode
x-operation-id-source: derived
servers:
- url: https://refnusa.dev
components:
responses:
Error:
description: Error
content:
application/json:
schema:
type: object
properties:
error:
type: string
message:
type: string
x-refined-from:
- openapi.json
- refnusa-dev-openapi.yml