# Wikicasa Property Types API Documentation

Scrappa's `GET /api/wikicasa/property-types` lists the 34 Wikicasa property types.

## What you get

Each type has `id`, `key`, `name`, `group` (residential, commercial, land or agency), `parent` and `searchable`. The search accepts the types with `searchable` true, by `id` or `key`. The group types `case`, `commerciale` and `terreni` cover all residential, commercial or land property.

## Notes

The room-count shortcuts (monolocali to quadrilocali) and new constructions are not searchable types. Use `rooms_min` and `rooms_max` in the search instead.

- **Documentation:** [https://scrappa.co/docs/wikicasa-api/wikicasa_property_types](https://scrappa.co/docs/wikicasa-api/wikicasa_property_types)
- **API group:** Wikicasa API
- **Endpoint:** `GET https://scrappa.co/api/wikicasa/property-types`

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

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/wikicasa/property-types"
```

## Example response

```json
{
    "success": true,
    "data": {
        "property_types": [
            {
                "id": 5,
                "key": "appartamenti",
                "name": "Flats",
                "group": "residential",
                "parent": "case",
                "searchable": true
            }
        ]
    },
    "meta": {
        "endpoint_family": "property_types",
        "billable": true
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A query parameter is missing, unknown or unusable. Unknown parameters and unknown values are rejected, never ignored. Non-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)
