Logo

Machinery Hire Rate & Equipment Purchase Price

The Machinery Hire Rate & Equipment Purchase Price allows users to retrieve published machinery hire rates and equipment purchase price time series for selected machinery & equipment specifications across one or more states and time periods. The response is structured by machinery or equipment specification, and further grouped by state, where each state includes a monthly list of recorded rates or prices.


Get All Machinery & Equipment Groups

API Endpoint

GET /internal/data/machinery/group

Headers

TypeValueRequire
Acceptapplication/jsonYes
AuthorizationBearer {{access_token}}Yes

Sample Request

curl --location \
      --request GET 'https://n3c-api.cidb.gov.my/internal/data/machinery/group' \
      --header 'Accept: application/json' \
      --header 'Authorization: Bearer {{access_token}}'

Sample Response

[
  {
    "id": 1,
    "name": "Machinery Hire Rate",
    "type": "A",
    "description": "A",
    "created_at": "2025-06-23T07:07:28.000000Z",
    "updated_at": "2025-06-23T07:15:06.000000Z"
  },
  {
    "id": 2,
    "name": "Equipment Purchase Price",
    "type": "B",
    "description": "B",
    "created_at": "2025-06-23T05:07:28.000000Z",
    "updated_at": "2025-06-23T05:14:54.000000Z"
  }
]

Get All Categories

API Endpoint

GET /internal/data/machinery/category

Headers

TypeValueRequire
Acceptapplication/jsonYes
AuthorizationBearer {{access_token}}Yes

Sample Request

curl --location \
      --request GET 'https://n3c-api.cidb.gov.my/internal/data/machinery/category' \
      --header 'Accept: application/json' \
      --header 'Authorization: Bearer {{access_token}}'

Sample Response

[
  {
    "id": 9,
    "category": "Excavator",
    "group": "Machinery Hire Rate",
    "machinery_group_id": 1,
    "description": ""
  },
  {
    "id": 18,
    "category": "Concrete Works & Plastering",
    "group": "Equipment Purchase Price",
    "machinery_group_id": 2,
    "description": ""
  },
  ...
]

Get All Specifications

API Endpoint

GET /internal/data/machinery/specification-only-with-rate

Headers

TypeValueRequire
Acceptapplication/jsonYes
AuthorizationBearer {{access_token}}Yes

Sample Request

curl --location \
      --request GET 'https://n3c-api.cidb.gov.my/internal/data/machinery/specification-only-with-rate' \
      --header 'Accept: application/json' \
      --header 'Authorization: Bearer {{access_token}}'

Sample Response

[
  {
    "id": 268,
    "group": "Machinery Hire Rate",
    "category": "Excavator",
    "machinery_category_id": 9,
    "specification": "Operating Weight 30000kg",
    "brand": "Caterpillar",
    "model": "336D2L",
    "type_machine": "Hydraulic Excavator",
    "capacity": "-",
    "weight": "-",
    "bmeci": 1
  },
  {
    "id": 503,
    "group": "Equipment Purchase Price",
    "category": "Concrete Works & Plastering",
    "machinery_category_id": 18,
    "specification": "Diesel Engine",
    "brand": "Imuzi",
    "model": "IM3TM",
    "type_machine": "Concrete Mixer",
    "capacity": "Unmixed-3.5 Cubic Feet; Mixed-2.5 Cubic Feet",
    "weight": "-",
    "bmeci": 4
  },
  ...
]

Generate Machinery Hire Rate & Equipment Purchase Price by State, Time Period, and Specification

API Endpoint

GET /internal/products/machinery-hire-rate-and-equipment-purchase-price

Headers

TypeValueRequired
Acceptapplication/jsonYes
AuthorizationBearer {{access_token}}Yes

Request Guideline

There are two main modes controlled by the option parameter:

  • one – filter for selected machinery/equipment specifications only
  • two – ignore machinery and return all machinery rates & equipment prices for a state/year

The example below shows a request with:

  • Multiple selected machinery/equipment specifications
  • Two states selected (Terengganu and Selangor)
  • Interval type Three (duration between two month/year pairs)
{
  "machinery": [
    {
      "machinery_group": "Machinery Hire Rate",
      "machinery_category": "Excavator",
      "selectedSpecs": [
        {
          "id": 268,
          "group": "Machinery Hire Rate",
          "category": "Excavator",
          "machinery_category_id": 9,
          "specification": "Operating Weight 30000kg",
          "brand": "Caterpillar",
          "model": "336D2L",
          "type_machine": "Hydraulic Excavator",
          "capacity": "-",
          "weight": "-",
          "bmeci": 1
        },
        {
          "id": 269,
          "group": "Machinery Hire Rate",
          "category": "Excavator",
          "machinery_category_id": 9,
          "specification": "Operating Weight 40000kg",
          "brand": "Caterpillar",
          "model": "336DL",
          "type_machine": "Hydraulic Excavator",
          "capacity": "-",
          "weight": "-",
          "bmeci": 1
        }
      ],
    },
    {
      "machinery_group": "Equipment Purchase Price",
      "machinery_category": "Concrete Works & Plastering",
      "selectedSpecs": [
        {
          "id": 503,
          "group": "Equipment Purchase Price",
          "category": "Concrete Works & Plastering",
          "machinery_category_id": 18,
          "specification": "Diesel Engine",
          "brand": "Imuzi",
          "model": "IM3TM",
          "type_machine": "Concrete Mixer",
          "capacity": "Unmixed-3.5 Cubic Feet; Mixed-2.5 Cubic Feet",
          "weight": "-",
          "bmeci": 4
        }
      ],
    }
  ],
  "selectedStates": [
    {
      "id": 4,
      "name": "WP Kuala Lumpur",
      "code": "KL",
      "region_code": "C",
      "region": "Peninsular Malaysia",
      "region_id": 1,
      ...
    }
  ],
  "option": "one",
  "interval": "Three",
  "only_month": {
    "month": "January",
    "year": 2025
  },
  "between_month": {
    "from": {
      "month": "January",
      "year": 2025
    },
    "and": {
      "month": "January",
      "year": 2025
    }
  },
  "between_duration": {
    "from": {
      "month": "January",
      "year": 2024
    },
    "to": {
      "month": "January",
      "year": 2025
    }
  },
  "only_year": {
    "year": 2025
  }
}

Query Parameters

FieldTypeRequiredDescription
machineryarrayRequired if option = "one"List of machinery groups, categories and selected specifications to include. Ignored when option = "two".
selectedStatesarrayYesList of states to include in the result. Each entry must at least contain the state id.
optionstringYes"one" for selected machinery only, "two" for all machinery.
intervalstringYesControls the time range filter. One of: "One", "Two", "Three", "Four".
only_monthobjectRequired if interval = "One"Single month/year filter.
between_monthobjectRequired if interval = "Two"Two specific months/years.
between_durationobjectRequired if interval = "Three"Continuous duration between two month/year combinations.
only_yearobjectRequired if interval = "Four"Single year filter.

option field behaviour

ValueMeaning
"one"Filter by the selected machinery & equipment specifications listed in machinery[*].selectedSpecs.
"two"Ignore machinery and return all machinery rates & equipment prices for the specified state and year.

When option = "two", the API expects:

  • At least one state in selectedStates
  • only_year.year to be present

and will return a different, summarized structure for all groups/categories/specifications in that state and year.


interval field behaviour

ValueBehaviour
"One"Filter by a single month and year (only_month.month, only_month.year).
"Two"Filter by two specific months/years (between_month.from and between_month.and). Both month/year pairs are included.
"Three"Filter by a continuous duration between two month/year pairs (between_duration.from → between_duration.to).
"Four"Filter by a single year (only_year.year), including all published months for that year.

Sample Request option = "one"

Example using option = "one" and interval = "Three":

curl --location \
--request GET 'https://n3c-api.cidb.gov.my/internal/products/machinery-hire-rate-and-equipment-purchase-price' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--json '{
  "machinery": [
    {
      "machinery_group": "Machinery Hire Rate",
      "machinery_category": "Excavator",
      "selectedSpecs": [
        {
          "id": 268,
          "group": "Machinery Hire Rate",
          "category": "Excavator",
          "machinery_category_id": 9,
          "specification": "Operating Weight 30000kg",
          "brand": "Caterpillar",
          "model": "336D2L",
          "type_machine": "Hydraulic Excavator",
          "capacity": "-",
          "weight": "-",
          "bmeci": 1
        },
        {
          "id": 269,
          "group": "Machinery Hire Rate",
          "category": "Excavator",
          "machinery_category_id": 9,
          "specification": "Operating Weight 40000kg",
          "brand": "Caterpillar",
          "model": "336DL",
          "type_machine": "Hydraulic Excavator",
          "capacity": "-",
          "weight": "-",
          "bmeci": 1
        }
      ],
    },
    {
      "machinery_group": "Equipment Purchase Price",
      "machinery_category": "Concrete Works & Plastering",
      "selectedSpecs": [
        {
          "id": 503,
          "group": "Equipment Purchase Price",
          "category": "Concrete Works & Plastering",
          "machinery_category_id": 18,
          "specification": "Diesel Engine",
          "brand": "Imuzi",
          "model": "IM3TM",
          "type_machine": "Concrete Mixer",
          "capacity": "Unmixed-3.5 Cubic Feet; Mixed-2.5 Cubic Feet",
          "weight": "-",
          "bmeci": 4
        }
      ],
    }
  ],
  "selectedStates": [
    {
      "id": 4,
      "name": "WP Kuala Lumpur",
      "code": "KL",
      "region_code": "C",
      "region": "Peninsular Malaysia",
      "region_id": 1,
      ...
    }
  ],
  "option": "one",
  "interval": "Three",
  "between_duration": {
    "from": {
      "month": "January",
      "year": 2024
    },
    "to": {
      "month": "January",
      "year": 2025
    }
  },
}'

Sample Response option = "one"

The response for option = "one" is grouped by machinery/equipment specification and state.

  • Top-level: array of machinery or equipment items
  • For each item:
    • group – type of data (e.g., Machinery Hire Rate, Equipment Purchase Price)
    • category – machinery/equipment category (e.g., Excavator, Concrete Works & Plastering)
    • specification – model/spec details
    • model – machinery/equipment model
    • capacity – capacity description (if applicable)
    • states – array of states with their time-series price records

Each state contains:

  • name – state name
  • month_year_rates – list of published rates by month/year

Each rate record includes the following fields (depending on group):

For Machinery Hire Rate:

  • month – short month (e.g., Jan, Jul)
  • year – numeric year
  • month_year – formatted label (Mon-YYYY)
  • daily_price – daily machinery hire rate
  • monthly_price – monthly machinery hire rate

For Equipment Purchase Price:

  • month – short month
  • year – numeric year
  • month_year – formatted label (Mon-YYYY)
  • sample_price – published purchase price for the equipment
[
  {
    "group": "Machinery Hire Rate",
    "category": "Excavator",
    "specification": "Operating Weight 30000kg",
    "model": "336D2L",
    "capacity": "-",
    "states": [
      {
        "name": "WP Kuala Lumpur",
        "month_year_rates": [
          {
            "month": "Jan",
            "year": 2024,
            "month_year": "Jan-2024",
            "daily_price": 800,
            "monthly_price": 15000
          },
          {
            "month": "Jul",
            "year": 2024,
            "month_year": "Jul-2024",
            "daily_price": 800,
            "monthly_price": 15000
          },
          {
            "month": "Jan",
            "year": 2025,
            "month_year": "Jan-2025",
            "daily_price": 490.00,
            "monthly_price": 7000.60
          }
        ]
      }
    ]
  },
  {
    "group": "Machinery Hire Rate",
    "category": "Excavator",
    "specification": "Operating Weight 40000kg",
    "model": "336DL",
    "capacity": "-",
    "states": [
      {
        "name": "WP Kuala Lumpur",
        "month_year_rates": [
          {
            "month": "Jan",
            "year": 2024,
            "month_year": "Jan-2024",
            "daily_price": 1000,
            "monthly_price": 23333
          },
          {
            "month": "Jul",
            "year": 2024,
            "month_year": "Jul-2024",
            "daily_price": 1000,
            "monthly_price": 23333
          },
          {
            "month": "Jan",
            "year": 2025,
            "month_year": "Jan-2025",
            "daily_price": 500.67,
            "monthly_price": 23333
          }
        ]
      }
    ]
  },
  {
    "group": "Equipment Purchase Price",
    "category": "Concrete Works & Plastering",
    "specification": "Diesel Engine",
    "model": "IM3TM",
    "capacity": "Unmixed-3.5 Cubic Feet; Mixed-2.5 Cubic Feet",
    "states": [
      {
        "name": "WP Kuala Lumpur",
        "month_year_rates": [
          {
            "month": "Jan",
            "year": 2024,
            "month_year": "Jan-2024",
            "sample_price": 2000
          },
          {
            "month": "Jul",
            "year": 2024,
            "month_year": "Jul-2024",
            "sample_price": 2000
          },
          {
            "month": "Jan",
            "year": 2025,
            "month_year": "Jan-2025",
            "sample_price": 1833.22
          }
        ]
      }
    ]
  }
]

Sample Request option = "two"

Example using option = "two" and interval = "Four":

curl --location \
      --request GET 'https://n3c-api.cidb.gov.my/internal/products/machinery-hire-rate-and-equipment-purchase-price' \
      --header 'Accept: application/json' \
      --header 'Authorization: Bearer {{access_token}}' \
      --json '{
            "selectedStates": [
                  {
                        "id": 4,
                        "name": "WP Kuala Lumpur",
                        "code": "KL",
                        "region_code": "C",
                        "region": "Peninsular Malaysia",
                        "region_id": 1,
                        ...
                  }
            ],
            "option": "two",
            "interval": "Four",
            "only_year": {
                  "year": 2025
            }
      }'

Sample Response option = "two"

For requests where option = "two", the API response is structured by all machinery or equipment specifications, filtered by the selected state, and returns records only for the specified year.

Top-level Structure

  • state – information about the selected state
  • year – the requested year
  • months – list of available short month labels (e.g., "Jan", "Jul")
  • data_months – metadata describing which months were published for that state
    • Includes fields such as:
      • id, state_id, month, year, status, sample, timestamps
  • data – grouped machinery or equipment dataset
    • Each machinery/equipment group contains:
      • name – e.g., "Machinery Hire Rate" or "Equipment Purchase Price"
      • categories – list of machinery/equipment categories
        • Each category contains:
          • category – category name (e.g., "Excavator", "Concrete Works & Plastering")
          • specifications – list of specifications
            • Each specification includes:
              • type_machine – machine type (e.g., Hydraulic Excavator, Concrete Mixer)
              • brand – manufacturer
              • model – model name
              • capacity – capacity or rating
              • specification – detailed specification label

Month-based price records

  • Month key (jan, jul, etc.) contains:

For Machinery Hire Rate:

  • daily – daily hire rate
  • monthly – monthly hire rate

For Equipment Purchase Price:

  • Single numeric value representing equipment purchase price
{
  "Machinery Hire Rate": {
    "state": {
      "id": 4,
      "name": "WP Kuala Lumpur",
      "code": "KL",
      "region_code": "C",
      "region": "Peninsular Malaysia",
      "region_id": 1,
      ...
    },
    "year": "2025",
    "months": [
      "Jan",
      "Jul"
    ],
    "data_months": [
      {
        "id": 2438,
        "state_id": 4,
        "month": "January",
        "year": 2025,
        "status": "Published",
        "sample": 3,
        ...
      },
      {
        "id": 2458,
        "state_id": 4,
        "month": "July",
        "year": 2025,
        "status": "Published",
        "sample": 3,
        ...
      }
    ],
    "data": [
      {
        "name": "Machinery Hire Rate",
        "categories": [
          {
            "category": "Excavator",
            "specifications": [
              {
                "type_machine": "Hydraulic Excavator",
                "brand": "Caterpillar",
                "model": "336D2L",
                "capacity": "-",
                "specification": "Operating Weight 30000kg",
                "operator_hire_rate": "0.00",
                "jan": {
                  "daily": 491.67,
                  "monthly": 7916.67
                },
                "jul": {
                  "daily": 491.67,
                  "monthly": 7916.67
                }
              },
              {
                "type_machine": "Hydraulic Excavator",
                "brand": "Caterpillar",
                "model": "336DL",
                "capacity": "-",
                "specification": "Operating Weight 40000kg",
                "operator_hire_rate": "0.00",
                "jan": {
                  "daily": 591.67,
                  "monthly": 11500
                },
                "jul": {
                  "daily": 591.67,
                  "monthly": 11500
                }
              },
              ...
            ]
          },
        ]
      }
    ]
  },
  "Equipment Purchase Price": {
    "state": {
      "id": 4,
      "name": "WP Kuala Lumpur",
      "code": "KL",
      "region_code": "C",
      "region": "Peninsular Malaysia",
      "region_id": 1,
      ...
    },
    "year": "2025",
    "months": [
      "Jan",
      "Jul"
    ],
    "data_months": [
      {
        "id": 2656,
        "state_id": 4,
        "month": "July",
        "year": 2025,
        "status": "Published",
        "sample": 3,
        ...
      },
      {
        "id": 2620,
        "state_id": 4,
        "month": "January",
        "year": 2025,
        "status": "Published",
        "sample": 3,
        ...
      }
    ],
    "data": [
      {
        "name": "Equipment Purchase Price",
        "categories": [
          {
            "category": "Concrete Works & Plastering",
            "specifications": [
              {
                "type_machine": "Concrete Mixer",
                "brand": "Imuzi",
                "model": "IM3TM",
                "capacity": "Unmixed-3.5 Cubic Feet; Mixed-2.5 Cubic Feet",
                "specification": "Diesel Engine",
                "weight": "-",
                "jan": 1888.33,
                "jul": 1888.33
              },
              {
                "type_machine": "Concrete Cutter",
                "brand": "Hisaki",
                "model": "YRC20",
                "capacity": "Max Cutting Depth 190mm",
                "specification": "Gasoline/Petrol Engine",
                "weight": "-",
                "jan": 4911.67,
                "jul": 4911.67
              },
              ...
            ]
          },
        ]
      }
    ]
  }
}