Skip to content
Scrappa Get API key
Rumah123 API 1 credit/request

Rumah123 Autocomplete API Documentation

GET https://scrappa.co/api/rumah123/autocomplete

Rumah123 Autocomplete API turns text into Indonesian locations. Each result has a kind (location or poi), a type label such as City, the place name, province, city, district, coordinates, the number of listings and the lowest sale and monthly rent price. Pass the id of a result as location_id to the search route. A query needs at least two characters. An empty list is a valid answer and is billed.

Rumah123 Autocomplete API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/rumah123/autocomplete
Auth header
x-api-key
Cost
1 credit/request
query = coffee shops
Response preview
200 OK
{
    "data": {
        "query": "jakarta sel",
        "results": [
            {
                "id": "fd7063ac-b425-49de-a925-abcc4a2aa2db",
                "lat": -6.26899,
                "lng": 106.806,
                "city": "Jakarta Selatan",
                "kind": "location",
                "name": "Jakarta Selatan",
                "slug": "jakarta-selatan",
                "type": "City",
                "level": 2,
...

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.

1 optional filter available.

query string Required

Search text, 2 to 100 characters. Example: jakarta sel.

Example value coffee shops
kind string Optional

Keep one result kind: location or poi.

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": {
        "query": "jakarta sel",
        "results": [
            {
                "id": "fd7063ac-b425-49de-a925-abcc4a2aa2db",
                "lat": -6.26899,
                "lng": 106.806,
                "city": "Jakarta Selatan",
                "kind": "location",
                "name": "Jakarta Selatan",
                "slug": "jakarta-selatan",
                "type": "City",
                "level": 2,
                "district": null,
                "province": "Jakarta",
                "listing_count": 11500,
                "min_sale_price": null,
                "min_rent_price_monthly": null
            },
            {
                "id": "578f592e-7613-4e43-8650-3c90b13c0b3a",
                "lat": -6.297639846801758,
                "lng": 106.78559112548828,
                "city": "Jakarta Selatan",
                "kind": "poi",
                "name": "RS Mayapada Jakarta Selatan",
                "slug": "jakarta-selatan-poi-rs-mayapada-jaksel",
                "type": null,
                "level": 0,
                "district": "Cilandak",
                "province": "Jakarta",
                "listing_count": 690,
                "min_sale_price": null,
                "min_rent_price_monthly": 12000
            }
        ]
    },
    "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 range is invalid. This response is not billable.

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

Upstream Unavailable

Rumah123 could not be reached or returned data that does not match the request. This response is not billable and is retryable.

{
    "meta": {
        "billable": false,
        "retryable": true,
        "endpoint_family": "autocomplete"
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "Rumah123 could not be reached. 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.