# Aqarmap Top Agencies API Documentation

Scrappa's `GET /api/aqarmap/agents` lists the top Aqarmap sellers, agencies and agents, with their number of active listings. Narrow by `location`, `section` and `property_type`.

## What you get

For each seller: `id`, `name`, `is_company`, `active_listings`, `logo` and `member_since`. Some sellers have no public name; `name` is then `null`.

- **Documentation:** [https://scrappa.co/docs/aqarmap-api/aqarmap_agents](https://scrappa.co/docs/aqarmap-api/aqarmap_agents)
- **API group:** Aqarmap API
- **Endpoint:** `GET https://scrappa.co/api/aqarmap/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 |
| --- | --- | --- | --- |
| `location` | integer | No | Location id from the locations endpoint. |
| `section` | string | No | sale or rent. |
| `property_type` | integer | No | Property type id, for example 1. |
| `limit` | integer | No | Sellers to return, 1 to 50 (default 10). |
| `lang` | string | No | en (default) or ar. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/aqarmap/agents?location=1&section=sale&limit=5"
```

## Example response

```json
{
    "success": true,
    "data": {
        "agents": [
            {
                "id": 5821861,
                "name": "High Tower",
                "is_company": true,
                "active_listings": 582,
                "logo": {
                    "id": 38845753,
                    "caption": null,
                    "order": null,
                    "thumb_url": "https://img-0.aqarmap.com.eg/new-aqarmap-media/search-thumb/2606/6a4393bb13cb0388008755.png",
                    "small_url": null,
                    "large_url": null
                },
                "member_since": "2026-06-25T11:46:51+03:00"
            }
        ]
    },
    "meta": {
        "endpoint_family": "agents",
        "billable": true,
        "duration_ms": 380
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A query parameter is missing, unknown or unusable. Unknown parameters are rejected, never ignored. Non-billable. |
| 503 | Upstream Unavailable | Aqarmap could not be reached after retries, refused the request or answered with a body this API cannot read safely (`UPSTREAM_UNAVAILABLE`). Never billed. Retry when `meta.retryable` is true. |

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