# Dot Property Agents API Documentation

<p><strong>Dot Property Agents API</strong> returns the agent and agency directory as JSON: id, name, type, logo and the number of available listings. Use the id with the Agent route for the profile and with the Search route (agent_id) for the listings. A page can hold fewer rows than <code>per_page</code>, and an empty page past the end is a successful response.</p>

- **Documentation:** [https://scrappa.co/docs/dotproperty-api/dotproperty_agents](https://scrappa.co/docs/dotproperty-api/dotproperty_agents)
- **API group:** Dot Property API
- **Endpoint:** `GET https://scrappa.co/api/dotproperty/v1/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 |
| --- | --- | --- | --- |
| `page` | integer | No | One-based page number, 1 to 1000. Example: 1. |
| `per_page` | integer | No | Rows per page, 1 to 50 (default 20). Example: 20. |

## Example response

```json
{
    "data": {
        "agents": [
            {
                "id": "00000000-ffff-4047-8001-000000000000",
                "url": "https://www.dotproperty.co.th/en/real-estate-agents/sukhothai-co-ltd_00000000-ffff-4047-8001-000000000000/properties-for-sale",
                "logo": "https://images.proppit.com/publisher/00000000-ffff-4047-8001-000000000000/logo.jpeg",
                "name": "Sukhothai Co., Ltd",
                "slug": "sukhothai-co-ltd",
                "type": "agency",
                "available_listings": 20
            },
            {
                "id": "00d741f4-4098-400e-8210-d6dd623f75a6",
                "url": "https://www.dotproperty.co.th/en/real-estate-agents/ploy-owner-0852203366_00d741f4-4098-400e-8210-d6dd623f75a6/properties-for-rent",
                "logo": "https://images.proppit.com/publisher/00d741f4-4098-400e-8210-d6dd623f75a6/logo.jpeg",
                "name": "Ploy Owner 0852203366",
                "slug": "ploy-owner-0852203366",
                "type": "agency",
                "available_listings": 1
            }
        ],
        "pagination": {
            "count": 9,
            "per_page": 10,
            "current_page": 1
        }
    },
    "meta": {
        "billable": true,
        "endpoint_family": "agents"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | The page or per_page value is out of range. This response is not billable. |
| 503 | Upstream Unavailable | Dot Property 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)
