APIs / Real estate / Habitaclia

1 credit per call4 endpoints25 datapointsChecked working 6 Dec 2026

Habitaclia API

Habitaclia API for property search, listing details, location lookup and publisher listings as JSON. 4 endpoints, 1 credit per successful call.

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.

Sample data

What one call returns

A recorded run of search: the fields and shapes you will get, shortened to 3 items.

#ad_idstringlegacy_idstringurlurlreferencestringdescriptionstringproperty_typestringproperty_subtypestringtransaction_typestringpriceintegercurrencystringhide_pricebooleanroomsintegerbathroomsintegerbuilt_surfaceintegerstatestringextrasobjectenergy_certificateobjectmultimediaobjectcoordinatesobjectlocationobjectpublisherobjectprice_historyobject[]created_atstringupdated_atstringindexed_atstring
19a6f014b-5fc4-45f7-b3ee-6411985a003di500006060695https://www.habitaclia.com/i500006060695.htm6411985a003dtercer 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 flatflatbuy380EURfalse42108PUBLISHED{1 fields}{1 fields}{1 fields}{2 fields}{2 fields}{2 fields}[1 item]2026-11-07T17:17:18Z2026-11-07T21:35:07Z2026-11-07T21:35:07Z
25f6a57a2-f588-47e8-8182-588957475340i41124000089339https://www.habitaclia.com/i41124000089339.htmCL-00729-0001Oportunidad 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. Piso de 76 m² ubicado en Valencia. Se trata de un piso de 76 m² …flatflatbuy24600EURfalse2176PUBLISHED{1 fields}{1 fields}{1 fields}{2 fields}{2 fields}{9 fields}[2 items]2025-01-09T08:37:37Z2026-11-11T15:17:13Z2026-11-11T15:17:13Z
36af9219b-e0ef-4c54-8f55-4be4ac3407d8i49646000039010https://www.habitaclia.com/i49646000039010.htmCL-00729-0001Oportunidad 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. Piso de 76 m² ubicado en Valencia. Se trata de un piso de 76 m² …flatflatbuy24600EURfalse2176PUBLISHED{1 fields}{1 fields}{1 fields}{2 fields}{2 fields}{8 fields}[2 items]2025-01-09T05:43:48Z2026-10-30T08:25:49Z2026-11-05T13:46:56Z

Recorded 12 Nov 2026 · 3 items shown · 25 datapoints per itemGET /v1/habitaclia/search?transaction_type=buy&property_type=flat&code=46250&layer_id=20&page=1&page_size=5&sort_by=price_asc

25 datapoints

Identity

  • ad_idstring
  • legacy_idstring
  • property_typestring
  • property_subtypestring
  • transaction_typestring

Contact

  • urlurl

Location

  • statestring
  • locationobject

Price

  • priceinteger
  • currencystring
  • hide_priceboolean
  • price_historyobject[]

Other

  • referencestring
  • descriptionstring
  • roomsinteger
  • bathroomsinteger
  • built_surfaceinteger
  • extrasobject
  • energy_certificateobject
  • multimediaobject
  • coordinatesobject
  • publisherobject
  • created_atstring
  • updated_atstring
  • indexed_atstring

Playground

Run this API

cURLshell
curl "https://api.perceptlayer.com/v1/habitaclia/search?transaction_type=buy&property_type=flat&code=46250&layer_id=20&page=1&page_size=5&sort_by=price_asc" \
  -H "X-API-Key: $API_KEY"

Habitaclia · 4 endpoints

Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

EndpointRequired parametersReturnsCost
GET/v1/habitaclia/listing
id
ad_idlegacy_idurlreferencedescriptionproperty_type+21 more
1 credit
GET/v1/habitaclia/locations
queryproperty_type+1 optional
codenamelayer_idcount
1 credit
GET/v1/habitaclia/publisher
publisher_id+2 optional
ad_idlegacy_idurlreferencetitledescription+21 more
1 credit
GET/v1/habitaclia/search
transaction_typeproperty_typecodelayer_id+9 optional
ad_idlegacy_idurlreferencedescriptionproperty_type+21 more
1 credit

Overview

About the Habitaclia API

What you can get

The Habitaclia API returns Habitaclia property data as JSON through 4 endpoints.

  • Search: search requires transaction_type (buy or rent), property_type (flat, house, office, garage, building or land), a location code and a layer_id. Filter with min_price, max_price, min_rooms, min_bathrooms, is_private and features[] (pool, terrace, elevator, furnished, unfurnished, private_parking, private_garden or nearby_public_transport). Order with sort_by: relevance, price_asc, price_desc or newest. Page with page and page_size.
  • Listings: listing takes a listing id.
  • Locations: locations takes a place query (up to 120 characters) and a property_type, with an optional transaction_type.
  • Publishers: publisher takes a publisher_id, with page and page_size.

How a call works

Search flats for sale, cheapest first: GET /v1/habitaclia/search?transaction_type=buy&property_type=flat&code=46250&layer_id=20&page=1&page_size=5&sort_by=price_asc with your key in the X-API-Key header. Page with page and page_size. For a single property, call listing with its id, for example GET /v1/habitaclia/listing?id=82d1e398-a167-465a-bfe9-465afb9197d5. Every successful call costs 1 credit; failed calls cost nothing.

Real estateJSONRESTMCP

More real estate APIs

Use cases

Track asking prices for flats or houses in an area, sorted by `price_asc` or `price_desc`

Use the Habitaclia API to track asking prices for flats or houses in an area, sorted by `price_asc` or `price_desc`

Watch for new listings with `sort_by=newest`

Use the Habitaclia API to watch for new listings with `sort_by=newest`

Compare supply to buy and to rent for the same property type

Use the Habitaclia API to compare supply to buy and to rent for the same property type

Filter stock by features such as a terrace, a pool or private parking

Use the Habitaclia API to filter stock by features such as a terrace, a pool or private parking

FAQ

Questions

Do I need a Habitaclia API key?

No. You call this Habitaclia API with your Perceptlayer key in the `X-API-Key` header, with no Habitaclia account.

How much does the Habitaclia API cost?

Each successful call costs one credit. New accounts get free credits to start, and credit packs bring the price down as you scale.

What format are responses in?

Every endpoint returns JSON, with no HTML parsing on your side.

Can I search rentals as well as sales?

Yes. Set `transaction_type` to rent on `search`, or to buy for properties for sale. `locations` takes the same `transaction_type` values.

Is this the official Habitaclia API?

No. Perceptlayer is an independent service and is not affiliated with Habitaclia. It returns Habitaclia data as JSON with a Perceptlayer key, so there is no Habitaclia developer account, app review or partner approval to get first. It only reads data: if Habitaclia has an official API and you need to act on your own Habitaclia account, such as posting, managing orders or reading private data, use that one.

Should I build a Habitaclia scraper instead?

You can, but a Habitaclia scraper is code you maintain: page changes break it, requests get blocked, and Habitaclia's terms govern how you collect data. The Habitaclia API gives you 4 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

Try the Habitaclia API with 100 free credits

No credit card. Failed calls are never billed.