Skip to content
Scrappa Get API key
Mudah.my Property API 1 credit/request

Mudah.my Property Autocomplete API Documentation

GET https://scrappa.co/api/mudah-property/v1/autocomplete

Mudah.my Property Autocomplete API turns a keyword into states, subareas and buildings (type location, default) or into ready-made keyword suggestions (type keyword). Every result carries search_filters that you pass unchanged to the search endpoint.

Mudah.my Property Autocomplete API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/mudah-property/v1/autocomplete
Auth header
x-api-key
Cost
1 credit/request
keyword = running shoes
Response preview
200 OK
{
    "data": {
        "results": [
            {
                "id": 353,
                "name": "Bangsar",
                "type": "subarea",
                "region": {
                    "id": 9,
                    "name": "Kuala Lumpur"
                },
                "subarea": {
                    "id": 353,
                    "name": "Bangsar"
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

1 required parameter needed before sending a request.

2 optional filters available.

keyword string Required

Search text, 2 to 100 characters. Example: bangsar.

Example value running shoes
type string Optional

location (default) or keyword.

Example value example
listing_type string Optional

sale (default) or rent. Used by type keyword.

Example value example

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

data meta success
JSON Response
200 OK
{
    "data": {
        "results": [
            {
                "id": 353,
                "name": "Bangsar",
                "type": "subarea",
                "region": {
                    "id": 9,
                    "name": "Kuala Lumpur"
                },
                "subarea": {
                    "id": 353,
                    "name": "Bangsar"
                },
                "property_type": null,
                "search_filters": {
                    "region": 9,
                    "subarea": 353
                }
            },
            {
                "id": 354,
                "name": "Bangsar South",
                "type": "subarea",
                "region": {
                    "id": 9,
                    "name": "Kuala Lumpur"
                },
                "subarea": {
                    "id": 354,
                    "name": "Bangsar South"
                },
                "property_type": null,
                "search_filters": {
                    "region": 9,
                    "subarea": 354
                }
            }
        ],
        "search_parameters": {
            "type": "location",
            "keyword": "bangsar"
        }
    },
    "meta": {
        "billable": true,
        "endpoint_family": "autocomplete"
    },
    "success": true
}

Errors

Handle these documented responses before retrying or showing customer-facing failures.

422

Validation Error

A required parameter or a value is invalid. This response is not billable.

{
    "errors": {
        "field": [
            "The field is invalid."
        ]
    },
    "message": "The request validation failed"
}
503

Upstream Unavailable

Mudah.my could not be reached. This response is not billable and is retryable.

{
    "meta": {
        "billable": false,
        "retryable": true,
        "endpoint_family": "autocomplete"
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "Mudah.my could not be reached. Please retry shortly."
    },
    "success": false
}
503

Unexpected Upstream Data

Mudah.my returned data in an unexpected shape. This response is not billable and is retryable.

{
    "meta": {
        "billable": false,
        "retryable": true,
        "endpoint_family": "autocomplete"
    },
    "error": {
        "code": "INVALID_UPSTREAM_SHAPE",
        "message": "Mudah.my returned data in an unexpected shape. Please retry shortly."
    },
    "success": false
}

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.