# Tecnocasa Geo Lists API Documentation

<p><strong>Tecnocasa Geo Lists API</strong> returns reference lists: the regions of a country, its provinces with their region, or the districts and quarters of a city. The lists are cached for an hour.</p><p>Notes: <code>city_id</code> is required for type <code>districts</code>. 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_geo](https://scrappa.co/docs/tecnocasa-api/tecnocasa_geo)
- **API group:** Tecnocasa API
- **Endpoint:** `GET https://scrappa.co/api/tecnocasa/v1/geo`

## 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 |
| --- | --- | --- | --- |
| `type` | string | Yes | regions, provinces or districts. Example: districts. |
| `city_id` | integer | No | City id, required for type districts. Example: 13800324507779. |
| `country` | string | No | it (default) or es. |

## Example response

```json
{
    "data": {
        "type": "districts",
        "total": 2,
        "city_id": 13800324507779,
        "country": "it",
        "districts": [
            {
                "id": 10068,
                "name": "Abbiategrasso, Chiesarossa",
                "slug": "abbiategrasso-chiesarossa"
            },
            {
                "id": 10072,
                "name": "Affori, Bovisa",
                "slug": "affori-bovisa"
            }
        ]
    },
    "meta": {
        "billable": true,
        "endpoint_family": "geo"
    },
    "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)
