Fotocasa property search

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

Homes and other property in Spain on Fotocasa with the site's filters: operation (buy, rent, share, holiday rental, rent-to-buy, transfer), property type, place, price, rooms, bathrooms, area, condition, new or second-hand, features (pool, terrace, lift, parking...), publication date and sort. Each result has id, link, type, operation, price and price drop, rooms, bathrooms, area, floor and other features, description, date, address with coordinates, photos with room type, the advertiser (agency name, logo, page and phone; a private seller's phone is left out) and new-development typologies. 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 in Spain (city, district, province...); the best match is used. Or give location_id. Example: Madrid
location_id string Combined place id from /fotocasa/v1/places (e.g. 724,14,28,173,0,28079,0,0,0).
operation buy | rent | share | holiday | rent_to_buy | transfer Operation. Example: buy
property_type homes | new_homes | garages | land | premises | offices | storage | buildings Property type. Example: homes
price_min number Minimum price (EUR).
price_max number Maximum price (EUR).
rooms_min integer Minimum bedrooms.
rooms_max integer Maximum bedrooms.
bathrooms_min integer Minimum bathrooms.
bathrooms_max integer Maximum bathrooms.
area_min number Minimum area (m²).
area_max number Maximum area (m²).
condition string Condition, comma-separated: new, almost_new, very_good, good, to_renovate, renovated.
construction new | second_hand New build or second-hand.
features string Required features, comma-separated: pool, terrace, lift, private_garage, garden, air_conditioning, balcony, storage_room, furnished, not_furnished, pets_allowed, sea_views, central_heating, porter, security, community_pool, equipped_kitchen, ...
published day | 2days | week | month Published within the last day, 2days, week or month.
rental long_term | temporary Rental length (rent only).
subtype_ids string Fotocasa property subtype ids, comma-separated (e.g. 1 flat, 6 penthouse...).
sort relevance | newest | price | price_m2 | area | rooms Sort order. Example: relevance
order asc | desc asc or desc.
limit integer Results per page, 1-36. Example: 30
page integer Page number, starting at 1. Pass next_page back as page; it is null on the last page. Example: 1

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

Example

curl "https://api.api.sh/fotocasa/v1/search?location=Madrid" \
  -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.