Skip to content
Scrappa Get API key
Tecnocasa API 1 credit/request

Tecnocasa Geo Lists API Documentation

GET https://scrappa.co/api/tecnocasa/v1/geo

Tecnocasa Geo Lists API 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.

Notes: city_id is required for type districts. 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 null, never 0. A valid empty result is a successful, billable response; failed requests are never billed.

Tecnocasa Geo Lists API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/tecnocasa/v1/geo
Auth header
x-api-key
Cost
1 credit/request
type = example
Response preview
200 OK
{
    "data": {
        "type": "districts",
        "total": 2,
        "city_id": 13800324507779,
        "country": "it",
        "districts": [
            {
                "id": 10068,
                "name": "Abbiategrasso, Chiesarossa",
                "slug": "abbiategrasso-chiesarossa"
            },
            {
                "id": 10072,
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

1 required parameter needed before sending a request.

2 optional filters available.

type string Required

regions, provinces or districts. Example: districts.

Example value example
city_id integer Optional

City id, required for type districts. Example: 13800324507779.

Example value 1234567890
country string Optional

it (default) or es.

Example value US

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

data meta success
JSON Response
200 OK
{
    "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

Handle these documented responses before retrying or showing customer-facing failures.

422

Validation Error

A required parameter or a value is invalid. This response is not billable.

{
    "errors": {
        "field": [
            "The field is invalid."
        ]
    },
    "message": "The request validation failed"
}
404

Not Found

The requested page does not exist. This response is not billable.

{
    "meta": {
        "billable": false,
        "retryable": false,
        "endpoint_family": "geo"
    },
    "error": {
        "code": "NOT_FOUND",
        "message": "The requested resource was not found."
    },
    "success": false
}
503

Upstream Unavailable

Tecnocasa could not be reached. This response is not billable and is retryable.

{
    "meta": {
        "billable": false,
        "retryable": true,
        "endpoint_family": "geo"
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "Tecnocasa could not be reached. Please retry shortly."
    },
    "success": false
}
503

Unexpected Upstream Data

Tecnocasa returned data in an unexpected shape. This response is not billable and is retryable.

{
    "meta": {
        "billable": false,
        "retryable": true,
        "endpoint_family": "geo"
    },
    "error": {
        "code": "INVALID_UPSTREAM_SHAPE",
        "message": "Tecnocasa returned data in an unexpected shape. Please retry shortly."
    },
    "success": false
}

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.