# Zameen Agency Directory API Documentation

<p><strong>Zameen Agency Directory API</strong> List agencies, or find agencies with a text in their name. Agencies with the most listings come first. Each row has the same fields as the agency profile. Page times per_page must be at most 10,000.</p>

- **Documentation:** [https://scrappa.co/docs/zameen-api/zameen_agencies](https://scrappa.co/docs/zameen-api/zameen_agencies)
- **API group:** Zameen API
- **Endpoint:** `GET https://scrappa.co/api/zameen/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 | No | Optional. Text in the agency name, 2 to 100 characters, e.g. ali. Without it, all agencies are listed. |
| `page` | integer | No | Page number, from 1 (default 1). Page times per_page must be at most 10,000. |
| `per_page` | integer | No | Rows per page, 1 to 50 (default 20). |

## Example response

```json
{
    "data": {
        "page": 1,
        "count": 20,
        "query": "ali",
        "agencies": [
            {
                "id": "47422616",
                "city": null,
                "logo": null,
                "name": null,
                "slug": "dha_phase_1_sector_b1_al-mannan_spanish_villas_popular_villas_available_for_sale-47422616-20637-1",
                "phone": "+9251111333333",
                "active": null,
                "mobile": "+923000000000",
                "name_ur": null,
                "licenses": [],
                "whatsapp": null,
                "locations": [],
                "created_at": null,
                "description": null,
                "agents_count": null,
                "listing_tier": "premium",
                "listing_counts": {
                    "rent": null,
                    "sale": null,
                    "total": null
                }
            }
        ],
        "has_more": true,
        "per_page": 20,
        "total_count": 347,
        "total_pages": 18
    },
    "meta": {
        "billable": true,
        "endpoint_family": "agencies"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A required parameter is missing or invalid. This response is not billable. |
| 422 | Result Window Exceeded | Page times per_page is above 10,000. Zameen search reaches only the first 10,000 results. Narrow the filters or lower the page. This response is not billable. |
| 503 | Temporarily Unavailable | Zameen did not answer or refused the request after several attempts. This response is not billable. Retry after a short pause. |

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