---
title: "GET /habitaclia/search"
method: GET
path: "/habitaclia/search"
tags: ["Habitaclia"]
---

# GET /habitaclia/search

`GET /habitaclia/search`

## Request

- Base URL: `https://scrappa.co/api`
- URL: `https://scrappa.co/api/habitaclia/search`
- Auth: API key in header `X-API-KEY`

## Query parameters

- `transaction_type` 'buy' | 'rent', required
- `property_type` 'flat' | 'house' | 'office' | 'garage' | 'building' | 'land', required
- `code` string, required
- `layer_id` integer, required
- `page` integer
- `page_size` integer
- `sort_by` 'relevance' | 'price_asc' | 'price_desc' | 'newest' | 'null', nullable
- `min_price` integer, nullable
- `max_price` integer, nullable
- `min_rooms` integer, nullable
- `min_bathrooms` integer, nullable
- `features[]` string[]
- `is_private` boolean, nullable

## Response `200`

- string

## Other responses

- `401`: Unauthorized - API key is missing or invalid
- `404`: The requested listing was not found. This response is not billable.
- `422`: A public parameter is invalid, including an unknown transaction_type, property_type or sort_by. This response is not billable.
- `503`: The service could not obtain a complete result from Habitaclia. This response is not billable.

---

[API](https://skmtc.dev/scrappa/apis/scrappa-api-documentation.md) · [All operations](https://skmtc.dev/scrappa/apis/scrappa-api-documentation/llms.txt) · [OpenAPI document](https://skmtc.dev/scrappa/apis/scrappa-api-documentation/revisions/2f4af6143d10?raw)
