POST /api/fotocasa/agencies/listings
Price: 20 credits
Get a Fotocasa real estate agency profile and its published listings by numeric agency client id. Returns the agency profile (name, contact details, address, coordinates, logo, quality seal, counters) together with the agency's property listings (same cards as the property search).
Fetch a single Fotocasa agency (inmobiliaria) and its listings by numeric client_id (obtained from fotocasa/agencies/search). transaction selects comprar (for sale) or alquiler (for rent) listings; min_price/max_price, min_surface/max_surface, min_rooms/max_rooms and min_bathrooms narrow the listings. Returns one item with agency (client_id, name, alias, description, email, phones, web, web_domain, address, address_url, town, province, zip_code, coordinates, image, has_quality_seal, agent_count, franchisee_count, created_at, publisher_id) and listings (property cards: id, url, property_type, transaction_type, price, price_per_m2, surface, room_count, bathroom_count, floor, address, images, ...).
access-token string requiredtimeout integer — Max scrapping execution timeout (in seconds) (default: 300; min: 20; max: 1500)client_id string required — Numeric Fotocasa agency client id (examples: "9202765062251", "900140000987"; minLength: 1)transaction string — Transaction type of the listings (default: "comprar"; one of: "comprar", "alquiler")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)count integer required — Max number of agency listings to return (min: 1)@type string (default: "FotocasaAgencyListings")agency object nullable@type string (default: "FotocasaAgencyProfile")client_id string requiredname string nullablealias string nullabledescription string nullableemail string nullablephones array (default: [])web string nullableweb_domain string nullableaddress string nullableaddress_url string nullabletown string nullableprovince string nullablezip_code string nullablecoordinates object nullable@type string (default: "FotocasaCoordinates")latitude number nullablelongitude number nullableimage string nullablehas_quality_seal boolean nullableagent_count integer nullablefranchisee_count integer nullablecreated_at string nullablepublisher_id string nullablelistings array (default: [])@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 — Agency not found (well-formed but nonexistent client id) 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.