POST /api/fotocasa/properties/search
Price: 20 credits
Search Fotocasa real estate properties by location (city, municipality or neighbourhood) with transaction (comprar/alquiler), property type, an extra feature or situation filter, publisher type, price, surface, room and bathroom filters and ordering. Returns property cards with property and transaction type, price, price per m², surface, rooms, bathrooms, floor, condition, antiquity, orientation, furnished flag, amenity features, description, publication date, flags, address, photos, the property detail url and the listing agency.
Search Fotocasa properties in a location. location is a city or municipality ('Madrid', 'Barcelona'); transaction selects comprar (for sale) or alquiler (for rent); property_type filters the dwelling type (pisos, casas, chalets, aticos, ...); feature applies one extra feature or situation (terraza, ascensor, piscina, obra-nueva, lujo, ...); owner filters particular vs all; sort orders by price, surface or date; min_price/max_price, min_surface/max_surface, min_rooms/max_rooms and min_bathrooms narrow the results; bank_only restricts to bank-owned properties. Each result has id, real_estate_ad_id, url, property_type, transaction_type, price, price_drop, price_per_m2, surface, room_count, bathroom_count, floor, condition, antiquity, orientation, is_furnished, features (amenity keys such as elevator, air_conditioner, parking, terrace, storage_room, balcony), description, created_at, flags (is_new, is_new_construction, is_occupied, is_auctioned, is_bare_ownership, is_rented_with_tenants, is_premium, has_video, has_virtual_tour, has_quality_seal), address, images and agency (client_id, name, type, url, publisher_id).
access-token string requiredtimeout integer — Max scrapping execution timeout (in seconds) (default: 300; min: 20; max: 1500)location string required — City, municipality or neighbourhood to search in (examples: "Madrid", "Barcelona", "Valencia"; minLength: 1)transaction string — Transaction type (default: "comprar"; one of: "comprar", "alquiler")property_type string — Property type filter (default: "viviendas"; one of: "viviendas", "pisos", "apartamentos", "aticos", "duplex", "estudios", "lofts", "plantas-intermedias", "bajos", "chalets", "adosados", "casas-rurales", "locales", "oficinas", "garajes", "trasteros", "naves-industriales", "edificios", "terrenos", "terrenos-residenciales", "terrenos-urbanizables", "terrenos-industriales")feature string nullable — Single extra feature or situation filter (one of: "obra-nueva", "terraza", "ascensor", "piscina", "jardin", "amueblado", "no-amueblado", "subasta", "nuda-propiedad", "ocupado", "con-inquilino", "con-ayudas", "chimenea", "vistas-al-mar", "en-primera-linea-de-mar", "chollo", "aisladas", "lujo", "modernas", "campo", "prefabricadas", "unifamiliares", "villa", "vpo")owner string — Publisher type filter (default: "todos"; one of: "todos", "particular")sort string — Result ordering (default: "relevancia"; one of: "relevancia", "recientes", "precio-asc", "precio-desc", "superficie-desc", "superficie-asc")min_price integer nullable — Minimum price filter (min: 0)max_price integer nullable — Maximum price filter (min: 0)min_surface integer nullable — Minimum surface filter in m² (min: 0)max_surface integer nullable — Maximum surface filter in m² (min: 0)min_rooms integer nullable — Minimum number of rooms filter (min: 0)max_rooms integer nullable — Maximum number of rooms filter (min: 0)min_bathrooms integer nullable — Minimum number of bathrooms filter (min: 0)bank_only boolean — Only properties from banks (default: false)count integer required — Max number of results to return (min: 1)@type string (default: "FotocasaPropertyCard")id string requiredreal_estate_ad_id string nullableurl string nullableproperty_type string nullabletransaction_type string nullableprice integer nullableprice_drop integer nullableprice_per_m2 number nullablesurface integer nullableroom_count integer nullablebathroom_count integer nullablefloor integer nullablecondition string nullableantiquity string nullableorientation string nullableis_furnished boolean nullabledescription string nullablecreated_at string nullableis_new boolean nullableis_new_construction boolean nullableis_occupied boolean nullableis_auctioned boolean nullableis_bare_ownership boolean nullableis_rented_with_tenants boolean nullableis_premium boolean nullablehas_video boolean nullablehas_virtual_tour boolean nullablehas_quality_seal boolean nullablefeatures array (default: [])address object nullable@type string (default: "FotocasaAddress")street string nullablestreet_number integer nullableneighborhood string nullabledistrict string nullablemunicipality string nullablelocality string nullableregion string nullableprovince string nullableautonomous_community string nullablecountry string nullablezip_code string nullablecoordinates object nullable@type string (default: "FotocasaCoordinates")latitude number nullablelongitude number nullableimages array (default: [])agency object nullable@type string (default: "FotocasaCardAgency")client_id string nullablename string nullabletype string nullableurl string nullablepublisher_id string nullable422 — The request body did not validate Check the fields against this schema. A URN with the wrong prefix is the most common cause.408 — The request ran past its time limit Raise `timeout` in the request body, up to the maximum this endpoint documents. Lowering `count` or turning off the `with_*` flags also helps, because less work finishes sooner.412 — Location could not be resolved Retrying will not help: either the entity does not exist, or the input points at a different one.429 — Too many requests: a rate limit or a usage window is exhausted When the response carries an X-Retry-After header, wait that many seconds and retry: the same number is in the body as `detail.retry_after`, and the limit clears once that window passes. The message in the body names the limit that was hit.500 — Something broke on our side Retrying will not help. If it keeps happening, send us the X-Request-ID from the response headers.529 — Rate limit reached, or the endpoint is overloaded Wait at least 30 seconds, then retry.X-Error — Error message text (present only on error)X-Request-ID — Unique request identifierX-Execution-Time — Execution time in secondsX-Result-Count — How many records the body carries. 0 means an empty result, which is a normal answer and not by itself an error. A non-zero count can come back together with X-Error when the failure happened partway through — read this header and X-Error independently.X-Total-Available-Results — How many records exist for this query, when the endpoint can say. On a `dry_run` request this is the answer and the body is empty. It saturates: the endpoint's documented maximum means 'at least that many', any smaller number is exact.X-Warning — Present when the request body carried keys this endpoint does not document. They were ignored, so any filter you meant to apply through them did not apply. Check the spelling against this schema and retry.X-Retry-After — Seconds to wait before retrying. Present only on 429.