{"openapi":"3.1.0","info":{"title":"Price Estimation API","description":"High-performance Price Estimation API","version":"1.0.1"},"paths":{"/v1/valuation/comparable":{"post":{"tags":["Valuation API - v1"],"summary":"valuation/comparable","description":"Estimate the value of a property using comparable properties.","operationId":"estimate_comparable_v1_valuation_comparable_post","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropertyEstimationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropertyEstimationResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"example":{"success":false,"error":"rate_limit_exceeded","message":"Hourly rate limit exceeded (1001/1000 requests/hour). Resets in 45 minutes at 2023-10-27T10:00:00Z","status_code":429}}}},"403":{"description":"IP Access Denied","content":{"application/json":{"example":{"success":false,"error":"ip_restricted","message":"Access denied from this IP: 203.0.113.1","status_code":403}}}},"422":{"description":"Validation Error","content":{"application/json":{"example":{"success":false,"error":"validation_error","message":"Validation Error","detail":[{"loc":["body","sqmt"],"msg":"field required","type":"value_error.missing"}],"status_code":422}}}}}}},"/v1/valuation/ml":{"post":{"tags":["Valuation API - v1"],"summary":"valuation/ml","description":"Estimate a property's value with the ML (gradient-boosted) model. Returns a point estimate, a P10–P90 range and a 1–5 confidence score, for Sale or Rent. Mirrors valuation/comparable but is model-based (no live comparable search). include_renovation adds a newly renovated scenario using the same Best model for eligible unrenovated sale properties.","operationId":"estimate_ml_v1_valuation_ml_post","parameters":[{"name":"config","in":"query","required":false,"schema":{"type":"string","default":"best","title":"Config"}},{"name":"include_renovation","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Renovation"}},{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropertyEstimationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/valuation/comparable-multiple":{"post":{"tags":["Valuation API - v1"],"summary":"valuation/comparable-multiple","description":"Estimate the value of a property using multiple combinations of listing type and property condition in parallel.","operationId":"estimate_comparable_multiple_v1_valuation_comparable_multiple_post","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MultiplePropertyEstimationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MultiplePropertyEstimationResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"example":{"success":false,"error":"rate_limit_exceeded","message":"Hourly rate limit exceeded (1001/1000 requests/hour). Resets in 45 minutes at 2023-10-27T10:00:00Z","status_code":429}}}},"403":{"description":"IP Access Denied","content":{"application/json":{"example":{"success":false,"error":"ip_restricted","message":"Access denied from this IP: 203.0.113.1","status_code":403}}}},"422":{"description":"Validation Error","content":{"application/json":{"example":{"success":false,"error":"validation_error","message":"Validation Error","detail":[{"loc":["body","sqmt"],"msg":"field required","type":"value_error.missing"}],"status_code":422}}}}}}},"/v1/valuation":{"post":{"tags":["Valuation API - v1"],"summary":"valuation","description":"Sale and Rent valuations from the comparable and Best ML engines in one call. Uses the same success/results envelope as comparable-multiple. Comparable result keys are unchanged (sale_not_renovated, rent_not_renovated); ML keys add ml_ (ml_sale_not_renovated, ml_rent_not_renovated). include_renovation adds sale_renovated, rent_renovated, ml_sale_renovated and ml_rent_renovated. Already renovated/new-build properties are not duplicated. Renovated estimates assume renovation in the current year and are condition-based valuations, not a validated renovation ROI or premium. Each engine retains its own range and confidence metadata. Sale prices are EUR; Rent prices are EUR/month. Top-level success means the batch completed; check success inside every result for individual failures.","operationId":"valuation_v1_valuation_post","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValuationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MultiplePropertyEstimationResponse"},"example":{"success":true,"results":{"sale_not_renovated":{"success":true,"suggested_price":200000,"suggested_psqmt":2500,"comparables":[]},"rent_not_renovated":{"success":true,"suggested_price":800,"suggested_psqmt":10,"comparables":[]},"sale_renovated":{"success":true,"suggested_price":240000,"suggested_psqmt":3000,"comparables":[]},"rent_renovated":{"success":true,"suggested_price":960,"suggested_psqmt":12,"comparables":[]},"ml_sale_not_renovated":{"success":true,"suggested_price":208000,"suggested_psqmt":2600,"model":"ml-gbm-best","comparables":[]},"ml_rent_not_renovated":{"success":true,"suggested_price":840,"suggested_psqmt":10.5,"model":"ml-gbm-best","comparables":[]},"ml_sale_renovated":{"success":true,"suggested_price":248000,"suggested_psqmt":3100,"model":"ml-gbm-best","comparables":[]},"ml_rent_renovated":{"success":true,"suggested_price":1000,"suggested_psqmt":12.5,"model":"ml-gbm-best","comparables":[]}}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"CalculationConfig":{"properties":{"similarity_weights":{"additionalProperties":{"type":"number"},"type":"object","title":"Similarity Weights","description":"Relative importance of similarity factors (will be normalized).","default":{"sqmt":0.1,"floor":0.3,"construction_year":0.2,"distance":0.4}},"enable_time_decay":{"type":"boolean","title":"Enable Time Decay","description":"Whether to apply exponential time-decay weighting to older comparables.","default":true},"tolerance_method":{"type":"string","title":"Tolerance Method","description":"Filtering method for size/floor/year tolerance ('hardcoded','hardcoded-floor', 'percentage', 'any').","default":"hardcoded"},"max_radius":{"type":"integer","title":"Max Radius","description":"Maximum search radius in meters for adaptive comparable search.","default":1000},"min_comparables":{"type":"integer","title":"Min Comparables","description":"Minimum required number of comparable properties to accept results.","default":30},"same_postal_code":{"type":"boolean","title":"Same Postal Code","description":"If True, restrict search to the same postal code as target property.","default":false}},"type":"object","title":"CalculationConfig","description":"Configuration used for property price estimation and recalculations.\nThis governs similarity weights, search tolerances, whether to use\ntemporal decay, and other key estimation parameters.","example":{"enable_time_decay":true,"max_radius":1000,"min_comparables":30,"same_postal_code":false,"similarity_weights":{"construction_year":0.2,"distance":0.4,"floor":0.3,"sqmt":0.1},"tolerance_method":"hardcoded"}},"ComparableProperty":{"properties":{"price":{"type":"number","title":"Price","description":"Listed or sold price of the property"},"psqmt":{"type":"number","title":"Psqmt","description":"Price per square meter"},"sqmt":{"type":"number","title":"Sqmt","description":"Total square meters of the property"},"floor":{"type":"number","title":"Floor","description":"Floor number of the property (-0.5 semi-basement, 0.5 mezzanine)"},"construction_year":{"type":"integer","title":"Construction Year","description":"Year the property was built"},"renovation_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Renovation Year","description":"Year of last major renovation (0 if never renovated)","default":0},"distance":{"type":"number","title":"Distance","description":"Distance from target property in meters"},"similarity_score":{"type":"number","title":"Similarity Score","description":"Similarity score to target property (0-1, higher is more similar)"},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postal Code","description":"Postal code of the property"},"lat":{"type":"number","title":"Lat","description":"Latitude coordinate"},"lng":{"type":"number","title":"Lng","description":"Longitude coordinate"},"time_weight":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Time Weight","description":"Time decay weight applied to this property (0.2-1.0)"},"final_weight":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Final Weight","description":"Final weight applied to this property"},"img_1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Img 1","description":"URL of primary property image"},"img_2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Img 2","description":"URL of secondary property image"},"has_parking":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Parking","description":"Property includes parking","default":false},"property_condition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Condition","description":"Overall condition: 'good', 'bad', 'renovated', etc."},"neighborhood_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Neighborhood Id","description":"Identifier of the neighborhood polygon this comparable falls in (resolved from its true location; lets the client group comparables by neighborhood)."}},"additionalProperties":true,"type":"object","required":["price","psqmt","sqmt","floor","construction_year","distance","similarity_score","lat","lng"],"title":"ComparableProperty","description":"A comparable property used in the valuation analysis.","example":{"construction_year":2000,"distance":618.35,"floor":3,"has_parking":false,"id":"1116929897","postal_code":"10672","price":145000.0,"property_condition":"good","psqmt":1835.44,"renovation_year":0,"similarity_score":0.826,"sqmt":79.0,"time_weight":0.623}},"Confidence":{"properties":{"score":{"type":"number","maximum":100.0,"minimum":0.0,"title":"Score","description":"Overall confidence score (0-100)"},"level":{"type":"string","title":"Level","description":"Confidence level: 'Very Low', 'Low', 'Moderate', 'High', 'Very High'"},"interpretation":{"type":"string","title":"Interpretation","description":"Human-readable interpretation of confidence level"},"factors":{"allOf":[{"$ref":"#/components/schemas/ConfidenceFactors"}],"description":"Individual confidence factors"},"details":{"allOf":[{"$ref":"#/components/schemas/ConfidenceDetails"}],"description":"Detailed metrics for confidence calculation"}},"type":"object","required":["score","level","interpretation","factors","details"],"title":"Confidence","description":"Confidence assessment of the property valuation.","example":{"details":{"avg_similarity":0.736,"comparables_found":35,"price_cv":0.155,"search_radius":300},"factors":{"data_quality":1.0,"price_consistency":0.845,"proximity":0.55,"sample_size":0.583,"search_efficiency":1.0,"similarity":0.736,"statistical_reliability":0.8},"interpretation":"Adequate data but some variance in comparables","level":"Moderate","score":73.8}},"ConfidenceDetails":{"properties":{"comparables_found":{"type":"integer","title":"Comparables Found","description":"Total number of comparable properties found"},"search_radius":{"type":"integer","title":"Search Radius","description":"Final search radius used in meters"},"avg_similarity":{"type":"number","title":"Avg Similarity","description":"Average similarity score of comparables"},"price_cv":{"type":"number","title":"Price Cv","description":"Coefficient of variation for prices (std/mean)"}},"type":"object","required":["comparables_found","search_radius","avg_similarity","price_cv"],"title":"ConfidenceDetails","description":"Detailed metrics used in confidence calculation."},"ConfidenceFactors":{"properties":{"sample_size":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Sample Size","description":"Confidence based on number of comparables (0-1)"},"similarity":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Similarity","description":"Confidence based on property similarity (0-1)"},"price_consistency":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Price Consistency","description":"Confidence based on price variance (0-1)"},"proximity":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Proximity","description":"Confidence based on geographic proximity (0-1)"},"statistical_reliability":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Statistical Reliability","description":"Confidence based on statistical measures (0-1)"}},"type":"object","required":["sample_size","similarity","price_consistency","proximity","statistical_reliability"],"title":"ConfidenceFactors","description":"Individual factors contributing to overall confidence score."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"IterationTiming":{"properties":{"radius":{"type":"integer","title":"Radius","description":"Search radius for this iteration"},"location_filter_ms":{"type":"number","title":"Location Filter Ms","description":"Time spent filtering by location"},"score_calc_ms":{"type":"number","title":"Score Calc Ms","description":"Time spent calculating similarity scores"},"tolerance_filter_ms":{"type":"number","title":"Tolerance Filter Ms","description":"Time spent applying tolerance filters"},"total_ms":{"type":"number","title":"Total Ms","description":"Total time for this iteration"}},"type":"object","required":["radius","location_filter_ms","score_calc_ms","tolerance_filter_ms","total_ms"],"title":"IterationTiming","description":"Timing details for a single search iteration."},"MultiplePropertyEstimationRequest":{"properties":{"lat":{"type":"number","title":"Lat","description":"Latitude of the property"},"lng":{"type":"number","title":"Lng","description":"Longitude of the property"},"postal_code":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Postal Code","description":"Postal code"},"sqmt":{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0,"title":"Sqmt","description":"Square meters (9999 for all)"},"floor":{"type":"number","maximum":9999.0,"minimum":-1.0,"title":"Floor","description":"Floor number (-0.5 for semi-basement, -1 for basement, 9999 for all); rounded down for valuation"},"construction_year":{"type":"integer","title":"Construction Year","description":"Year of construction (9999 for all)"},"renovation_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Renovation Year","description":"Year of renovation"},"property_condition":{"items":{"type":"string","enum":["good","needs_renovation","renovated","not_renovated","new_build","all"]},"type":"array","title":"Property Condition","description":"List of property conditions","default":["not_renovated"]},"property_type":{"anyOf":[{"type":"string","enum":["apartment","house","maisonette","all"]},{"type":"null"}],"title":"Property Type","description":"Property type (optional)","default":"all","example":"apartment"},"has_parking":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Parking","description":"Has a parking space (used by the ML endpoint's location-aware parking premium)"},"is_furnished":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Furnished","description":"Furnished filter for the comparable search. True = only furnished comparables, False = only unfurnished, None = no filter (all). Most relevant for Rent listings."},"max_radius":{"type":"integer","maximum":5000.0,"minimum":100.0,"title":"Max Radius","description":"Maximum search radius in meters","default":1000},"min_comparables":{"type":"integer","maximum":200.0,"minimum":5.0,"title":"Min Comparables","description":"Minimum number of comparable properties","default":30},"bid_ask_discount":{"type":"number","title":"Bid Ask Discount","description":"Market discount applied to estimate.","default":0.07},"ml_objective":{"type":"string","enum":["median","mean"],"title":"Ml Objective","description":"ML point estimator (only affects ML results): 'mean' (squared-error fit, the mean of log-price — the default) or 'median' (quantile-0.5, outlier-robust).","default":"mean"},"same_postal_code":{"type":"boolean","title":"Same Postal Code","description":"Restrict search to same postal code","default":false},"liquid_assets":{"type":"boolean","title":"Liquid Assets","description":"Restrict search to liquid assets","default":false},"enable_time_decay":{"type":"boolean","title":"Enable Time Decay","description":"Apply time-based weighting to older listings","default":true},"tolerance_method":{"type":"string","enum":["hardcoded","hardcoded-floor","percentage","any"],"title":"Tolerance Method","description":"Method for determining tolerance","default":"hardcoded"},"similarity_weights":{"anyOf":[{"additionalProperties":{"type":"number"},"type":"object"},{"type":"null"}],"title":"Similarity Weights","description":"Weights for similarity calculation (must sum to 1.0)","default":{"sqmt":0.1,"floor":0.3,"construction_year":0.2,"distance":0.4}},"include_comparables":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Include Comparables","description":"Internal flag to include comparable properties. If None, includes comparables without images."},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address","description":"Hidden parameter to geocode address to lat/lon using internal script"},"parent_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Run Id","description":"Internal ID to group multiple estimation requests together in logs"},"listing_type":{"items":{"type":"string","enum":["Sale","Rent"]},"type":"array","title":"Listing Type","description":"List of listing types (e.g. ['Sale', 'Rent'])"},"use_renovation_premium":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Use Renovation Premium","description":"Calculate renovation premium using H3 index logic","default":false}},"type":"object","required":["lat","lng","sqmt","floor","construction_year","listing_type"],"title":"MultiplePropertyEstimationRequest","description":"Request model for multiple property price estimation","example":{"bid_ask_discount":0.07,"construction_year":2010,"floor":2,"lat":37.996047,"listing_type":["Rent","Sale"],"lng":23.7348226,"max_radius":1000,"min_comparables":30,"postal_code":"11631","property_condition":["not_renovated","renovated"],"property_type":"apartment","similarity_weights":{"construction_year":0.2,"distance":0.4,"floor":0.3,"sqmt":0.1},"sqmt":80,"use_renovation_premium":true}},"MultiplePropertyEstimationResponse":{"properties":{"success":{"type":"boolean","title":"Success","description":"Whether the overall multiple estimation completed"},"results":{"type":"object","title":"Results","description":"Dictionary mapping combinations (e.g. 'Sale_not_renovated') to their respective estimation results"}},"type":"object","required":["success","results"],"title":"MultiplePropertyEstimationResponse","description":"Complete response for multiple property price estimation","example":{"results":{"sale_not_renovated":{"comparables":[],"success":true,"suggested_price":250000,"suggested_psqmt":2500}},"success":true}},"PriceRange":{"properties":{"confidence_low":{"type":"number","title":"Confidence Low","description":"Lower bound of 95% confidence interval for the estimated price"},"confidence_high":{"type":"number","title":"Confidence High","description":"Upper bound of 95% confidence interval for the estimated price"},"sample_low":{"type":"number","title":"Sample Low","description":"25th percentile price based on comparable properties"},"sample_high":{"type":"number","title":"Sample High","description":"75th percentile price based on comparable properties"}},"type":"object","required":["confidence_low","confidence_high","sample_low","sample_high"],"title":"PriceRange","description":"Price range estimates based on statistical analysis of comparable properties.","example":{"confidence_high":245573.0,"confidence_low":139277.0,"sample_high":209479.0,"sample_low":176650.0}},"PropertyEstimationRequest":{"properties":{"lat":{"type":"number","title":"Lat","description":"Latitude of the property"},"lng":{"type":"number","title":"Lng","description":"Longitude of the property"},"postal_code":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Postal Code","description":"Postal code"},"sqmt":{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0,"title":"Sqmt","description":"Square meters (9999 for all)"},"floor":{"type":"number","maximum":9999.0,"minimum":-1.0,"title":"Floor","description":"Floor number (-0.5 for semi-basement, -1 for basement, 9999 for all); rounded down for valuation"},"construction_year":{"type":"integer","title":"Construction Year","description":"Year of construction (9999 for all)"},"renovation_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Renovation Year","description":"Year of renovation"},"property_condition":{"type":"string","enum":["good","needs_renovation","renovated","not_renovated","new_build","all"],"title":"Property Condition","description":"Property condition","default":"not_renovated"},"property_type":{"anyOf":[{"type":"string","enum":["apartment","house","maisonette","all"]},{"type":"null"}],"title":"Property Type","description":"Property type (optional)","default":"all","example":"apartment"},"has_parking":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Parking","description":"Has a parking space (used by the ML endpoint's location-aware parking premium)"},"is_furnished":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Furnished","description":"Furnished filter for the comparable search. True = only furnished comparables, False = only unfurnished, None = no filter (all). Most relevant for Rent listings."},"max_radius":{"type":"integer","maximum":5000.0,"minimum":100.0,"title":"Max Radius","description":"Maximum search radius in meters","default":1000},"min_comparables":{"type":"integer","maximum":200.0,"minimum":5.0,"title":"Min Comparables","description":"Minimum number of comparable properties","default":30},"bid_ask_discount":{"type":"number","title":"Bid Ask Discount","description":"Market discount applied to estimate.","default":0.07},"ml_objective":{"type":"string","enum":["median","mean"],"title":"Ml Objective","description":"ML point estimator (only affects ML results): 'mean' (squared-error fit, the mean of log-price — the default) or 'median' (quantile-0.5, outlier-robust).","default":"mean"},"same_postal_code":{"type":"boolean","title":"Same Postal Code","description":"Restrict search to same postal code","default":false},"liquid_assets":{"type":"boolean","title":"Liquid Assets","description":"Restrict search to liquid assets","default":false},"enable_time_decay":{"type":"boolean","title":"Enable Time Decay","description":"Apply time-based weighting to older listings","default":true},"tolerance_method":{"type":"string","enum":["hardcoded","hardcoded-floor","percentage","any"],"title":"Tolerance Method","description":"Method for determining tolerance","default":"hardcoded"},"similarity_weights":{"anyOf":[{"additionalProperties":{"type":"number"},"type":"object"},{"type":"null"}],"title":"Similarity Weights","description":"Weights for similarity calculation (must sum to 1.0)","default":{"sqmt":0.1,"floor":0.3,"construction_year":0.2,"distance":0.4}},"include_comparables":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Include Comparables","description":"Internal flag to include comparable properties. If None, includes comparables without images."},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address","description":"Hidden parameter to geocode address to lat/lon using internal script"},"parent_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Run Id","description":"Internal ID to group multiple estimation requests together in logs"},"listing_type":{"type":"string","enum":["Sale","Rent"],"title":"Listing Type","description":"Type of listing"},"use_renovation_premium":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Use Renovation Premium","description":"Calculate renovation premium using H3 index logic","default":false}},"type":"object","required":["lat","lng","sqmt","floor","construction_year","listing_type"],"title":"PropertyEstimationRequest","description":"Request model for a single property price estimation.","example":{"bid_ask_discount":0.07,"construction_year":2010,"floor":2,"lat":37.996047,"listing_type":"Rent","lng":23.7348226,"max_radius":1000,"min_comparables":30,"postal_code":"11631","property_condition":"not_renovated","property_type":"apartment","similarity_weights":{"construction_year":0.2,"distance":0.4,"floor":0.3,"sqmt":0.1},"sqmt":80,"use_renovation_premium":true},"response_example":{"renovation_premium_valuation":{"baseline_psqmt":2500,"floor_bin":"1-2","h3_index":"871d8d21effffff","price_range":{"confidence_high":340000,"confidence_low":280000,"sample_high":330000,"sample_low":290000},"renovation_premium_pct":25.0,"suggested_price":312500,"suggested_psqmt":3125,"transaction":"sale"},"success":true,"suggested_price":250000,"suggested_psqmt":2500}},"PropertyEstimationResponse":{"properties":{"success":{"type":"boolean","title":"Success","description":"Whether the estimation was successful"},"median_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Price","description":"Median price per sqm from comparables"},"suggested_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Suggested Price","description":"Suggested total price for the property"},"suggested_psqmt":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Suggested Psqmt","description":"Suggested price per square meter"},"price_range":{"anyOf":[{"$ref":"#/components/schemas/PriceRange"},{"type":"null"}],"description":"Statistical price range estimates"},"comparables":{"items":{"$ref":"#/components/schemas/ComparableProperty"},"type":"array","title":"Comparables","description":"List of comparable properties used in valuation (Internal use only)"},"statistics":{"anyOf":[{"$ref":"#/components/schemas/Statistics"},{"type":"null"}],"description":"Statistical summary of the estimation"},"config":{"anyOf":[{"$ref":"#/components/schemas/CalculationConfig"},{"type":"null"}],"description":"Config used in valuation"},"search_metadata":{"anyOf":[{"$ref":"#/components/schemas/SearchMetadata"},{"type":"null"}],"description":"Metadata about the search process"},"confidence":{"anyOf":[{"$ref":"#/components/schemas/Confidence"},{"type":"null"}],"description":"Confidence assessment of the valuation"},"analysis_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis Url","description":"URL for detailed analysis dashboard"},"target_property":{"anyOf":[{"$ref":"#/components/schemas/TargetProperty"},{"type":"null"}],"description":"Details of the property being valued"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error","description":"Error message if estimation failed"},"from_cache":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"From Cache","description":"Whether this result was retrieved from cache","default":false},"cache_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cache Key","description":"Cache key used for this result"},"status_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Status Code","description":"Request status code"},"is_test":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Test","description":"Whether it is related to a Test API key","default":false},"renovation_premium_valuation":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Renovation Premium Valuation","description":"Valuation analysis based on renovation premium, including projected renovated price and ranges"}},"additionalProperties":true,"type":"object","required":["success"],"title":"PropertyEstimationResponse","description":"Complete response for property price estimation.","example":{"analysis_url":"","comparables":[],"confidence":{"details":{"avg_similarity":0.6,"comparables_found":14,"price_cv":0.123,"search_radius":900},"factors":{"price_consistency":0.753,"proximity":0.387,"sample_size":0.319,"similarity":0.465,"statistical_reliability":0.833},"interpretation":"Limited data or significant property variations","level":"Low (2/5)","score":2},"config":{"enable_time_decay":true,"max_radius":1000,"min_comparables":30,"same_postal_code":false,"similarity_weights":{"construction_year":0.2,"distance":0.4,"floor":0.3,"sqmt":0.1},"tolerance_method":"hardcoded"},"from_cache":false,"is_test":false,"median_price":9,"price_range":{"confidence_high":857,"confidence_low":665,"sample_high":797,"sample_low":681},"renovation_premium_valuation":{"baseline_psqmt":2500,"floor_bin":"1-2","h3_index":"871d8d21effffff","price_range":{"confidence_high":340000,"confidence_low":280000,"sample_high":330000,"sample_low":290000},"renovation_premium_pct":25.0,"suggested_price":312500,"suggested_psqmt":3125,"transaction":"sale"},"search_metadata":{"final_calculation_ms":1.88,"final_radius":900,"iteration_timings":[{"location_filter_ms":15.81,"radius":300,"score_calc_ms":4.42,"tolerance_filter_ms":0.46,"total_ms":20.7},{"location_filter_ms":14.23,"radius":600,"score_calc_ms":3.98,"tolerance_filter_ms":0.5,"total_ms":18.78},{"location_filter_ms":14.17,"radius":900,"score_calc_ms":3.92,"tolerance_filter_ms":0.47,"total_ms":18.63}],"max_radius":1000,"search_exhausted":true,"search_history":[{"avg_similarity":0,"candidates":14,"filtered":0,"radius":300},{"avg_similarity":0.6620532444438726,"candidates":71,"filtered":6,"radius":600},{"avg_similarity":0.5999603028893974,"candidates":168,"filtered":14,"radius":900}],"warning":"Only 14 comparables found (minimum: 30)"},"statistics":{"avg_distance":613,"avg_similarity_score":0.6,"initial_mean_psqmt":9,"initial_median_psqmt":9,"n_comparables":14,"n_comparables_used":14,"n_outliers_removed":0,"timing_breakdown":{"adaptive_search_ms":60.4,"confidence_calculation_ms":0.73,"database_fetch_ms":159.24,"dataframe_conversion_ms":1.4,"formatting_ms":0.04,"properties_count":226,"total_processing_ms":221.85},"weighted_psqmt":10,"weighted_std_psqmt":1},"success":true,"suggested_price":761,"suggested_psqmt":10,"target_property":{"construction_year":2010,"energy_class":"0","floor":2,"has_balcony":false,"has_parking":false,"has_storage_space":false,"has_view":false,"has_yard":false,"lat":37.996047,"lng":23.7348226,"postal_code":"11631","sqmt":80}}},"SearchHistoryItem":{"properties":{"radius":{"type":"integer","title":"Radius","description":"Search radius in meters for this iteration"},"candidates":{"type":"integer","title":"Candidates","description":"Number of properties within radius"},"filtered":{"type":"integer","title":"Filtered","description":"Number of properties after applying filters"},"avg_similarity":{"type":"number","title":"Avg Similarity","description":"Average similarity score of filtered properties"}},"type":"object","required":["radius","candidates","filtered","avg_similarity"],"title":"SearchHistoryItem","description":"Record of a single radius search iteration."},"SearchMetadata":{"properties":{"final_radius":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Final Radius","description":"Final search radius used in meters"},"max_radius":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Radius","description":"Max radius used in meters"},"search_exhausted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Search Exhausted","description":"Whether maximum radius was reached without finding enough comparables"},"search_history":{"anyOf":[{"items":{"$ref":"#/components/schemas/SearchHistoryItem"},"type":"array"},{"type":"null"}],"title":"Search History","description":"History of all radius expansion iterations"},"warning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Warning","description":"Warning message if search didn't meet all criteria"},"iteration_timings":{"anyOf":[{"items":{"$ref":"#/components/schemas/IterationTiming"},"type":"array"},{"type":"null"}],"title":"Iteration Timings","description":"Timing details for each search iteration"},"final_calculation_ms":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Final Calculation Ms","description":"Time spent in final price calculation"},"method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Method","description":"Search method used: 'adaptive_radius' or 'manual_selection'"},"selected_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Selected Count","description":"Number of manually selected properties"},"properties_found":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Properties Found","description":"Number of properties matching selected IDs"},"avg_distance":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Distance","description":"Average distance for manually selected properties"},"max_distance":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Distance","description":"Maximum distance for manually selected properties"},"based_on_search_radius":{"anyOf":[{},{"type":"null"}],"title":"Based On Search Radius","description":"Original search radius for manual selection"},"max_radius_tried":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Radius Tried","description":"Maximum radius attempted during search"}},"type":"object","title":"SearchMetadata","description":"Metadata about the search process and algorithm performance."},"Statistics":{"properties":{"n_comparables":{"type":"integer","title":"N Comparables","description":"Total number of comparable properties found"},"n_comparables_used":{"type":"integer","title":"N Comparables Used","description":"Number of comparables used after outlier removal"},"n_outliers_removed":{"type":"integer","title":"N Outliers Removed","description":"Number of properties removed as outliers"},"initial_median_psqmt":{"type":"number","title":"Initial Median Psqmt","description":"Median price per sqm before outlier removal"},"initial_mean_psqmt":{"type":"number","title":"Initial Mean Psqmt","description":"Mean price per sqm before outlier removal"},"weighted_psqmt":{"type":"number","title":"Weighted Psqmt","description":"Weighted average price per sqm (final estimate)"},"weighted_std_psqmt":{"type":"number","title":"Weighted Std Psqmt","description":"Weighted standard deviation of price per sqm"},"avg_distance":{"type":"number","title":"Avg Distance","description":"Average distance of comparables from target in meters"},"avg_similarity_score":{"type":"number","title":"Avg Similarity Score","description":"Average similarity score of comparable properties"},"processing_time_ms":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Processing Time Ms","description":"Total processing time in milliseconds"},"timing_breakdown":{"type":"object","title":"Timing Breakdown","description":"Detailed timing breakdown"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message","description":"Additional status or warning message"}},"type":"object","required":["n_comparables","n_comparables_used","n_outliers_removed","initial_median_psqmt","initial_mean_psqmt","weighted_psqmt","weighted_std_psqmt","avg_distance","avg_similarity_score"],"title":"Statistics","description":"Statistical summary of the estimation process and results."},"TargetProperty":{"properties":{"lat":{"type":"number","title":"Lat","description":"Latitude coordinate"},"lng":{"type":"number","title":"Lng","description":"Longitude coordinate"},"sqmt":{"type":"number","title":"Sqmt","description":"Square meters of the property"},"floor":{"type":"integer","title":"Floor","description":"Floor number"},"construction_year":{"type":"integer","title":"Construction Year","description":"Year of construction"},"renovation_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Renovation Year","description":"Year of renovation"},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postal Code","description":"Postal code"},"has_parking":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Parking","description":"Property includes parking","default":false},"has_view":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has View","description":"Property has notable view","default":false},"has_yard":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Yard","description":"Property includes yard/garden","default":false},"has_balcony":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Balcony","description":"Property has balcony","default":false},"has_storage_space":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Storage Space","description":"Property includes storage space","default":false},"energy_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Energy Class","description":"Energy efficiency rating","default":"0"},"property_condition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Condition","description":"Overall condition: 'good', 'bad', 'renovated', etc."},"property_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Type","description":"Property type: 'apartment', 'house', etc."},"property_use":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Use","description":"Intended use: 'residential', 'commercial', etc."},"listing_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Listing Type","description":"Advertisement type: 'rent', 'sale', etc."}},"type":"object","required":["lat","lng","sqmt","floor","construction_year"],"title":"TargetProperty","description":"The property being valued.","example":{"ad_type":"sale","construction_year":2005,"energy_class":"2","floor":3,"has_balcony":true,"has_parking":true,"has_storage_space":true,"has_view":true,"has_yard":false,"lat":37.9794,"lng":23.7444,"postal_code":"10675","property_condition":"renovated","property_type":"apartment","property_use":"residential","sqmt":85}},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"ValuationRequest":{"properties":{"lat":{"type":"number","title":"Lat","description":"Latitude of the property"},"lng":{"type":"number","title":"Lng","description":"Longitude of the property"},"postal_code":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Postal Code","description":"Postal code"},"sqmt":{"type":"number","exclusiveMaximum":9999.0,"exclusiveMinimum":0.0,"title":"Sqmt","description":"Actual property area in square meters"},"floor":{"type":"number","maximum":9999.0,"minimum":-1.0,"title":"Floor","description":"Floor number (-0.5 for semi-basement, -1 for basement, 9999 for all); rounded down for valuation"},"construction_year":{"type":"integer","title":"Construction Year","description":"Year of construction (9999 for all)"},"renovation_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Renovation Year","description":"Year of renovation"},"property_condition":{"type":"string","enum":["good","needs_renovation","renovated","not_renovated","new_build","all"],"title":"Property Condition","description":"Property condition","default":"not_renovated"},"property_type":{"anyOf":[{"type":"string","enum":["apartment","house","maisonette","all"]},{"type":"null"}],"title":"Property Type","description":"Property type (optional)","default":"all","example":"apartment"},"has_parking":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Parking","description":"Has a parking space (used by the ML endpoint's location-aware parking premium)"},"is_furnished":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Furnished","description":"Furnished filter for the comparable search. True = only furnished comparables, False = only unfurnished, None = no filter (all). Most relevant for Rent listings."},"max_radius":{"type":"integer","maximum":5000.0,"minimum":100.0,"title":"Max Radius","description":"Maximum search radius in meters","default":1000},"min_comparables":{"type":"integer","maximum":200.0,"minimum":5.0,"title":"Min Comparables","description":"Minimum number of comparable properties","default":30},"bid_ask_discount":{"type":"number","title":"Bid Ask Discount","description":"Market discount applied to estimate.","default":0.07},"ml_objective":{"type":"string","enum":["median","mean"],"title":"Ml Objective","description":"ML point estimator (only affects ML results): 'mean' (squared-error fit, the mean of log-price — the default) or 'median' (quantile-0.5, outlier-robust).","default":"mean"},"same_postal_code":{"type":"boolean","title":"Same Postal Code","description":"Restrict search to same postal code","default":false},"liquid_assets":{"type":"boolean","title":"Liquid Assets","description":"Restrict search to liquid assets","default":false},"enable_time_decay":{"type":"boolean","title":"Enable Time Decay","description":"Apply time-based weighting to older listings","default":true},"tolerance_method":{"type":"string","enum":["hardcoded","hardcoded-floor","percentage","any"],"title":"Tolerance Method","description":"Method for determining tolerance","default":"hardcoded"},"similarity_weights":{"anyOf":[{"additionalProperties":{"type":"number"},"type":"object"},{"type":"null"}],"title":"Similarity Weights","description":"Weights for similarity calculation (must sum to 1.0)","default":{"sqmt":0.1,"floor":0.3,"construction_year":0.2,"distance":0.4}},"include_comparables":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Include Comparables","description":"Internal flag to include comparable properties. If None, includes comparables without images."},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address","description":"Hidden parameter to geocode address to lat/lon using internal script"},"parent_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Run Id","description":"Internal ID to group multiple estimation requests together in logs"},"include_renovation":{"type":"boolean","title":"Include Renovation","description":"Add renovated Sale and Rent estimates from both engines. Already renovated and new-build properties are valued once per market.","default":false}},"additionalProperties":false,"type":"object","required":["lat","lng","sqmt","floor","construction_year"],"title":"ValuationRequest","description":"Both engines and both markets, with optional renovated-condition estimates.","example":{"construction_year":1985,"floor":2,"include_renovation":true,"lat":37.996047,"lng":23.7348226,"property_condition":"not_renovated","property_type":"apartment","sqmt":80}}}}}