habitaclia property search

GET https://api.api.sh/habitaclia/v1/search
1 credit / call real estate try it in the playground →

Homes, offices, commercial premises, industrial buildings, land, garages and buildings for sale, rent or transfer, and new homes, on habitaclia (Spain), with the site's filters: place, price, area, rooms, bathrooms, features, property subtypes, private sellers only, bank-owned, new-build, and sorts. Each result has id, link, reference, title, transaction, property type and subtype, price, price history and change, price per m², rooms, bathrooms, area, floor, year built, condition, features (present and absent), energy rating, address, ZIP, city, district, province, coordinates, photos, videos, virtual tours, publication and update dates, and the agency with its business details (name, legal name, logo, website, phone, e-mail, address, registrations). A private seller is shown as {private: true} with no name or contact. Pass next_page back as page; null on the last page.

Every response includes credits_used: the credits this call cost.

Parameters

nametypedescription
location string Place name (city, district, province...); the best match is used. Or pass location_code. Example: Barcelona
location_code string Place code from /habitaclia/v1/places (instead of location).
location_level neighbourhood | country | autonomous_community | province | region | area | municipality | locality | district Level of location_code.
transaction buy | rent | transfer | new_homes Transaction. Example: buy
property_type homes | offices | premises | industrial | land | garages | buildings Property type. Example: homes
price_min number Minimum price (EUR).
price_max number Maximum price (EUR).
area_min number Minimum built area (land area for land), m².
area_max number Maximum built area (land area for land), m².
rooms_min integer Minimum rooms.
bathrooms_min integer Minimum bathrooms.
features string Features, comma-separated, e.g. ELEVATOR, TERRACE, POOL, PRIVATE_PARKING, PRIVATE_GARDEN, AIR_CONDITIONER, FURNISHED, UNFURNISHED, STORAGE_ROOM, BALCONY, NEARBY_PUBLIC_TRANSPORT.
property_subtype string Subtypes, comma-separated, e.g. FLAT, APARTMENT, PENTHOUSE, DUPLEX, GROUND_FLOOR, STUDIO, LOFT, CHALET, TERRACED_HOUSE, PAIRED_HOUSE, RUSTIC_HOUSE.
private_only boolean true: private sellers only.
bank_owned boolean true: bank-owned property only.
new_build boolean true: new-build only; false: resale only.
agency_id string Only this agency's listings (agency.id of a result).
sort relevance | newest | price_asc | price_desc | largest | smallest | price_m2_asc | price_drop Sort order. Example: relevance
limit integer Results per page (1-100, default 30).
page integer Results page (1 = first). Pass next_page back here.

Every endpoint also takes fresh, raw, fields (see lean responses and caching).

Example

curl "https://api.api.sh/habitaclia/v1/search?location=Barcelona" \
  -H "x-api-key: $APISH_KEY"

Response

A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).

The fastest way to see the full response is the playground: it runs this endpoint with your account and shows the exact JSON.