Look up Portuguese distritos, concelhos and freguesias by name. Each hit has its label, `slug`, `level` (distrito, concelho or freguesia) and the number of listings Casa Sapo reports for it. Use the `slug` as the `location` parameter of the search endpoint. A query without matches is a successful empty list. Casa Sapo publishes the content signal ai-train=no: do not use this data to train AI models.
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.
string
Required
Place name, at least 2 characters, e.g. lisb.
coffee shops
Response Schema
Example response fields are illustrative; inspect the JSON before integrating.
Example response fields
Scan these fields before integrating.
data
meta
success
{
"data": {
"locations": [
{
"slug": "lisboa",
"label": "Lisboa, Distrito de Lisboa",
"level": "concelho",
"concelho_slug": "lisboa",
"listing_count": 7839
},
{
"slug": "distrito.lisboa",
"label": "Distrito de Lisboa",
"level": "distrito",
"listing_count": 15483
}
]
},
"meta": {
"billable": true,
"endpoint_family": "locations"
},
"success": true
}
Errors
Handle these documented responses before retrying or showing customer-facing failures.
HTTP 404
The listing, agency or location does not exist. This response is not billable.
HTTP 422
A parameter or filter is missing or invalid. This response is not billable.
HTTP 502
Casa Sapo answered a page that no longer matches the documented contract. This response is not billable.
HTTP 503
Casa Sapo is temporarily unavailable. Retry the request. This response is not billable.
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.