{"openapi":"3.1.0","info":{"title":"mietzuhoch.de Berlin rent check API","version":"1.0.0","description":"Free, keyless API for AI agents and developers: local reference rent (ortsübliche Vergleichsmiete) from the official Berlin Mietspiegel 2019–2026, maximum initial rent under the Mietpreisbremse and possible overpayment. Estimates, not legal advice. Addresses and rents are not stored in our database or analytics. Fair use: 2,000 requests per hour per IP. Prefer POST so that addresses and rents stay out of URLs and access logs.","contact":{"url":"https://mietzuhoch.de/en/developers"}},"servers":[{"url":"https://mietzuhoch.de"}],"paths":{"/api/v1/check":{"get":{"operationId":"checkBerlinRent","summary":"Check a Berlin rent against the Mietpreisbremse","parameters":[{"name":"address","in":"query","required":true,"description":"Berlin street address with house number, e.g. 'Sonnenallee 12' or 'Sonnenallee 12, 12047 Berlin'","schema":{"type":"string","minLength":3,"maxLength":120}},{"name":"area_sqm","in":"query","required":true,"description":"Living area in m²","schema":{"type":"number","minimum":10,"maximum":400}},{"name":"construction_year","in":"query","required":false,"description":"Year the building was first ready for occupancy (Bezugsfertigkeit); omit or 'unknown' if not known","schema":{"anyOf":[{"type":"integer","minimum":1700,"maximum":2100},{"type":"string","const":"unknown"}]}},{"name":"move_in","in":"query","required":true,"description":"Start of the tenancy per the contract, YYYY-MM or YYYY-MM-DD","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}(-\\d{2})?$"}},{"name":"contract_signed","in":"query","required":false,"description":"Date the lease was signed (selects the Mietspiegel edition); defaults to move_in","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}(-\\d{2})?$"}},{"name":"cold_rent_eur","in":"query","required":false,"description":"Initial Nettokaltmiete per month in EUR (without heating/service charges). Omit to get only the local reference rent and the cap","schema":{"type":"number","minimum":50,"maximum":20000}},{"name":"furnished","in":"query","required":false,"description":"Whether the flat was let furnished","schema":{"anyOf":[{"type":"boolean"},{"type":"string","enum":["true","false"]}]}},{"name":"lang","in":"query","required":false,"description":"Language of notes and next step (default de)","schema":{"type":"string","enum":["de","en"]}}],"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckResult"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckResult"}}}},"422":{"description":"Address not found, ambiguous (candidates returned) or not covered","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckResult"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckResult"}}}}}},"post":{"operationId":"checkBerlinRentPost","summary":"Check a Berlin rent (recommended: keeps address and rent out of the URL)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"address":{"type":"string","minLength":3,"maxLength":120,"description":"Berlin street address with house number, e.g. 'Sonnenallee 12' or 'Sonnenallee 12, 12047 Berlin'"},"area_sqm":{"type":"number","minimum":10,"maximum":400,"description":"Living area in m²"},"construction_year":{"description":"Year the building was first ready for occupancy (Bezugsfertigkeit); omit or 'unknown' if not known","anyOf":[{"type":"integer","minimum":1700,"maximum":2100},{"type":"string","const":"unknown"}]},"move_in":{"type":"string","pattern":"^\\d{4}-\\d{2}(-\\d{2})?$","description":"Start of the tenancy per the contract, YYYY-MM or YYYY-MM-DD"},"contract_signed":{"description":"Date the lease was signed (selects the Mietspiegel edition); defaults to move_in","type":"string","pattern":"^\\d{4}-\\d{2}(-\\d{2})?$"},"cold_rent_eur":{"description":"Initial Nettokaltmiete per month in EUR (without heating/service charges). Omit to get only the local reference rent and the cap","type":"number","minimum":50,"maximum":20000},"furnished":{"description":"Whether the flat was let furnished","anyOf":[{"type":"boolean"},{"type":"string","enum":["true","false"]}]},"lang":{"description":"Language of notes and next step (default de)","type":"string","enum":["de","en"]}},"required":["address","area_sqm","move_in"]}}}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckResult"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckResult"}}}},"422":{"description":"Address not found, ambiguous or not covered","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckResult"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckResult"}}}}}}}},"components":{"schemas":{"CheckResult":{"type":"object","required":["ok"],"properties":{"ok":{"type":"boolean"},"status":{"type":"string","enum":["likely_overpaying","borderline","within_cap","needs_review","reference_only"]},"summary":{"type":"string"},"address":{"type":"object","properties":{"street":{"type":"string"},"house_number":{"type":"string"},"postcode":{"type":"string"},"district":{"type":"string"}}},"mietspiegel_edition":{"type":"string"},"wohnlage":{"type":"string","enum":["einfach","mittel","gut"]},"reference_rent_eur_per_sqm":{"type":"object","properties":{"low":{"type":"number"},"mid":{"type":"number"},"high":{"type":"number"}}},"max_initial_rent_eur_per_month":{"type":"object","properties":{"low":{"type":"number"},"high":{"type":"number"}}},"possible_overpayment_eur":{"type":"object","properties":{"per_month":{"type":"object","properties":{"low":{"type":"number"},"high":{"type":"number"}}},"per_year":{"type":"object","properties":{"low":{"type":"number"},"high":{"type":"number"}}}}},"flags":{"type":"array","items":{"type":"string"}},"notes":{"type":"array","items":{"type":"string"}},"next_step":{"type":"object","properties":{"text":{"type":"string"},"url":{"type":"string","format":"uri"}}},"disclaimer":{"type":"string"},"source":{"type":"string","format":"uri"},"error":{"type":"string","description":"Only when ok=false: house_number_missing, house_number_range, address_not_found, address_ambiguous, postcode_mismatch, invalid_date, move_in_in_future, outside_berlin, moved_in_before_mietpreisbremse, edition_unsupported, building_newer_than_edition, table_cell_missing, invalid_input, rate_limited"},"message":{"type":"string"},"candidates":{"type":"array","items":{"type":"object","properties":{"street":{"type":"string"},"postcode":{"type":"string"},"district":{"type":"string"}}}}}}}}}