> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scrapebadger.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Agency Profile

> Full agency profile — address, GPS, phones, opening hours, ads / sales counts and the agent roster.

Fetch a real-estate agency's full profile by its numeric id (from a listing's
`agency.id` or its portal URL). Pair with
[`/agencies/{id}/listings`](https://docs.scrapebadger.com/api-reference/endpoint/immobiliare/get-agency-listings)
to pull the agency's active inventory.

## Path Parameters

**id** `integer` *required*

Immobiliare agency id, e.g. `41235`.

## Query Parameters

**market** `string` (default: it)

Market the agency belongs to. One of `it`, `es`, `gr`, `lu`.

## Response

The full `AgencyProfile`:

**id** `integer`

Agency id.

**type** `string`

e.g. `agency`, `builder`.

**name** `string`

**url** `string`

Agency profile URL on the portal.

**address** `string`

Street address of the office.

**description** `string`

Agency self-description.

**website** `string`

Agency's own website.

**image** `string`

Agency logo URL.

**is\_paid** `boolean`

Paid portal customer.

**partnership** `string`

Franchise / network affiliation, e.g. `tecnocasa`.

**real\_estate\_ads** `integer`

Active listings count.

**real\_estate\_sales** `integer`

Completed sales count.

**region** `string`

**province** `string`

**city** `string`

**macrozone** `string`

**latitude** `number`

**longitude** `number`

**phones** `string[]`

Office phone numbers.

**opening\_hours** `string[]`

Opening-hours lines.

**agents** `Agent[]`

Agent roster.

**Agent**

**id** `integer`

**name** `string`

**surname** `string`

**gender** `string`

**thumbnail** `string`

Agent photo URL.

**market** `string`

Echo of the requested market.

## Example

```javascript Node.js theme={null}
const res = await fetch(
  "https://scrapebadger.com/v1/immobiliare/agencies/41235?market=it",
  { headers: { "X-API-Key": process.env.SCRAPEBADGER_API_KEY } },
);
const agency = await res.json();
```

```python Python theme={null}
import requests

res = requests.get(
    "https://scrapebadger.com/v1/immobiliare/agencies/41235",
    headers={"X-API-Key": "YOUR_API_KEY"},
    params={"market": "it"},
)
agency = res.json()
```

```bash cURL theme={null}
curl "https://scrapebadger.com/v1/immobiliare/agencies/41235?market=it" \
  -H "X-API-Key: YOUR_API_KEY"
```

```json Response theme={null}
{
  "id": 41235,
  "type": "agency",
  "name": "Tecnocasa Milano Crescenzago",
  "url": "https://www.immobiliare.it/agenzie-immobiliari/41235/tecnocasa-milano/",
  "address": "Via Padova 130, 20127 Milano",
  "description": "Affiliato Tecnocasa attivo dal 2003 nella zona Cimiano-Crescenzago. Compravendite e locazioni residenziali, valutazioni gratuite.",
  "website": "https://milano-crescenzago.tecnocasa.it",
  "image": "https://pic.im-cdn.it/agency/41235/large.png",
  "is_paid": true,
  "partnership": "tecnocasa",
  "real_estate_ads": 48,
  "real_estate_sales": 312,
  "region": "Lombardia",
  "province": "Milano",
  "city": "Milano",
  "macrozone": "Cimiano, Crescenzago, Adriano",
  "latitude": 45.498,
  "longitude": 9.2301,
  "phones": ["+39 02 2846120", "+39 02 2846121"],
  "opening_hours": [
    "Mon-Fri 09:00-13:00, 14:30-19:00",
    "Sat 09:00-12:30"
  ],
  "agents": [
    {
      "id": 998877,
      "name": "Marco",
      "surname": "Rossi",
      "gender": "male",
      "thumbnail": "https://pic.im-cdn.it/agent/998877/thumb.jpg"
    },
    {
      "id": 998878,
      "name": "Giulia",
      "surname": "Bianchi",
      "gender": "female",
      "thumbnail": "https://pic.im-cdn.it/agent/998878/thumb.jpg"
    }
  ],
  "market": "it"
}
```

> [!NOTE]
>
> Each agency-profile request costs **8 credits**. Failed requests are not charged.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.