# Domain.com.au Agent

Returns one agent, their sales and leasing statistics, and their agency. Statistics fields are null when the agent has no recorded sales in the period, which is a real state rather than an error.

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

## 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 |
| --- | --- | --- | --- |
| `slug` | string | Yes | Agent profile slug from the agents endpoint, for example brian-cheol-han-1959179. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/domain-com-au/agent?slug=brian-cheol-han-1959179"
```

## Example response

```json
{
    "success": true,
    "data": {
        "agent": {
            "name": "Brian Cheol Han"
        },
        "statistics": {
            "totalForSale": 1,
            "totalLeased": 219,
            "averageSoldPrice": null
        }
    }
}
```

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