# Emlakjet Agency List API Documentation

Scrappa's `GET /api/emlakjet/agencies` lists the real estate offices of a Turkish city or district.

## What you get

Each office has `id`, `name`, `url`, `logo`, `membership_years`, `membership_label`, `location`, `active_listings`, `average_marketing_days`, `average_sale_price` and `transactions_last_3_months`. A figure the office does not show is `null`. Use the `id` with `/api/emlakjet/agency` for the full profile.

## Pagination

20 offices per page. `pagination.has_more` tells if another page exists. A page past the last one returns an empty list and the real `page`.

- **Documentation:** [https://scrappa.co/docs/emlakjet-api/emlakjet_agencies](https://scrappa.co/docs/emlakjet-api/emlakjet_agencies)
- **API group:** Emlakjet API
- **Endpoint:** `GET https://scrappa.co/api/emlakjet/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 |
| --- | --- | --- | --- |
| `location` | string | Yes | City or district slug from autocomplete, for example istanbul-kadikoy. |
| `page` | integer | No | Result page, 1 to 50. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/emlakjet/agencies?location=istanbul-kadikoy"
```

## Example response

```json
{
    "success": true,
    "data": {
        "items": [
            {
                "id": 1856185,
                "name": "S\u0130NEM \u00c7APAN GAYR\u0130MENKUL",
                "url": "https://www.emlakjet.com/emlak-ofisleri/sinem-capan-gayrimenkul-1856185",
                "logo": "https://imaj.emlakjet.com/resize/640/0/logo/1856185/4C35B0855F6A40CF0278E45DE961E6DF.jpg",
                "membership_years": 3,
                "membership_label": "PRO OF\u0130S",
                "location": "\u0130stanbul, Kad\u0131k\u00f6y",
                "active_listings": 52,
                "average_marketing_days": "0 - 30",
                "average_sale_price": 20300000,
                "transactions_last_3_months": 6
            }
        ],
        "pagination": {
            "page": 1,
            "returned": 1,
            "has_more": true
        },
        "query": {
            "location": "istanbul-kadikoy"
        }
    },
    "meta": {
        "endpoint_family": "agencies",
        "billable": true
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | Emlakjet has no office list for that location. (`NOT_FOUND`). Non-billable. |
| 422 | Validation Error | A query parameter is missing, unknown or unusable. Unknown parameters and unknown values are rejected before any lookup, never ignored. Non-billable. |
| 503 | Upstream Unavailable | Emlakjet could not be reached after one retry, answered with an error or changed its format (`UPSTREAM_UNAVAILABLE`). Retryable and never billed. Clients are never rate limited. |

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