APIs / Habitaclia / Search
Habitaclia: Search
Search from Habitaclia as JSON. 1 credit per successful call.
GET /v1/habitaclia/search
Parameters
Send parameters in the query string.
| Parameter | Type | Required | Allowed values |
|---|---|---|---|
transaction_type | string | Required | buy, rent |
property_type | string | Required | flat, house, office, garage, building, land |
code | string | Required | Up to 32 characters |
layer_id | integer | Required | Any |
page | integer | Optional | Any |
page_size | integer | Optional | Any |
sort_by | string | Optional | relevance, price_asc, price_desc, newest |
min_price | integer | Optional | Any |
max_price | integer | Optional | Any |
min_rooms | integer | Optional | Any |
min_bathrooms | integer | Optional | Any |
features[] | list of string | Optional | pool, terrace, elevator, furnished, unfurnished, private_parking, private_garden, nearby_public_transport |
is_private | boolean | Optional | Any |
Example request
Habitaclia
GET/v1/habitaclia/search?transaction_type=buy&property_type=flat&code=46250&layer_id=20&page=1&page_size=5&sort_by=price_asc
{
"success": true,
"data": [
{
"ad_id": "9a6f014b-5fc4-45f7-b3ee-6411985a003d",
"legacy_id": "i500006060695",
"url": "https://www.habitaclia.com/i500006060695.htm",
"reference": "6411985a003d",
"description": "tercer piso, muy bien iluminado, plaza de garaje grande al lado del ascensor, doble ventana toda la casa , armarios empotrados ,muy cerca de Mercadona, Consum,economic, metro ,autobús ,hospital ,al lado del bulevar ",
"property_type": "flat",
"property_subtype": "flat",
"transaction_type": "buy",
"price": 380,
"currency": "EUR",
"hide_price": false,
"rooms": 4,
"bathrooms": 2,
"built_surface": 108,
"state": "PUBLISHED",
"extras": {
"has": [
"private_parking",
"elevator",
"air_conditioner"
]
},
"energy_certificate": {
"status": "PENDING"
},
"multimedia": {
"images": [
{
"url": "https://static.fotocasa.es/images/anuncio/2026/11/07/191334813/5051544081.jpg?rule=original"
},
{
"url": "https://static.fotocasa.es/images/anuncio/2026/11/07/191334813/5051544082.jpg?rule=original"
},
{
"url": "https://static.fotocasa.es/images/anuncio/2026/11/07/191334813/5051544092.jpg?rule=original"
}
]
},
"coordinates": {
"lat": 39.45638671752614,
"lon": -0.39303045719861984
},
"location": {
"address": {
"name": "Carrer de Campos Crespo",
"number": "12",
"zip_code": "46017",
"city": "Valencia Capital",
"province": "Valencia",
"country": "España"
},
"visibility": "EXACT"
},
"publisher": {
"id": "2866df1e-0aa9-4f69-a0c9-6d6abae89cb0",
"is_private": true
},
"price_history": [
{
"price": 380,
"date": "2026-11-07T17:17:18Z"
}
],
"created_at": "2026-11-07T17:17:18Z",
"updated_at": "2026-11-07T21:35:07Z",
"indexed_at": "2026-11-07T21:35:07Z"
},
{
"ad_id": "5f6a57a2-f588-47e8-8182-588957475340",
"legacy_id": "i41124000089339",
"url": "https://www.habitaclia.com/i41124000089339.htm",
"reference": "CL-00729-0001",
"title": "Solvia Inmobiliaria Piso Valencia",
"description": "Oportunidad sólo para inversores. El activo se encuentra ocupado por persona sin justo título. Debido al estado ocupacional del activo, no se pueden realizar visitas al mismo.\nPiso de 76 m² ubicado en Valencia. Se trata de un piso de 76 m² …",
"property_type": "flat",
"property_subtype": "flat",
"transaction_type": "buy",
"price": 24600,
"currency": "EUR",
"hide_price": false,
"rooms": 2,
"bathrooms": 1,
"built_surface": 76,
"state": "PUBLISHED",
"extras": {
"has": [
"elevator"
]
},
"energy_certificate": {
"status": "PENDING"
},
"multimedia": {
"images": [
{
"url": "https://static.fotocasa.es/images/ads/c04b7d61-6e12-416f-b735-5927cc56b565?rule=original"
}
]
},
"coordinates": {
"lat": 39.4972840739075,
"lon": -0.37428602924467214
},
"location": {
"address": {
"name": "Pz. Músico Espí",
"zip_code": "46019",
"city": "Valencia Capital",
"province": "Valencia",
"country": "España"
},
"visibility": "STREET"
},
"publisher": {
"id": "aeedbd0c-f8de-460e-a068-20df3d196f3f",
"name": "Solvia Inmobiliaria",
"trade_name": "Solvia Inmobiliaria",
"phone": "+34917940300",
"email": "comercial@solvia.es",
"website": "http://www.solvia.es/",
"logo": "https://static.fotocasa.es/images/client/9202768697010/682301-20220602115512.jpg?rule=original",
"minisite_slug": "solvia-inmobiliaria-2",
"is_private": false
},
"price_history": [
{
"price": 64400,
"date": "2026-04-21T08:53:37Z"
},
{
"price": 24600,
"date": "2026-08-17T06:58:23Z"
}
],
"dynamic_features": [
"is_occupied"
],
"created_at": "2025-01-09T08:37:37Z",
"updated_at": "2026-11-11T15:17:13Z",
"indexed_at": "2026-11-11T15:17:13Z"
},
{
"ad_id": "6af9219b-e0ef-4c54-8f55-4be4ac3407d8",
"legacy_id": "i49646000039010",
"url": "https://www.habitaclia.com/i49646000039010.htm",
"reference": "CL-00729-0001",
"title": "Solvia Inmobiliaria Piso Valencia",
"description": "Oportunidad sólo para inversores. El activo se encuentra ocupado por persona sin justo título. Debido al estado ocupacional del activo, no se pueden realizar visitas al mismo.\nPiso de 76 m² ubicado en Valencia. Se trata de un piso de 76 m² …",
"property_type": "flat",
"property_subtype": "flat",
"transaction_type": "buy",
"price": 24600,
"currency": "EUR",
"hide_price": false,
"rooms": 2,
"bathrooms": 1,
"built_surface": 76,
"state": "PUBLISHED",
"extras": {
"has": [
"elevator"
]
},
"energy_certificate": {
"status": "PENDING"
},
"multimedia": {
"images": [
{
"url": "https://static.fotocasa.es/images/ads/af5075f7-8f9c-482a-be82-c39e5801486c?rule=original"
}
]
},
"coordinates": {
"lat": 39.49715527189918,
"lon": -0.374405418874062
},
"location": {
"address": {
"name": "Pz. Músico Espí",
"zip_code": "46019",
"city": "Valencia Capital",
"province": "Valencia",
"country": "España"
},
"visibility": "STREET"
},
"publisher": {
"id": "6e2cd6de-dd6f-4d04-a87b-7cd10a19147d",
"name": "Solvia Servicios Inmobiliarios",
"trade_name": "Solvia inmobiliaria",
"phone": "+34917936298",
"email": "comercial@solvia.es",
"logo": "https://static.fotocasa.es/images/client/9202771869706/719625-20240116115343.jpg?rule=original",
"minisite_slug": "solvia-inmobiliaria",
"is_private": false
},
"price_history": [
{
"price": 64400,
"date": "2026-04-21T06:21:55Z"
},
{
"price": 24600,
"date": "2026-08-17T04:23:22Z"
}
],
"dynamic_features": [
"is_occupied"
],
"created_at": "2025-01-09T05:43:48Z",
"updated_at": "2026-10-30T08:25:49Z",
"indexed_at": "2026-11-05T13:46:56Z"
}
],
"meta": {
"endpoint_family": "search",
"duration_ms": 617,
"page": 1,
"page_size": 5,
"total_count": 3878,
"has_more": true
}
}200 OKJSONX-Credits-Used: 1
Recorded 12 Nov 2026 and shortened.
Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.
Response fields
Each item in data has these 27 fields, read from a recorded call that returned 30 items. The recording leaves out fields that were empty, so a live call can return more.
| Field | Type |
|---|---|
ad_id | string |
legacy_id | string |
url | url |
reference | string |
description | string |
property_type | string |
property_subtype | string |
transaction_type | string |
price | integer |
currency | string |
hide_price | boolean |
rooms | integer |
bathrooms | integer |
built_surface | integer |
state | string |
extras | object |
energy_certificate | object |
multimedia | object |
coordinates | object |
location | object |
publisher | object |
price_history | object[] |
created_at | string |
updated_at | string |
indexed_at | string |
title | string |
dynamic_features | string[] |