# imoti.net Agency Profile API Documentation

Scrappa's `GET /api/imoti-net/agency` returns the public profile of one agency.

## What you get

`name`, `type`, `about` text, `logo`, `email`, company `phone`, `address`, `website`, `is_recommended`, the number of offers for sale (`sale_count`) and for rent (`rent_count`), and the `brokers` of the agency with `id`, `name`, `photo`, `city` and their own offer counts. Phone numbers of single brokers are not returned.

## Input

`agency` is the `id` from the agency directory or from the `agency` block of a listing, for example `barnesinternational`. An unknown agency returns `404` (`not_found`).

## Not available

imoti.net has no separate agent profile page. The brokers are part of the agency profile.

- **Documentation:** [https://scrappa.co/docs/imoti-net-api/imoti_net_agency](https://scrappa.co/docs/imoti-net-api/imoti_net_agency)
- **API group:** imoti.net API
- **Endpoint:** `GET https://scrappa.co/api/imoti-net/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 |
| --- | --- | --- | --- |
| `agency` | string | Yes | Agency id from the agency directory or a listing, for example barnesinternational. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/imoti-net/agency?agency=barnesinternational"
```

## Example response

```json
{
    "success": true,
    "agency": {
        "id": "barnesinternational",
        "name": "Barnes Bulgaria",
        "type": "\u0410\u0433\u0435\u043d\u0446\u0438\u044f \u0437\u0430 \u043d\u0435\u0434\u0432\u0438\u0436\u0438\u043c\u0438 \u0438\u043c\u043e\u0442\u0438",
        "url": "https://barnesinternational.imoti.net",
        "about": "\"Barnes \u0411\u044a\u043b\u0433\u0430\u0440\u0438\u044f\" \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u0430\u043d\u043e \u043e\u0431\u0441\u043b\u0443\u0436\u0432\u0430\u043d\u0435 ...",
        "logo": "https://www.imoti.net/web/files/siteusers/23841/agency_main_image/thumb_200x75_logo.jpg",
        "email": "bulgaria@barnes-international.com",
        "phone": "0889 022 182",
        "address": "\u0421\u043e\u0444\u0438\u044f, \u0431\u0443\u043b. \u0427\u0435\u0440\u043d\u0438 \u0432\u0440\u044a\u0445 51-\u0413",
        "website": "http://barnes-bulgaria.com",
        "is_recommended": true,
        "sale_count": 22,
        "rent_count": 3,
        "brokers": [
            {
                "id": "329739",
                "name": "\u0424\u0438\u043b\u0438\u043f \u041d\u0438\u043a\u043e\u043b\u043e\u0432",
                "photo": "https://www.imoti.net/web/files/siteusers/329739/main_image/thumb_75x75_filip-nikolov.jpg",
                "city": "\u0421\u043e\u0444\u0438\u044f",
                "sale_count": 1,
                "rent_count": 1
            }
        ]
    },
    "meta": {
        "endpoint_family": "agency",
        "billable": true,
        "attempts": 1
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | Nothing exists with that identifier on imoti.net, for example a removed listing or an unknown agency (`not_found`). Non-billable. |
| 422 | Validation Error | A query parameter is missing, unknown or unusable. Unknown parameters are rejected, never ignored. Non-billable. |
| 503 | Upstream Unavailable | imoti.net could not be reached after retries, answered with an error, or returned an unexpected answer (`upstream_unavailable`, `upstream_blocked`, `parser_drift`). 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)
