API Collection
Koson Technology
  • COUNTRY-STATE-CITY
  • INDIA-RAILWAY-TRAIN
  • SHANGHAI METRO API
    • All Line Number
    • All Line Timetable
    • Last Line Timetable
    • Line History
    • Line Colour
    • All Station Information
    • Search Station With Line
    • Search Station With Station ID
    • Search Station With Station Name
    • Last Station Timetable
    • Estimate Arrival Time
    • Check Price
    • Check Route
  • AIRPORT-INFO
  • INDIA-HOTEL
  • HK-FERRY-ROUTE
  • FLIGHT-TRACK
  • MALAYSIA-STATES
  • SINGAPORE-BUS
Powered by GitBook
On this page
  • GitHub documentation
  • Usage
  • Parameter Guidelines
  • References
  • List of state codes in Malaysia
  • Demo
  • Download

MALAYSIA-STATES

Get general information of all the states in Malaysia

PreviousFLIGHT-TRACKNextSINGAPORE-BUS

Last updated 1 year ago

GitHub documentation

Usage

2. The following parameters are accepted:

code

State or federal territory code

E.g. 08 (Perak)

download

To download the JSON output

Empty or any value is fine

  1. Depending on the parameters, the script will construct a URL to fetch information from the GitHub owner's API accordingly.

Parameter Guidelines

  • code parameter:

    • The script will retrieve information of a state according to its code.

  • download parameter

References

List of state codes in Malaysia

Demo

Download

1. Making an HTTP request via a web browser or API platform etc..

The JSON output will be automatically downloaded from the web browser. See the download sample at .

Postman
here
https://api.kosontechnology.com/malaysia-states.php?code=08
Retrieves information of Perak state
https://api.kosontechnology.com/malaysia-states.php?code=07
Retrieves information of Pulau Pinang state
https://api.kosontechnology.com/malaysia-states.php?code=08&download=api.kosontechnology.com
GitHub - JianLoong/malaysia-api: A REST API about states in Malaysia. 🇲🇾GitHub
ISO 3166-2:MYWikipedia
Logo
Logo