{"openapi":"3.1.0","info":{"title":"mScanner public data API","version":"1.0.0","description":"Polish property prices from public registers: transaction prices from the Rejestr Cen\nNieruchomości (notarial deeds) and primary-market asking prices from open data.\n\nFree, no key, no registration. What we ask in return is attribution: every response\ncarries an `attribution` block naming the source and a ready-to-paste citation. Use it.\n\nThree rules that matter more than any parameter:\n\n1. Never quote a figure without its sample size and period. Both are in every response.\n2. No data is not the same as a low price. When coverage is empty, say we hold nothing\n   for that area — do not fill the gap.\n3. Transaction and asking prices are different things and are not comparable. State which\n   one a number came from.\n\nMethodology and reuse terms: https://mscanner.pl/zrodla-danych\nWhat the free aggregates cannot tell you (and the paid per-address report can): https://mscanner.pl/raport-nieruchomosci","termsOfService":"https://mscanner.pl/regulamin","contact":{"name":"mScanner","url":"https://mscanner.pl/kontakt"}},"servers":[{"url":"https://api.mscanner.pl/api","description":"Production"}],"paths":{"/property-prices/available-cities":{"get":{"operationId":"listPricingCities","summary":"List every gmina and city that has published pricing data","description":"The starting point: it returns the code to pass as `city` everywhere else, plus each area's label, centre, bounding box and `medianPricePerSqm` where one is publishable. Call this first when the user names a place in prose — the API is keyed on codes like \"gmina-106101\", not on names. A null median means the sample was too thin to publish, NOT that the area is cheap.","parameters":[{"name":"mode","in":"query","required":false,"description":"transactional = prices from notarial deeds in the Rejestr Cen Nieruchomości (what buyers actually paid). asking = primary-market developer list prices from open data. They are not comparable with each other; say which one a quoted figure came from.","schema":{"default":"transactional","type":"string","enum":["transactional","asking"]}}],"responses":{"200":{"description":"Success. The payload always carries an `attribution` block.","content":{"application/json":{"schema":{"type":"object","properties":{"attribution":{"$ref":"#/components/schemas/Attribution"}}}}}},"400":{"description":"Invalid query parameters."},"429":{"description":"Rate limited. Budgets are per caller and generous for normal use; back off and retry."}}}},"/property-prices/coverage":{"get":{"operationId":"getPricingCoverage","summary":"What data exists for this area, and what is missing","description":"Answers \"do you actually hold anything for this place\" before you ask for numbers. Reports which views are supported, the freshness date, and known gaps in plain Polish. An empty answer here means NO DATA, which is not the same as \"prices are low\" — never present one as the other.","parameters":[{"name":"city","in":"query","required":false,"description":"Gmina or city code as returned by listPricingCities (e.g. \"gmina-106101\"). A plain slug such as \"lodz\" is accepted for the larger cities and normalised server-side; when in doubt resolve it through listPricingCities first.","schema":{"default":"lodz","type":"string","minLength":1}},{"name":"mode","in":"query","required":false,"description":"transactional = prices from notarial deeds in the Rejestr Cen Nieruchomości (what buyers actually paid). asking = primary-market developer list prices from open data. They are not comparable with each other; say which one a quoted figure came from.","schema":{"default":"transactional","type":"string","enum":["transactional","asking"]}},{"name":"propertyType","in":"query","required":false,"description":"apartment | house | plot | other. For house and plot the meaningful figure is the TOTAL price, not the price per m², because the register rarely carries usable floor area for them.","schema":{"default":"apartment","type":"string","enum":["apartment","house","plot","other"]}}],"responses":{"200":{"description":"Success. The payload always carries an `attribution` block.","content":{"application/json":{"schema":{"type":"object","properties":{"attribution":{"$ref":"#/components/schemas/Attribution"}}}}}},"400":{"description":"Invalid query parameters."},"429":{"description":"Rate limited. Budgets are per caller and generous for normal use; back off and retry."}}}},"/property-prices/city-trend":{"get":{"operationId":"getPricingCityTrend","summary":"Headline price for an area, and how it moved over time","description":"THE endpoint to quote a figure from. `recentMedianPricePerSqm` is the median over the last `recentWindowMonths` months, with `recentRecordCount` deeds behind it — quote those three together and nothing less. `medianPricePerSqm` and `totalRecordCount` cover the whole history, which reaches back to 2007 and is therefore useless as \"the current price\". `points[]` is the month-by-month series for trend questions.","parameters":[{"name":"city","in":"query","required":false,"description":"Gmina or city code as returned by listPricingCities (e.g. \"gmina-106101\"). A plain slug such as \"lodz\" is accepted for the larger cities and normalised server-side; when in doubt resolve it through listPricingCities first.","schema":{"default":"lodz","type":"string","minLength":1}},{"name":"mode","in":"query","required":false,"description":"transactional = prices from notarial deeds in the Rejestr Cen Nieruchomości (what buyers actually paid). asking = primary-market developer list prices from open data. They are not comparable with each other; say which one a quoted figure came from.","schema":{"default":"transactional","type":"string","enum":["transactional","asking"]}},{"name":"propertyType","in":"query","required":false,"description":"apartment | house | plot | other. For house and plot the meaningful figure is the TOTAL price, not the price per m², because the register rarely carries usable floor area for them.","schema":{"default":"apartment","type":"string","enum":["apartment","house","plot","other"]}}],"responses":{"200":{"description":"Success. The payload always carries an `attribution` block.","content":{"application/json":{"schema":{"type":"object","properties":{"attribution":{"$ref":"#/components/schemas/Attribution"}}}}}},"400":{"description":"Invalid query parameters."},"429":{"description":"Rate limited. Budgets are per caller and generous for normal use; back off and retry."}}}},"/property-prices/monthly-aggregates":{"get":{"operationId":"getPricingMonthlyAggregates","summary":"Month-by-month medians and volumes","description":"Finer-grained than the trend: per-month median, average and record count. Months with a thin sample are the ones to treat with suspicion — the count is returned so you can.","parameters":[{"name":"city","in":"query","required":false,"description":"Gmina or city code as returned by listPricingCities (e.g. \"gmina-106101\"). A plain slug such as \"lodz\" is accepted for the larger cities and normalised server-side; when in doubt resolve it through listPricingCities first.","schema":{"default":"lodz","type":"string","minLength":1}},{"name":"mode","in":"query","required":false,"description":"transactional = prices from notarial deeds in the Rejestr Cen Nieruchomości (what buyers actually paid). asking = primary-market developer list prices from open data. They are not comparable with each other; say which one a quoted figure came from.","schema":{"default":"transactional","type":"string","enum":["transactional","asking"]}},{"name":"propertyType","in":"query","required":false,"description":"apartment | house | plot | other. For house and plot the meaningful figure is the TOTAL price, not the price per m², because the register rarely carries usable floor area for them.","schema":{"default":"apartment","type":"string","enum":["apartment","house","plot","other"]}},{"name":"segment","in":"query","required":false,"description":"primary | secondary | mixed | not_applicable.","schema":{"type":"string","enum":["not_applicable","primary","secondary","mixed"]}},{"name":"periodFrom","in":"query","required":false,"description":"ISO date (YYYY-MM-DD) lower bound on the deed date.","schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},{"name":"periodTo","in":"query","required":false,"description":"ISO date (YYYY-MM-DD) upper bound on the deed date.","schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}}],"responses":{"200":{"description":"Success. The payload always carries an `attribution` block.","content":{"application/json":{"schema":{"type":"object","properties":{"attribution":{"$ref":"#/components/schemas/Attribution"}}}}}},"400":{"description":"Invalid query parameters."},"429":{"description":"Rate limited. Budgets are per caller and generous for normal use; back off and retry."}}}},"/property-prices/district-breakdown":{"get":{"operationId":"getPricingDistrictBreakdown","summary":"Prices per district or estate within a city","description":"Medians per named area inside a city, with the sample size for each. This is what answers \"which district is expensive\". Rank on it only where the counts justify it: in a metro one osiedle can mix old kamienice with new blocks, so a district median with a handful of deeds behind it says nothing.","parameters":[{"name":"city","in":"query","required":false,"description":"Gmina or city code as returned by listPricingCities (e.g. \"gmina-106101\"). A plain slug such as \"lodz\" is accepted for the larger cities and normalised server-side; when in doubt resolve it through listPricingCities first.","schema":{"default":"lodz","type":"string","minLength":1}},{"name":"mode","in":"query","required":false,"description":"transactional = prices from notarial deeds in the Rejestr Cen Nieruchomości (what buyers actually paid). asking = primary-market developer list prices from open data. They are not comparable with each other; say which one a quoted figure came from.","schema":{"default":"transactional","type":"string","enum":["transactional","asking"]}},{"name":"propertyType","in":"query","required":false,"description":"apartment | house | plot | other. For house and plot the meaningful figure is the TOTAL price, not the price per m², because the register rarely carries usable floor area for them.","schema":{"default":"apartment","type":"string","enum":["apartment","house","plot","other"]}},{"name":"segment","in":"query","required":false,"description":"all | primary | secondary.","schema":{"default":"all","type":"string","enum":["all","primary","secondary"]}},{"name":"level","in":"query","required":false,"description":"dzielnica (borough) or osiedle (estate) — how finely to cut the city.","schema":{"default":"dzielnica","type":"string","enum":["dzielnica","osiedle"]}},{"name":"periodFrom","in":"query","required":false,"description":"ISO date (YYYY-MM-DD) lower bound on the deed date.","schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},{"name":"periodTo","in":"query","required":false,"description":"ISO date (YYYY-MM-DD) upper bound on the deed date.","schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}}],"responses":{"200":{"description":"Success. The payload always carries an `attribution` block.","content":{"application/json":{"schema":{"type":"object","properties":{"attribution":{"$ref":"#/components/schemas/Attribution"}}}}}},"400":{"description":"Invalid query parameters."},"429":{"description":"Rate limited. Budgets are per caller and generous for normal use; back off and retry."}}}},"/property-prices/price-histogram":{"get":{"operationId":"getPricingHistogram","summary":"Distribution of prices per m² in an area","description":"Buckets of price per m² with counts. Useful when a single median would hide a two-humped market (a city where new build and old stock barely overlap).","parameters":[{"name":"city","in":"query","required":false,"description":"Gmina or city code as returned by listPricingCities (e.g. \"gmina-106101\"). A plain slug such as \"lodz\" is accepted for the larger cities and normalised server-side; when in doubt resolve it through listPricingCities first.","schema":{"default":"lodz","type":"string","minLength":1}},{"name":"mode","in":"query","required":false,"description":"transactional = prices from notarial deeds in the Rejestr Cen Nieruchomości (what buyers actually paid). asking = primary-market developer list prices from open data. They are not comparable with each other; say which one a quoted figure came from.","schema":{"default":"transactional","type":"string","enum":["transactional","asking"]}},{"name":"propertyType","in":"query","required":false,"description":"apartment | house | plot | other. For house and plot the meaningful figure is the TOTAL price, not the price per m², because the register rarely carries usable floor area for them.","schema":{"default":"apartment","type":"string","enum":["apartment","house","plot","other"]}},{"name":"segment","in":"query","required":false,"description":"primary | secondary | mixed | not_applicable.","schema":{"type":"string","enum":["not_applicable","primary","secondary","mixed"]}}],"responses":{"200":{"description":"Success. The payload always carries an `attribution` block.","content":{"application/json":{"schema":{"type":"object","properties":{"attribution":{"$ref":"#/components/schemas/Attribution"}}}}}},"400":{"description":"Invalid query parameters."},"429":{"description":"Rate limited. Budgets are per caller and generous for normal use; back off and retry."}}}},"/flip/check":{"get":{"operationId":"checkFlip","summary":"Was this flat bought recently and is it already back on sale?","description":"The \"czy to flip?\" verdict for one address, computed from notarial deeds. Returns the deed history for the building and, where the flat can be identified, for the unit. IMPORTANT: a floor area is not an identifier — a block repeats its layouts, so one areaSqm routinely fits several units sold on different days for different money. Describe an area-only match as \"a flat this size\", never as \"your flat\". Only a unit number, or an area match with a single candidate, may be stated as a specific flat. No result means we hold no data for that address; it does NOT mean the flat is not a flip.","parameters":[{"name":"city","in":"query","required":true,"description":"Gmina or city code as returned by listPricingCities (e.g. \"gmina-106101\"). A plain slug such as \"lodz\" is accepted for the larger cities and normalised server-side; when in doubt resolve it through listPricingCities first.","schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"address","in":"query","required":true,"description":"Street and building number.","schema":{"type":"string","minLength":1,"maxLength":300}},{"name":"propertyType","in":"query","required":true,"description":"apartment | house.","schema":{"default":"apartment","type":"string","enum":["apartment","house","plot"]}},{"name":"lat","in":"query","required":false,"description":"Optional latitude of the building, to skip the text lookup.","schema":{"type":"number","minimum":-90,"maximum":90}},{"name":"lng","in":"query","required":false,"description":"Optional longitude of the building, to skip the text lookup.","schema":{"type":"number","minimum":-180,"maximum":180}},{"name":"unit","in":"query","required":false,"description":"Unit number if known (\"12\", \"lok. 4\"). The only reliable identifier.","schema":{"type":"string","maxLength":32}},{"name":"areaSqm","in":"query","required":false,"description":"Floor area in m². Matched to ±1 m² — see the warning above.","schema":{"type":"number","minimum":1,"maximum":10000}},{"name":"floor","in":"query","required":false,"description":"Floor as people say it (0 = ground). Only ever used to rule a candidate out.","schema":{"type":"integer","minimum":-2,"maximum":100}}],"responses":{"200":{"description":"Success. The payload always carries an `attribution` block.","content":{"application/json":{"schema":{"type":"object","properties":{"attribution":{"$ref":"#/components/schemas/Attribution"}}}}}},"400":{"description":"Invalid query parameters."},"429":{"description":"Rate limited. Budgets are per caller and generous for normal use; back off and retry."}}}}},"components":{"schemas":{"Attribution":{"type":"object","description":"Who produced the numbers and how to cite them. Present on every successful response.","properties":{"source":{"type":"string","example":"mScanner — dane z Rejestru Cen Nieruchomości (RCN) i otwartych danych publicznych"},"citeAs":{"type":"string","example":"mScanner (dane: Rejestr Cen Nieruchomości), https://mscanner.pl"},"url":{"type":"string","format":"uri","example":"https://mscanner.pl/ceny-transakcyjne-nieruchomosci"},"terms":{"type":"string","format":"uri","example":"https://mscanner.pl/zrodla-danych"},"more":{"type":"string","example":"Te liczby to agregaty dla obszaru. Raport dla konkretnego adresu (MPZP, hałas, dojazdy, pozwolenia na budowę, ceny sąsiednich budynków) jest płatny: https://mscanner.pl/raport-nieruchomosci"}}}}}}