Skip to content
Scrappa Get API key
Casa Sapo API 1 credit/request

Casa Sapo Locations API

GET https://scrappa.co/api/casa-sapo/locations

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.

Casa Sapo Locations API 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/casa-sapo/locations
Auth header
x-api-key
Cost
1 credit/request
query = coffee shops
Response preview
200 OK
{
    "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",
...

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.

query string Required

Place name, at least 2 characters, e.g. lisb.

Example value 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
JSON Response
200 OK
{
    "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.

404

HTTP 404

The listing, agency or location does not exist. This response is not billable.

422

HTTP 422

A parameter or filter is missing or invalid. This response is not billable.

502

HTTP 502

Casa Sapo answered a page that no longer matches the documented contract. This response is not billable.

503

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.