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.
Run this endpoint
Endpoint
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.
string
Required
regions, provinces or districts. Example: districts.
example
integer
Optional
City id, required for type districts. Example: 13800324507779.
1234567890
string
Optional
it (default) or es.
US
Response Schema
Example response fields are illustrative; inspect the JSON before integrating.
Example response fields
Scan these fields before integrating.
data
meta
success
{
"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.
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"
}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
}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
}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.