Malaysia States & Region
This provides access to the list of Malaysian states/region and supports filtering based on available Labour, Material, Machinery & Equipment data. These endpoints are used to populate dropdowns, validate data availability, and support index publishing workflows.
Get All States
API Endpoint
GET /internal/states
Headers
| Type | Value | Required |
|---|---|---|
| Accept | application/json | Yes |
| Authorization | Bearer {{access_token}} | Yes |
Sample Request
curl --location \
--request GET 'https://n3c-api.cidb.gov.my/internal/states' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{access_token}}'
Sample Response
[
{
"id": 1,
"name": "Johor",
"code": "JHR",
"region_code": "D",
"region": "Peninsular Malaysia",
"region_id": 1,
"created_at": "2025-05-06 16:48:17",
"updated_at": "2025-05-06 16:48:17"
},
{
"id": 2,
"name": "Kedah",
"code": "KDH",
"region_code": "A",
"region": "Peninsular Malaysia",
"region_id": 1,
"created_at": "2025-05-06 16:48:17",
"updated_at": "2025-05-06 16:48:17"
},
{
"id": 3,
"name": "Kelantan",
"code": "KLT",
"region_code": "F",
"region": "Peninsular Malaysia",
"region_id": 1,
"created_at": "2025-05-06 16:48:17",
"updated_at": "2025-05-06 16:48:17"
},
{
"id": 4,
"name": "WP Kuala Lumpur",
"code": "KL",
"region_code": "C",
"region": "Peninsular Malaysia",
"region_id": 1,
"created_at": "2025-05-06 16:48:17",
"updated_at": "2025-05-06 16:48:17"
},
...
]
Get Specific State
Returns the detail of a specific state based on the state code.
API Endpoint
GET /internal/states/:state
Headers
| Type | Value | Required |
|---|---|---|
| Accept | application/json | Yes |
| Authorization | Bearer {{access_token}} | Yes |
Path Parameter
| Name | Type | Example | Description | Required |
|---|---|---|---|---|
| :state | string | KL | State Code | Yes |
Sample Request
curl --location \
--request GET 'https://n3c-api.cidb.gov.my/internal/states/KL' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{access_token}}'
Sample Response
{
"id": 4,
"name": "WP Kuala Lumpur",
"code": "KL",
"region_code": "C",
"region": "Peninsular Malaysia",
"region_id": 1,
"created_at": "2025-05-06 16:48:17",
"updated_at": "2025-05-06 16:48:17"
}
