{"openapi":"3.0.0","info":{"title":"Idealista Spain Italy and Portugal Homes","version":"1.0.0","description":"Southern European real estate listings from Idealista across Spain, Italy and Portugal for sale and rent, one row per entity."},"servers":[{"url":"https://ah-idealista-com.opendata.best/s/idealista-com"}],"paths":{"/v1/search":{"post":{"operationId":"search","summary":"Search Idealista Spain, Italy and Portugal homes","description":"Search residential and commercial listings across Idealista ES, IT and PT by location slug or URL.","tags":["search"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"startUrls":{"type":"array","items":{"type":"string"},"description":"Start URLs. Idealista search or listing URLs from one country: idealista.com, idealista.it or idealista.pt. These URLs select the market and search, and take priority over location.","example":[{"url":"https://www.idealista.com/venta-viviendas/madrid-madrid/"}]},"location":{"type":"string","description":"Location path. Enter an Idealista location path such as madrid-madrid, roma-roma or lisboa, or a place name such as Madrid. Used only when startUrls is empty.","example":"madrid-madrid"},"country":{"type":"string","enum":["ES","IT","PT"],"description":"Country / market. Choose Spain (ES), Italy (IT) or Portugal (PT). When startUrls is filled, its URL host selects the country instead.","default":"ES"},"channel":{"type":"string","enum":["BUY","RENT"],"description":"Channel. Choose BUY for properties for sale or RENT for rentals. Rooms use RENT; search URLs select their own operation.","default":"BUY"},"propertyType":{"type":"string","description":"Property type. Choose homes, new_homes, rooms, garages, storage, offices, commercial, land, buildings or business_transfer; holiday is supported only in Spain and Italy. Local category paths also work; startUrls takes priority when supplied.","default":"homes","example":"homes"},"maxPages":{"type":"integer","minimum":1,"maximum":25,"description":"Search-page setting. Search-page setting from 1 to 25. Current row-limited runs follow continuation pages independently of this setting; use maxResults to cap delivered rows.","default":1},"scrapeDetails":{"type":"boolean","description":"Scrape detail pages. Add available descriptions, agency information, property attributes and media from detail pages to search results. Default true; false keeps search-card data only, and phone numbers are not promised.","default":true},"maxResults":{"type":"integer","minimum":1,"maximum":20,"description":"Max rows per input (each listed URL, ID or keyword; a single target counts as one input). All row types share this allowance. Each plan caps the rows of one request (BASIC 10, PRO 70, ULTRA 200, MEGA 500); larger values are lowered to your plan's cap. You pay per delivered row (Rows).","default":10,"example":3},"requestId":{"type":"string","pattern":"^[A-Za-z0-9._:-]{1,80}$","description":"Optional. Your id for this request: repeating it while the job runs returns the same job."}}},"example":{"country":"ES","location":"madrid-madrid","channel":"BUY","propertyType":"homes","scrapeDetails":false,"maxResults":3}}}},"responses":{"200":{"description":"Done within the request: the rows.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RowsPage"}}}},"404":{"description":"No results matched the query (nothing was billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid or missing parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"At capacity, too many running jobs, or rolling 24-hour row limit reached; retry after Retry-After seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The source could not be collected this time (not billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Synchronous timeout reached before completion; task cancelled (nothing was billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/health":{"get":{"operationId":"health","summary":"API health check","description":"Lightweight readiness check for this API. Never starts a collection and always bills 0 rows.","tags":["health"],"responses":{"200":{"description":"API is operational (0 rows).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}},"503":{"description":"API is temporarily unavailable (not billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}}}}}},"components":{"schemas":{"Row":{"type":"object","properties":{"rowType":{"type":"string","enum":["listing"]},"id":{"type":"string","description":"Idealista listing id (numeric string)"},"url":{"nullable":true,"type":"string","description":"Detail page URL"},"source":{"type":"string"},"country":{"nullable":true,"type":"string","enum":["ES","IT","PT"]},"sourceLayer":{"nullable":true,"type":"string","description":"'srp' list row, 'ldp' detail-only task, 'srp+ldp' list row enriched with its detail document","enum":["srp","ldp","srp+ldp"]},"channel":{"nullable":true,"type":"string","description":"SALE/venta/vendita normalized to BUY","enum":["BUY","RENT"]},"propertyType":{"nullable":true,"type":"string","description":"Top-nav category or typologyName; fallback recorded in warnings"},"title":{"nullable":true,"type":"string"},"priceAmount":{"nullable":true,"description":"Numeric price; '.' thousands separator stripped, ',' decimal"},"priceFormatted":{"nullable":true,"type":"string","description":"Original localized price string"},"pricePerArea":{"nullable":true,"type":"string","description":"SRP price-per-area text (e.g. '3.150 €/m²')"},"rooms":{"nullable":true,"description":"Bedroom count parsed from hab/dorm/locali/quartos/Tn tokens"},"livingSpace":{"nullable":true,"description":"Area in m²"},"floor":{"nullable":true,"type":"string","description":"Floor feature text (planta/bajo/ático/...)"},"detailChars":{"nullable":true,"type":"array","description":"SRP card feature strings","items":{"type":"string"}},"detailFeatures":{"nullable":true,"type":"array","description":"LDP headerFeatures text+subText + dom.features","items":{"type":"string"}},"detailSections":{"nullable":true,"type":"object","description":"dom.detailSections raw object; stripped unless includeRawPayloads=true"},"address":{"nullable":true,"type":"object","description":"Structured address; App rows read the site's own province / municipality / district / neighborhood slots (the display text is masked to neighborhood level and is only the fallback), Web rows build it from the header map","properties":{"street":{"nullable":true,"type":"string","description":"Street WITH house number when present (not a bare street name)"},"unit":{"nullable":true,"type":"string","description":"Floor/door/flat keyword match only (piso/planta/flat/int...)"},"locality":{"nullable":true,"type":"string"},"district":{"nullable":true,"type":"string","description":"Admin district / zone as the site names it (bare name: Centro, Chamberí, Porta Vittoria)"},"neighborhood":{"nullable":true,"type":"string","description":"Neighborhood / parish below the district (ES/IT only; PT publishes no fourth level)"},"region":{"nullable":true,"type":"string","description":"Province / region (Madrid, Milano, Lisboa)"},"postalCode":{"nullable":true,"type":"string","description":"4-6 digit postal code of the property (empty on idealista: only the agency office publishes one)"},"country":{"nullable":true,"type":"string","description":"Request country code (ES/IT/PT), not parsed from the address text"},"full":{"nullable":true,"type":"string","description":"Best full-address string (officeInfo > headerMapList > title split)"}}},"description":{"nullable":true,"type":"string"},"tags":{"nullable":true,"type":"array","description":"SRP listing-tags / pricedown labels","items":{"type":"string"}},"agencyName":{"nullable":true,"type":"string"},"externalReference":{"nullable":true,"description":"config.adExternalReference external listing ref"},"images":{"nullable":true,"type":"array","description":"Deduped image URLs, capped at 80","items":{"type":"string"}},"plansCount":{"nullable":true,"type":"integer","description":"LDP floor-plan count"},"videosCount":{"nullable":true,"type":"integer","description":"LDP video count"},"has3DTour":{"nullable":true,"type":"boolean","description":"visit3DTour/visit3DTourURL flag"},"map":{"nullable":true,"type":"object","description":"SRP media.map raw object; null on the current search channel (search cards carry no map data); stripped unless includeRawPayloads=true"},"mapConfig":{"nullable":true,"type":"object","description":"LDP mapConfig raw object; stripped unless includeRawPayloads=true"},"hasPhoneButton":{"nullable":true,"type":"boolean","description":"SRP card shows a phone button — marker only, NOT proof a number is retrievable"},"contactPhoneEndpoint":{"nullable":true,"type":"string","description":"API path for the phone-reveal ajax call (e.g. /es/ajax/ads/{id}/contact-phones) — endpoint location, NOT a phone number"},"mustShowHousingSeekerProfile":{"nullable":true,"type":"boolean","description":"config.mustShowHousingSeekerProfile passthrough"},"sourceUrl":{"nullable":true,"type":"string","description":"Search page URL this row was collected from"},"rawCardText":{"nullable":true,"type":"string","description":"SRP card raw text (≤2000 chars); stripped unless includeRawPayloads=true"},"detailError":{"nullable":true,"type":"string","description":"Present on rows whose detail enrichment failed (detail_fetch_failed/missing_expose/challenge_page:*/response_*), was cut off by a deadline or cancel (detail_not_fetched), or was skipped after repeated detail failures (detail_skipped_after_failures)"},"phones":{"nullable":true,"type":"array","description":"Phone numbers: App rows carry them inline on the list, Web rows after a click-reveal; [] when unavailable","items":{"type":"object","properties":{"value":{"type":"string"},"type":{"type":"string","enum":["mobile","landline"]},"e164":{"type":"string"}}}},"emails":{"nullable":true,"type":"array","description":"Always [] — contact e-mail sits behind the lead-form gate (structurally unavailable)","items":{"type":"object"}},"geo":{"nullable":true,"type":"object","description":"{lat,lng} from dom.geo or mapConfig"},"person":{"nullable":true,"type":"object","description":"Always null — site exposes no person entity"},"org":{"nullable":true,"type":"object","description":"Advertiser as the listing row states it, plus what the agency profile ( /microsite/{shortName} ) publishes.","properties":{"name":{"nullable":true,"type":"string"},"id":{"nullable":true,"type":"string","description":"/pro/{slug} agency slug — not a company registry id"},"microsite":{"nullable":true,"type":"string","description":"contactInfo.micrositeShortName — the key of the agency profile"},"agencyWebUrl":{"nullable":true,"type":"string","description":"The agency's own website, from the profile; null when the profile has none"},"agencyTotalAds":{"nullable":true,"type":"integer","description":"The agency's real in-stock count (profile `total`). contactInfo.totalAds is measured at 0 on every market"},"activeSinceYear":{"nullable":true,"type":"integer","description":"Year the agency joined idealista, from the profile"}}},"web":{"nullable":true,"type":"object","description":"{website,socials}: website comes from the agency profile (null when the agency publishes none — see quality.evidence.web); the site itself has no social-profile field"},"leadSource":{"nullable":true,"type":"string","enum":["search","detail","reveal-xhr"]},"leadReveal":{"nullable":true,"type":"string","description":"'inline' = the App REST list row already carries the E.164 number (no click); 'click' = revealed behind the Web click-to-show button; 'absent' = not attempted/failed","enum":["absent","click","inline"]},"leadAbsences":{"nullable":true,"type":"object","description":"Why each empty lead field is empty: not_verified (not checked on this row, sometimes with a note in parentheses), not_on_list_page (website search card), not_collected (not read in this request; reason in quality.evidence) or gated (contact form, emails only). A field that has a value has no entry. Conditional keys on website detail rows: address when the street is missing, addressUnit when the door number is privacy-hidden.","additionalProperties":{"type":"string"}},"scrapedAt":{"type":"string","description":"UTC ISO-8601 with +00:00 offset (fleet property-site convention)"},"quality":{"nullable":true,"type":"object","description":"Set when a field was not read in this request. missingFields[field]=not_collected, evidence[field]=why (for example the agency profile could not be read or was past the per-task cap).","properties":{"missingFields":{"type":"object","additionalProperties":{"type":"string"}},"evidence":{"type":"object","additionalProperties":{"type":"string"}}}}},"additionalProperties":true,"description":"One collected entity. Field availability depends on rowType and the source. Fields always present (a|b = at least one of them): every row: id; rowType=listing: id, url."},"Error":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"ErrorDetail":{"type":"object","required":["code","message","retryable"],"properties":{"code":{"type":"string","example":"invalid_input"},"message":{"type":"string"},"retryable":{"type":"boolean"}}},"JobStatus":{"type":"object","properties":{"jobId":{"type":"string"},"status":{"type":"string","enum":["queued","running","succeeded","partial","failed","cancelled"]},"done":{"type":"boolean"},"rowsAvailable":{"type":"integer"},"rowsDelivered":{"type":"integer","description":"Rows already delivered (and billed) to you for this job."},"rowsLimit":{"type":"integer","description":"Most rows this job can deliver."},"estimatedFinishSec":{"type":"integer","description":"While running: estimated seconds until done."},"statusUrl":{"type":"string"},"resultsUrl":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"},"retentionHours":{"type":"integer"},"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"RowsPage":{"allOf":[{"$ref":"#/components/schemas/JobStatus"},{"type":"object","properties":{"offset":{"type":"integer"},"nextOffset":{"type":"integer"},"hasMore":{"type":"boolean"},"rowCount":{"type":"integer"},"rowsBilled":{"type":"integer","description":"Rows delivered by this response."},"rows":{"type":"array","items":{"$ref":"#/components/schemas/Row"}},"meta":{"type":"object","additionalProperties":true}}}]},"HealthStatus":{"type":"object","required":["ok","site","status","endpoints","rowsBilled"],"properties":{"ok":{"type":"boolean"},"site":{"type":"string"},"status":{"type":"string","enum":["operational","unavailable"]},"endpoints":{"type":"array","items":{"type":"string"}},"rowsBilled":{"type":"integer"}}}}}}