Malaysia Jajahan API
A REST API about states in Malaysia.
This API inspired from lomotech/jajahan. It is intentional for files to be stored this way (json format) as it avoids using any database engine and to be read-only web API.
Contribution
- If you have noticed some mistakes or bugs, or maybe you have any suggestions please create an issue.
- Have you found something new information or bugs? Make a PR and add it to the list!
Resource
- Wikipedia
- sddsa
- Statistics My
- Sabah My
List of endpoints
The current base url is https://mazfreelance.github.io/malaysia-jajahan-api
Type | End Point | Link |
---|---|---|
country | /v1/countries.json | Test |
state | /v1/states.json | Test |
state (district) | /v1/states/district.json | Test |
state (mukim) | /v1/states/mukim.json | Test |
dun | /v1/dun.json | Test |
parliament | /v1/parliament.json | Test |
education - level | /v1/educations/level.json | Test |
education - field of study (all) | /v1/educations/field-of-study.json | Test |
education - field of study (board field) | /v1/educations/field-of-study/board-field.json | Test |
education - field of study (narrow field) | /v1/educations/field-of-study/narrow-field.json | Test |
education - field of study (narrow field details) | /v1/educations/field-of-study/narrow-field-details.json | Test |
bank | /v1/bank.json | Test |
user title | /v1/user-title.json | Test |
religion | /v1/religion.json | Test |
university | /v1/universities.json | Test |
local authorities | /v1/local-authorities.json | Test |
foreign exchange rates | /v1/foreign-exchange.json | Test |
Usage Example
- request
curl https://mazfreelance.github.io/malaysia-jajahan-api/v1/countries.json
- response
[
{
"id": "004",
"name": "Afghanistan",
"iso_3166_2": "AF",
"iso_3166_3": "AFG"
},
{
"id": "008",
"name": "Albania",
"iso_3166_2": "AL",
"iso_3166_3": "ALB"
},
{
"id": "010",
"name": "Antarctica",
"iso_3166_2": "AQ",
"iso_3166_3": "ATA"
},
{
"id": "012",
"name": "Algeria",
"iso_3166_2": "DZ",
"iso_3166_3": "DZA"
},
{
"id": "016",
"name": "American Samoa",
"iso_3166_2": "AS",
"iso_3166_3": "ASM"
}
]