# Emlakjet Agency Profile API Documentation

Scrappa's `GET /api/emlakjet/agency` returns the public profile of one Emlakjet real estate office by its `id`.

## What you get

`id`, `name`, `url`, `description`, `logo`, `address` (district, city, country), `area_served`, `languages`, `membership_years`, `membership_label`, `stats` (`listing_count`, `average_marketing_days`, `average_sale_price`, `transactions_last_3_months`), `listing_counts` by type and the `agents` (consultants) with name, job title and profile url.

## Notes

Take the agency `id` from the `agency` block of a search item or a listing. The telephone number of the office is private and is never returned. An unknown id returns `404`, which is never billed.

- **Documentation:** [https://scrappa.co/docs/emlakjet-api/emlakjet_agency](https://scrappa.co/docs/emlakjet-api/emlakjet_agency)
- **API group:** Emlakjet API
- **Endpoint:** `GET https://scrappa.co/api/emlakjet/agency`

## 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 |
| --- | --- | --- | --- |
| `id` | integer | Yes | Agency (account) id from a listing or search, for example 1307951. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/emlakjet/agency?id=1307951"
```

## Example response

```json
{
    "success": true,
    "data": {
        "id": 1307951,
        "name": "TURYAP G\u00f6ztepe",
        "url": "https://www.emlakjet.com/emlak-ofisleri/turyap-goztepe-1307951",
        "description": "TURYAP G\u00f6ztepe, \u0130stanbul b\u00f6lgesinde hizmet veren emlak ofisi.",
        "logo": "https://imaj.emlakjet.com/resize/640/0/logo/1307951/806B8E80BD4819BC10A0BA38307DC220.jpg",
        "address": {
            "district": "Kad\u0131k\u00f6y",
            "city": "\u0130stanbul",
            "country": "TR"
        },
        "area_served": "\u0130stanbul",
        "languages": [
            "tr"
        ],
        "membership_years": 5,
        "membership_label": "PRO OF\u0130S",
        "stats": {
            "listing_count": 31,
            "average_marketing_days": 83,
            "average_sale_price": 11008800,
            "transactions_last_3_months": 45
        },
        "listing_counts": [
            {
                "label": "Sat\u0131l\u0131k Daire",
                "count": 16
            }
        ],
        "agents": [
            {
                "id": 1342845,
                "name": "Mehmet Ali \u00c7akmak",
                "job_title": "Gayrimenkul Dan\u0131\u015fman\u0131",
                "url": "https://www.emlakjet.com/danismanlar/mehmet-ali-cakmak-1342845"
            }
        ]
    },
    "meta": {
        "endpoint_family": "agency",
        "billable": true
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | No Emlakjet agency has that id. (`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)
