MALAYSIA-STATES

Get general information of all the states in Malaysia

GitHub documentation

Usage

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

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

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

References

List of state codes in Malaysia

Demo

Download

Last updated