# Tecnocasa Agency Profile API Documentation

<p><strong>Tecnocasa Agency Profile API</strong> returns the address, phone, email, opening hours, coordinates, rating, review count, number of published ads, social links and team of one agency. The <code>search</code> block holds the city id, province and region that the agency listings route needs.</p><p>Notes: Pass <code>agency.profile_url</code> of a listing as <code>url</code>. Only addresses of the Tecnocasa Italy and Spain websites are accepted. Prices, areas and counts are numbers and the original text is kept in raw or label fields. A hidden price (for example Informazioni in agenzia) is <code>null</code>, never 0. A valid empty result is a successful, billable response; failed requests are never billed.</p>

- **Documentation:** [https://scrappa.co/docs/tecnocasa-api/tecnocasa_agency](https://scrappa.co/docs/tecnocasa-api/tecnocasa_agency)
- **API group:** Tecnocasa API
- **Endpoint:** `GET https://scrappa.co/api/tecnocasa/v1/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 |
| --- | --- | --- | --- |
| `url` | string | No | The agency.profile_url of a listing. Example: https://www.tecnocasa.it/agenzie/immobiliari+residenziali/milano/milano/mice0.html. |
| `country` | string | No | it (default) or es. Used with path. |
| `path` | string | No | Path of the agency page, ending in .html. Use it when url is not set. |

## Example response

```json
{
    "data": {
        "agency": {
            "id": "mice0",
            "name": "Agenzia Immobiliare Tecnocasa Milano Cermenate",
            "team": [
                {
                    "name": "Simone Criscuoli",
                    "role": "Responsabile",
                    "photo": "https://cdn-media.medialabtc.it/it/agencies/mice0/images/team_member/production/114128.jpeg"
                }
            ],
            "email": "mice0@tecnocasa.it",
            "image": "https://cdn-media.medialabtc.it/it/agencies/mice0/images/agency_exterior/production/106.jpeg",
            "phone": "0236705290",
            "mobile": null,
            "rating": 4.7,
            "search": {
                "region": "lom",
                "city_id": 13800324507779,
                "province": "MI"
            },
            "social": {
                "facebook": "https://www.facebook.com/milano62.affiliato.tecnocasa",
                "instagram": "https://www.instagram.com/tecnocasa_milano_valla"
            },
            "address": "Via Lorenzo Valla, 25 20141 Milano (MI)",
            "country": "it",
            "website": "https://milano62.tecnocasa.it",
            "district": "Cermenate, Torretta, Medeghino",
            "latitude": 45.4338,
            "whatsapp": "+390236705290",
            "zip_code": "20141",
            "longitude": 9.18526,
            "profile_url": "https://www.tecnocasa.it/agenzie/immobiliari+residenziali/milano/milano/mice0.html",
            "review_count": 112,
            "opening_hours": "luned\u00ec: 09:00-13:00 / 14:30-19:00, marted\u00ec: 09:00-13:00 / 14:30-19:00, mercoled\u00ec: 09:00-13:00 / 14:30-19:00, gioved\u00ec: 09:00-13:00 / 14:30-19:00, venerd\u00ec: 09:00-13:00 / 14:30-19:00, sabato: 09:00-13:00, domenica: Chiuso",
            "published_count": 10
        }
    },
    "meta": {
        "billable": true,
        "endpoint_family": "agency"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A required parameter or a value is invalid. This response is not billable. |
| 404 | Not Found | The requested page does not exist. This response is not billable. |
| 503 | Upstream Unavailable | Tecnocasa could not be reached. This response is not billable and is retryable. |
| 503 | Unexpected Upstream Data | Tecnocasa returned data in an unexpected shape. This response is not billable and is retryable. |

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