PASAR API

🇲🇾 Malaysia Postcodes

← directory
AsyrafHussin (community)Maps & locationtier: openauth: no authpricing: freeverified 2026-06-30

MY-specific. Open-source MIT dataset of Malaysian postcodes with city and state, as JSON files plus an npm package (malaysia-postcodes). Static data, not a live geocoding service.

View docs ↗ More Maps & location APIs All Malaysia APIs

Call it

curl --fail-with-body --location --max-time 30 'https://raw.githubusercontent.com/AsyrafHussin/malaysia-postcodes/master/all.json'

AI prompt

I'm building an app using a public Malaysia API (no private credentials needed).

API: Malaysia Postcodes
Provider: AsyrafHussin (community)
Endpoint: GET https://raw.githubusercontent.com/AsyrafHussin/malaysia-postcodes/master/all.json
Response format: JSON

Source: AsyrafHussin (community) (https://github.com/AsyrafHussin/malaysia-postcodes)
Source type: Curated source
Endpoint type: Provider API base URL
Integration difficulty: Copy-paste ready
Last checked: 2026-06-30
Production caveat: Still handle empty rows, schema changes, pagination, stale coverage, and temporary upstream failures.

Help me fetch and display this data. Follow the documented format and handle errors, empty responses, stale coverage, caching and rate limits.

Related Maps & location APIs

OneMap ~ Singapore's official map: geocoding, routing & themesMapbox Geocoding API ~ forward/reverse geocodingGoogle Maps PlatformHERE Location ServicesRadar Maps PlatformNominatim (OpenStreetMap)TomTom Maps & RoutingAzure MapsFoursquare Places APIOpenRouteService Routing & Geospatial