{"openapi":"3.0.0","info":{"title":"Otodom Poland Property Listings Data","version":"1.0.0","description":"Polish property listings from Otodom.pl with prices in PLN, area, rooms, primary/secondary market and agencies, one row per entity."},"servers":[{"url":"https://ah-otodom-pl.opendata.best/s/otodom-pl"}],"paths":{"/v1/search":{"post":{"operationId":"search","summary":"Search Otodom.pl Polish property listings","description":"Query Polish apartments, houses and commercial properties by city, price, area and market filters.","tags":["search"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"location":{"type":"string","description":"City / location. Polish city (warszawa), voivodeship (mazowieckie), full path, or polska for the whole country. Leave empty when you fill Detail URLs, a developer or an agency.","example":"warszawa"},"locations":{"type":"array","items":{"type":"string"},"description":"Extra locations. Additional Polish places to search. Results are combined with location and duplicate entities are removed.","example":[]},"detailUrls":{"type":"array","items":{"type":"string"},"description":"Detail URLs. Otodom listing links (/pl/oferta/…) or developer links. Each link is one input.","example":[]},"channel":{"type":"string","enum":["auto","sale","rent","developer","agency"],"description":"Channel. Auto picks the channel from what you fill: listing links, a developer, an agency, or a place (a place alone searches listings for sale). Choose For rent to search rentals.","default":"auto","example":"auto"},"developerUrl":{"type":"string","description":"Developer URL. Otodom developer profile URL or site-relative path. Use this instead of developerSlug and developerId when you have the full link.","example":""},"developerId":{"type":"string","description":"Developer ID. Developer identifier from the profile URL. Pair it with developerSlug when available.","example":""},"developerSlug":{"type":"string","description":"Developer slug. Developer profile URL slug, with or without its ID suffix. A complete developerUrl is recommended.","example":""},"agencyUrl":{"type":"string","description":"Agency URL. Otodom real estate agency profile URL or site-relative path. Use this instead of agencySlug and agencyId when you have the full link.","example":""},"agencyId":{"type":"string","description":"Agency ID. Agency identifier from the profile URL. Pair it with agencySlug when available.","example":""},"agencySlug":{"type":"string","description":"Agency slug. Agency profile URL slug, with or without its ID suffix. A complete agencyUrl is recommended.","example":""},"propertyType":{"type":"string","enum":["mieszkanie","dom","dzialka","lokal","pokoj","garaz","inwestycja"],"description":"Property type. Property category to search: apartment, house, land, commercial property, room, garage or investment.","default":"mieszkanie","example":"mieszkanie"},"market":{"type":"string","enum":["ALL","PRIMARY","SECONDARY"],"description":"Market. Choose all properties, primary-market properties or secondary-market properties.","default":"ALL","example":"ALL"},"sortBy":{"type":"string","enum":["","DEFAULT","PRICE","AREA","DATE"],"description":"Sort by. Sort search listings by the site default, price, area or date.","default":"","example":""},"sortDirection":{"type":"string","enum":["","ASC","DESC"],"description":"Sort direction. Choose ascending or descending order when sortBy is set.","default":"","example":""},"minPrice":{"type":"integer","minimum":0,"description":"Min price (PLN). Minimum listing price filter (PLN)."},"maxPrice":{"type":"integer","minimum":0,"description":"Max price (PLN). Maximum listing price filter (PLN)."},"minArea":{"type":"number","minimum":0,"description":"Min area (m²). Minimum living area in square meters."},"maxArea":{"type":"number","minimum":0,"description":"Max area (m²). Maximum living area in square meters."},"rooms":{"type":"string","description":"Rooms. Room count from 1 to 6, or ONE to SIX. Leave empty to include all room counts.","default":"","example":""},"privateOnly":{"type":"boolean","description":"Private owners only. Keep listings marked as private-owner offers rather than agency offers.","default":false,"example":false},"maxPages":{"type":"integer","minimum":1,"maximum":50,"description":"Max pages. Retained for compatibility. Current search pagination is automatic; use maxResults to limit delivered rows.","default":1,"example":1},"enrichDetails":{"type":"boolean","description":"Enrich details. Add available detail information to listing rows. Enabled in the input form; set true explicitly in API input to request enrichment.","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":{"location":"warszawa","channel":"sale","propertyType":"mieszkanie","enrichDetails":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":{"name":{"type":"string"},"id":{"type":"string"},"rowType":{"type":"string","enum":["listing","developer"]},"type":{"type":"string"},"status":{"type":"string"},"country":{"type":"string"},"authority":{"type":"string"},"phones":{"nullable":true,"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"type":{"type":"string"}}}},"emails":{"nullable":true,"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"type":{"type":"string"}}}},"address":{"nullable":true,"type":"object","properties":{"street":{"nullable":true,"type":"string"},"unit":{"nullable":true,"type":"string"},"locality":{"nullable":true,"type":"string"},"region":{"nullable":true,"type":"string"},"postalCode":{"nullable":true,"type":"string"},"country":{"nullable":true,"type":"string"},"full":{"nullable":true,"type":"string"}}},"geo":{"nullable":true,"type":"object","properties":{"lat":{"nullable":true,"type":"number"},"lng":{"nullable":true,"type":"number"}}},"person":{"nullable":true,"type":"object","properties":{"name":{"nullable":true,"type":"string"},"role":{"nullable":true,"type":"string"}}},"org":{"nullable":true,"type":"object","properties":{"name":{"nullable":true,"type":"string"},"id":{"nullable":true,"type":"string"}}},"web":{"nullable":true,"type":"object","properties":{"website":{"nullable":true,"type":"string"},"socials":{"nullable":true,"type":"array","items":{"type":"string"}}}},"leadSource":{"nullable":true,"type":"string"},"leadReveal":{"nullable":true,"type":"string"},"leadAbsences":{"nullable":true,"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|listingId, name|title, url; rowType=developer: id|developerId, name|title, url; rowType=listing: id|listingId, title, 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"}}}}}}