# Casa Sapo Listing Detail API

<p>Retrieve one Casa Sapo listing by its id: title, transaction, typology, bedrooms, bathrooms, price, price drop, useful and gross area, year built, licence, reference, energy certificate, floor, views, the publication label (and the date when Casa Sapo shows one), location with coordinates, the full description, all photos, the open list of details and features, room areas and the advertiser (agency name, licence, company, address, schedule, website and profile url, or only the type `private`). Telephone numbers and private seller names are never returned. Removed or unknown ids answer 404 and are not billed. Casa Sapo publishes the content signal ai-train=no: do not use this data to train AI models.</p>

- **Documentation:** [https://scrappa.co/docs/casa-sapo-api/casa_sapo_listing](https://scrappa.co/docs/casa-sapo-api/casa_sapo_listing)
- **API group:** Casa Sapo API
- **Endpoint:** `GET https://scrappa.co/api/casa-sapo/listing`

## 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 |
| --- | --- | --- | --- |
| `id` | string | Yes | Casa Sapo listing id (a UUID), e.g. 94d94722-10d3-11f1-9e61-060000000056. Take it from the id field of a search result. |

## Example response

```json
{
    "data": {
        "id": "94d94722-10d3-11f1-9e61-060000000056",
        "url": "https://casa.sapo.pt/comprar-apartamento-t3-lisboa-santo-antonio-94d94722-10d3-11f1-9e61-060000000056.html",
        "tags": [
            "Com Garagem"
        ],
        "floor": "4",
        "g3pid": "1095490",
        "price": 1880000,
        "title": "Apartamento T3 para comprar em Lisboa",
        "views": 9466,
        "clicks": 72,
        "images": [
            "https://media.casasapo.pt/Z1440x1080/OAYES/S5/C5773/P29462664/Tphoto/ID8890c101-0000-0500-0000-00001885c712.JPG"
        ],
        "area_m2": 124,
        "details": [
            {
                "label": "Estado",
                "value": "Recuperado"
            },
            {
                "label": "\u00c1rea \u00fatil",
                "value": "124m\u00b2"
            }
        ],
        "bedrooms": 3,
        "category": "Apartamentos",
        "currency": "EUR",
        "features": [
            {
                "group": "Divis\u00f5es",
                "items": [
                    {
                        "label": "Casa(s) de Banho",
                        "value": "3"
                    },
                    {
                        "label": "Total quarto(s)",
                        "value": "3"
                    }
                ]
            }
        ],
        "location": {
            "text": "Santo Ant\u00f3nio, Lisboa, Distrito de Lisboa",
            "country": "PT",
            "concelho": "Lisboa",
            "distrito": "Distrito de Lisboa",
            "latitude": 38.7235,
            "freguesia": "Santo Ant\u00f3nio",
            "longitude": -9.15905
        },
        "typology": "T3",
        "bathrooms": 3,
        "condition": "Recuperado",
        "has_video": true,
        "reference": "CasaSAPO_APTPPTM001",
        "advertiser": {
            "id": "14457",
            "name": "IMOJOY Real Estate",
            "slug": "imojoy-real-estate",
            "type": "agency",
            "address": "Rua dos Sobreiros, 25 C, Costa da Guia, Cascais",
            "company": "Ant\u00f3nio Silvestre, Media\u00e7\u00e3o Imobili\u00e1ria Lda",
            "license": "12689",
            "website": "http://imojoy.pt",
            "schedule": "2\u00aa feira a S\u00e1bado das 10h00 \u00e0s 19h00",
            "profile_url": "https://casa.sapo.pt/agencia/imojoy-real-estate/?cl=14457&sys=5"
        },
        "price_drop": {
            "percentage": -14.55,
            "previous_price": 2200000,
            "previous_price_text": "2.200.000 \u20ac"
        },
        "price_text": "1.880.000 \u20ac",
        "room_areas": [
            {
                "room": "Quarto",
                "area_m2": 27
            },
            {
                "room": "Sala",
                "area_m2": 47
            }
        ],
        "year_built": 1980,
        "description": "Apresentamos este exclusivo apartamento T3, totalmente reabilitado, situado na prestigiada Rua das Amoreiras, uma das localiza\u00e7\u00f5es mais valorizadas de Lisboa.",
        "photo_count": 31,
        "seller_type": "agency",
        "transaction": "sale",
        "area_gross_m2": 141,
        "property_type": "Apartamento T3",
        "housing_license": "94",
        "published_label": "h\u00e1 mais de um m\u00eas",
        "has_virtual_tour": true,
        "energy_certificate": "B-"
    },
    "meta": {
        "billable": true,
        "endpoint_family": "listing"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
|  | The listing, agency or location does not exist. This response is not billable. |  |
|  | A parameter or filter is missing or invalid. This response is not billable. |  |
|  | Casa Sapo answered a page that no longer matches the documented contract. This response is not billable. |  |
|  | Casa Sapo is temporarily unavailable. Retry the request. This response is not billable. |  |

## 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)
