{"openapi":"3.0.0","info":{"title":"ImmoScout24 Germany Austria and Spain","version":"1.0.0","description":"Real estate listings from ImmoScout24 Germany and Austria plus Spanish partner portals for sale and rent, one row per entity."},"servers":[{"url":"https://ah-immobilienscout24-com.opendata.best/s/immobilienscout24-com"}],"paths":{"/v1/search":{"post":{"operationId":"search","summary":"Search ImmoScout24 DACH and Spain listings","description":"Query German, Austrian and Spanish residential or commercial listings by country, city and channel.","tags":["search"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"startUrls":{"type":"array","items":{"type":"string"},"description":"Start URLs. Search or listing URLs from immobilienscout24.de, immobilienscout24.at, fotocasa.es, or habitaclia.com; subdomains are accepted. Search URLs take precedence over location and select the portal; use search URLs for Habitaclia."},"location":{"type":"string","description":"Location. Place name, such as Berlin, Kreuzberg, Berlin, Wien, or Madrid; existing location paths are also accepted. Leave both target fields empty for a three-row example in Berlin, or Wien or Madrid when another country is selected.","example":"Berlin"},"country":{"type":"string","enum":["DE","AT","ES","HABITACLIA"],"description":"Country / market. Choose DE for Germany, AT for Austria, ES for Fotocasa in Spain, or HABITACLIA for Habitaclia in Spain. The portal in startUrls takes precedence.","default":"DE","example":"DE"},"market":{"type":"string","enum":["fotocasa","habitaclia"],"description":"Spain site (when country=ES). Choose fotocasa or habitaclia for Spain, or leave empty to use Fotocasa when country is ES. The portal can also be selected by startUrls or country set to HABITACLIA."},"channel":{"type":"string","enum":["BUY","RENT"],"description":"Channel. Choose BUY for properties for sale or RENT for rentals when searching by location. Search URLs supply their own search filters.","default":"BUY","example":"BUY"},"propertyType":{"type":"string","enum":["apartment","home","house","apartment_or_house","plot","garage","parking","shared_room","short_term","foreclosure","investment","penthouse","duplex","studio","office","retail","industrial","hospitality","other_commercial","commercial","building","storage","all_listings","wohnung","haus","wohnung-oder-haus","grundstueck","all"],"description":"Property type / category. Choose a property category; availability depends on the country and sale or rental channel. Habitaclia does not support garage, parking, or shared_room; unsupported category combinations fail validation even when URLs are supplied.","default":"apartment","example":"apartment"},"maxPages":{"type":"integer","minimum":1,"maximum":50,"description":"Max search pages (compatibility only). Retained for compatibility; this setting does not limit paging. Use maxResults to set the number of rows requested for each input.","default":1,"example":1},"scrapeDetails":{"type":"boolean","description":"Scrape detail pages. Add detail information to the same listing rows for Germany, Austria, and Fotocasa, without extra billed rows. Habitaclia uses search results only and always sets this to false.","default":true,"example":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":"DE","location":"Berlin","channel":"BUY","propertyType":"apartment","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":{"id":{},"url":{"nullable":true,"type":"string"},"source":{"type":"string"},"country":{"nullable":true,"type":"string"},"market":{"nullable":true,"type":"string"},"sourceLayer":{"nullable":true,"type":"string"},"channel":{"nullable":true,"type":"string"},"propertyTypeRequested":{"nullable":true,"type":"string"},"realEstateType":{},"title":{},"priceAmount":{},"priceFormatted":{},"priceOnRequest":{},"baseRent":{},"totalRent":{},"rentScaleWarning":{},"rooms":{},"livingSpace":{},"propertyCategory":{},"city":{},"zipCode":{},"quarter":{},"street":{"nullable":true,"type":"string"},"houseNumber":{"nullable":true,"type":"string"},"isFullAddress":{"nullable":true,"type":"boolean"},"region":{"nullable":true,"type":"string"},"latitude":{},"longitude":{},"geoCode":{},"realtorCompanyName":{},"contactName":{"nullable":true,"type":"string"},"realtorSsoId":{"nullable":true,"type":"string"},"companyWideCustomerId":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"constructionYear":{},"images":{},"tags":{},"phones":{},"emails":{},"address":{},"geo":{},"person":{},"org":{},"web":{},"leadSource":{"nullable":true,"type":"string"},"leadReveal":{"nullable":true,"type":"string"},"leadAbsences":{},"scrapedAt":{"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, title, url, priceAmount."},"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"}}}}}}