# Domain.com.au Agents

Returns agents who list in the given suburb slugs. Each row carries profile_slug, the value the agent and agency endpoints take.

- **Documentation:** [https://scrappa.co/docs/domain-com-au-api/domain_com_au_agents](https://scrappa.co/docs/domain-com-au-api/domain_com_au_agents)
- **API group:** Domain.com.au API
- **Endpoint:** `GET https://scrappa.co/api/domain-com-au/agents`

## 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 |
| --- | --- | --- | --- |
| `suburb_slugs[]` | string | Yes | Suburb slug, for example pyrmont-nsw-2009. |
| `page` | integer | No | 1-based page number. |
| `page_size` | integer | No | Rows per page, up to 100. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/domain-com-au/agents?suburb_slugs%5B0%5D=pyrmont-nsw-2009&page_size=5"
```

## Example response

```json
{
    "success": true,
    "data": {
        "total": 359,
        "total_pages": 120,
        "agents": [
            {
                "name": "Brian Cheol Han",
                "job_title": "Leasing Executive",
                "profile_slug": "brian-cheol-han-1959179"
            }
        ]
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 400 | Validation Error | A parameter is invalid, including an unrecognised mode, property type or enum. Accepted values are listed in the error. This response is not billable. |
| 404 | Not Found | The requested listing, agent profile or city was not found. This response is not billable. |
| 422 | Upstream Input Rejected | Domain.com.au refused the requested filters, or an identifier could not be resolved. This response is not billable. |
| 503 | Service Unavailable | The service could not reach its data source, or the lookup did not complete. No credits are charged for a failed request. |

## 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)
