# Rumah123 Agencies API Documentation

<p><strong>Rumah123 Agencies API</strong> finds agencies by name. Each result has the agency id, name, profile URL and the office location. The pagination block shows the total number of matches and pages. A name with no match returns an empty list, which is a valid, billed answer.</p>

- **Documentation:** [https://scrappa.co/docs/rumah123-api/rumah123_agencies](https://scrappa.co/docs/rumah123-api/rumah123_agencies)
- **API group:** Rumah123 API
- **Endpoint:** `GET https://scrappa.co/api/rumah123/agencies`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | string | Yes | Agency name, 2 to 100 characters. Example: ray white. |
| `page` | integer | No | One-based page number. Default 1. |
| `per_page` | integer | No | Results per page, 1 to 50. Default 20. |

## Example response

```json
{
    "data": {
        "items": [
            {
                "id": "19226",
                "url": "https://www.rumah123.com/en/property-agent/ray-white-19226/",
                "name": "Ray White",
                "uuid": "07d861e9-81b4-4955-baed-50bfc2f71543",
                "location": "Sudirman, Jakarta Selatan"
            },
            {
                "id": "36852",
                "url": "https://www.rumah123.com/en/property-agent/ray-white-depok-36852/",
                "name": "Ray White Depok",
                "uuid": "19aa47aa-6916-4d17-ae14-ab9110371773",
                "location": "Margonda, Depok"
            }
        ],
        "pagination": {
            "per_page": 20,
            "page_count": 11,
            "total_count": 205,
            "current_page": 1
        }
    },
    "meta": {
        "billable": true,
        "endpoint_family": "agencies"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A required parameter or a range is invalid. This response is not billable. |
| 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. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
