{"openapi":"3.1.0","info":{"title":"Real Estate Analytics & Prediction API","description":"API for real estate data analysis and price prediction focusing on Tehran.","version":"1.0.0"},"paths":{"/api/v1/analysis/price-trends/by-id":{"get":{"tags":["Price Trend Endpoints"],"summary":"Get total price trends for a location (city, district, or neighborhood)","description":"Analyzes total price trends based on the most specific location provided (neighborhood > district > city).","operationId":"price_trend_by_id_api_v1_analysis_price_trends_by_id_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"city","in":"query","required":true,"schema":{"type":"string","title":"City"}},{"name":"time_period","in":"query","required":true,"schema":{"enum":["3m","6m","1y","2y","5y"],"type":"string","title":"Time Period"}},{"name":"category","in":"query","required":true,"schema":{"enum":["buy","rent"],"type":"string","title":"Category"}},{"name":"property_type","in":"query","required":true,"schema":{"enum":["apartment","home","office","villa","land"],"type":"string","title":"Property Type"}},{"name":"district","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"District"}},{"name":"neighborhood_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Neighborhood Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceTrendAnalysisResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/analysis/price-trends/by-name":{"get":{"tags":["Price Trend Endpoints"],"summary":"Get per square meter price trends for a location (city, district, or neighborhood)","description":"Analyzes per square meter price trends based on the most specific location provided (neighborhood > district > city).","operationId":"price_trend_by_name_api_v1_analysis_price_trends_by_name_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"city","in":"query","required":true,"schema":{"type":"string","title":"City"}},{"name":"time_period","in":"query","required":true,"schema":{"enum":["3m","6m","1y","2y","5y"],"type":"string","title":"Time Period"}},{"name":"category","in":"query","required":true,"schema":{"enum":["buy","rent"],"type":"string","title":"Category"}},{"name":"property_type","in":"query","required":true,"schema":{"enum":["apartment","home","office","villa","land"],"type":"string","title":"Property Type"}},{"name":"district","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"District"}},{"name":"neighborhood_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Neighborhood Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceTrendAnalysisResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/analysis/sync-price-trends":{"post":{"tags":["Price Trend Endpoints"],"summary":"Trigger Sync Price Trends","operationId":"trigger_sync_price_trends_api_v1_analysis_sync_price_trends_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"force","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/analysis/price-trends/summary":{"get":{"tags":["Price Trend Endpoints"],"summary":"Get price trends summary (6/12/24 months)","description":"Returns only the key price trend percentages for exactly three fixed periods: 6 months, 12 months, and 24 months. Designed for quick market snapshot display (not for full charting).","operationId":"get_price_trends_summary_api_v1_analysis_price_trends_summary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"city","in":"query","required":true,"schema":{"type":"string","title":"City"}},{"name":"category","in":"query","required":true,"schema":{"enum":["buy","rent"],"type":"string","title":"Category"}},{"name":"property_type","in":"query","required":true,"schema":{"enum":["apartment","home","office","villa","land"],"type":"string","title":"Property Type"}},{"name":"district","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"District"}},{"name":"neighborhood_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Neighborhood Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceTrenSummaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/analysis/price-trends/one-month":{"get":{"tags":["Price Trend Endpoints"],"summary":"Get latest price trend and percentage change","description":"Returns only the latest recorded price per square meter, its display value, and the percentage change.","operationId":"get_latest_price_trend_api_v1_analysis_price_trends_one_month_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"city","in":"query","required":true,"schema":{"type":"string","title":"City"}},{"name":"time_period","in":"query","required":true,"schema":{"enum":["3m","6m","1y","2y","5y"],"type":"string","title":"Time Period"}},{"name":"category","in":"query","required":true,"schema":{"enum":["buy","rent"],"type":"string","title":"Category"}},{"name":"property_type","in":"query","required":true,"schema":{"enum":["apartment","home","office","villa","land"],"type":"string","title":"Property Type"}},{"name":"district","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"District"}},{"name":"neighborhood_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Neighborhood Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LatestPriceTrendResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/analysis/neighborhoods/price-comparison-similar":{"get":{"tags":["Price Comparison Endpoints"],"summary":"Compare monthly average price per m2 of a neighborhood with its similar neighborhoods.","description":"Returns the monthly average price per square meter for the specified neighborhood and a list of its similar neighborhoods with their monthly average prices per square meter. The main neighborhood is first identified using canonical mapping.","operationId":"get_neighborhood_price_comparison","security":[{"HTTPBearer":[]}],"parameters":[{"name":"neighborhood_name","in":"query","required":true,"schema":{"type":"string","minLength":1,"description":"Neighborhood name (e.g., 'Poonak', 'Jordan').","title":"Neighborhood Name"},"description":"Neighborhood name (e.g., 'Poonak', 'Jordan')."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/neighborhood-analytics":{"post":{"tags":["Neighborhood Analysis"],"summary":"Neighborhood Analytics","operationId":"neighborhood_analytics_api_v1_neighborhood_analytics_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NeighborhoodAnalysisInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/update-model":{"post":{"tags":["update Price Model"],"summary":"Start Update","operationId":"start_update_api_v1_update_model_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"version","in":"query","required":true,"schema":{"type":"string","title":"Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/task-status/{task_id}":{"get":{"tags":["update Price Model"],"summary":"Get Status","operationId":"get_status_api_v1_task_status__task_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/predict":{"post":{"tags":["Price Prediction"],"summary":"Predict Price","operationId":"predict_price_api_v1_predict_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PricePredictionByIdInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/predict-by-neighborhood-name":{"post":{"tags":["Price Prediction"],"summary":"Predict Price","operationId":"predict_price_api_v1_predict_by_neighborhood_name_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PricePredictionByNameInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/model-versions":{"get":{"tags":["Price Prediction"],"summary":"Get Model Versions","operationId":"get_model_versions_api_v1_model_versions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/forward-test-versions":{"get":{"tags":["Price Prediction"],"summary":"Get Forward Test Versions","operationId":"get_forward_test_versions_api_v1_forward_test_versions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/make-test-errors":{"post":{"tags":["Forward Test"],"summary":"Make Errors","description":"This api should be called on local(not main) server","operationId":"make_errors_api_v1_make_test_errors_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"model_version","in":"query","required":true,"schema":{"title":"Model Version"}},{"name":"forward_test_version","in":"query","required":true,"schema":{"title":"Forward Test Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/transform-test-errors":{"post":{"tags":["Forward Test"],"summary":"Transform Test Errors","description":"This api should be called on local(not main) server","operationId":"transform_test_errors_api_v1_transform_test_errors_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"version","in":"query","required":true,"schema":{"title":"Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/error-distribution":{"get":{"tags":["Forward Test"],"summary":"Error Distribution","operationId":"error_distribution_api_v1_error_distribution_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"model_version","in":"query","required":true,"schema":{"title":"Model Version"}},{"name":"forward_test_version","in":"query","required":true,"schema":{"title":"Forward Test Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/set-production-model":{"post":{"tags":["Price Prediction"],"summary":"Set Production","operationId":"set_production_api_v1_set_production_model_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"version","in":"query","required":true,"schema":{"title":"Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/get-production-model":{"get":{"tags":["Price Prediction"],"summary":"Get Production","operationId":"get_production_api_v1_get_production_model_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/prediction/predict":{"post":{"tags":["Rent Prediction"],"summary":"Predicts sell value of a property","operationId":"get_rent_prediction_api_v1_prediction_predict_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PredictionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PredictionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/analysis/find-nearby-pois":{"get":{"tags":["POI Endpoints"],"summary":"Find Pois","operationId":"find_pois_api_v1_analysis_find_nearby_pois_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"latitude","in":"query","required":false,"schema":{"type":"number","default":35.7335,"title":"Latitude"}},{"name":"longitude","in":"query","required":false,"schema":{"type":"number","default":51.4168,"title":"Longitude"}},{"name":"radius_km","in":"query","required":false,"schema":{"type":"number","default":5.0,"title":"Radius Km"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FullResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/analysis/neighborhood/similar-by-name":{"get":{"tags":["Similarity Neighborhoods"],"summary":"Find similar neighborhoods by name","description":"Finds and returns a list of similar neighborhoods based on the provided name, along with the reference neighborhood's details.","operationId":"get_similar_neighborhoods_by_name_api_v1_analysis_neighborhood_similar_by_name_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"name","in":"query","required":true,"schema":{"type":"string","description":"The name of the neighborhood to find similar ones for.","title":"Name"},"description":"The name of the neighborhood to find similar ones for."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__endpoints__similar_neighborhoods_endpoint__SimilarityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/analysis/neighborhood/similar-by-id":{"get":{"tags":["Similarity Neighborhoods"],"summary":"Find similar neighborhoods by id","description":"Finds and returns a list of similar neighborhoods based on the provided id, along with the reference neighborhood's details.","operationId":"get_similar_neighborhoods_by_id_api_v1_analysis_neighborhood_similar_by_id_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"neighborhood_id","in":"query","required":true,"schema":{"type":"integer","description":"The ID of the neighborhood to find similar ones for.","title":"Neighborhood Id"},"description":"The ID of the neighborhood to find similar ones for."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__endpoints__similar_neighborhoods_endpoint__SimilarityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/analysis/neighborhood/similar-by-location":{"get":{"tags":["Similarity Neighborhoods"],"summary":"Find similar neighborhoods by location","description":"Finds and returns a list of similar neighborhoods based on geographic coordinates (latitude and longitude), along with the reference neighborhood's details.","operationId":"get_similar_neighborhoods_by_location_api_v1_analysis_neighborhood_similar_by_location_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"lat","in":"query","required":true,"schema":{"type":"number","description":"The latitude coordinate of the location.","title":"Lat"},"description":"The latitude coordinate of the location."},{"name":"lon","in":"query","required":true,"schema":{"type":"number","description":"The longitude coordinate of the location.","title":"Lon"},"description":"The longitude coordinate of the location."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__endpoints__similar_neighborhoods_endpoint__SimilarityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/analysis/nearby-roads-by-neighborhood":{"get":{"tags":["Similarity Neighborhoods"],"summary":"Find nearby roads by neighborhood name","description":"Retrieves nearby roads for a specified neighborhood within a given radius.","operationId":"get_nearby_roads_by_neighborhood_api_v1_analysis_nearby_roads_by_neighborhood_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"neighborhood_name","in":"query","required":true,"schema":{"type":"string","description":"Name of the neighborhood","title":"Neighborhood Name"},"description":"Name of the neighborhood","example":"ونک"},{"name":"radius_km","in":"query","required":false,"schema":{"type":"number","maximum":20,"minimum":1,"description":"Search radius in kilometers (1-20)","default":5.0,"title":"Radius Km"},"description":"Search radius in kilometers (1-20)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoadsByNeighborhoodResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/analysis/nearby-roads-by-coords":{"get":{"tags":["Similarity Neighborhoods"],"summary":"Find nearby roads by coordinates","description":"Retrieves nearby roads for specified coordinates within a given radius.","operationId":"get_nearby_roads_by_coords_api_v1_analysis_nearby_roads_by_coords_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"latitude","in":"query","required":true,"schema":{"type":"number","description":"Latitude of the location","title":"Latitude"},"description":"Latitude of the location","example":35.735},{"name":"longitude","in":"query","required":true,"schema":{"type":"number","description":"Longitude of the location","title":"Longitude"},"description":"Longitude of the location","example":51.401},{"name":"radius_km","in":"query","required":false,"schema":{"type":"number","maximum":20,"minimum":1,"description":"Search radius in kilometers (1-20)","default":5.0,"title":"Radius Km"},"description":"Search radius in kilometers (1-20)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoadsByCoordsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/analysis/neighborhood/similar-by-name-details":{"get":{"tags":["Similarity Neighborhoods Details"],"summary":"Find similar neighborhoods by name","description":"Finds and returns a list of similar neighborhoods based on the provided name, along with the reference neighborhood's details.","operationId":"get_similar_neighborhoods_by_name_api_v1_analysis_neighborhood_similar_by_name_details_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"name","in":"query","required":true,"schema":{"type":"string","description":"The name of the neighborhood to find similar ones for.","title":"Name"},"description":"The name of the neighborhood to find similar ones for."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__endpoints__similar_neighborhoods_details_endpoint__SimilarityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/find-duplicate-by-deposit-id":{"post":{"tags":["Duplicate Finder"],"summary":"Find Duplicate By Depositid","operationId":"find_duplicate_by_depositId_api_v1_find_duplicate_by_deposit_id_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"depositId","in":"query","required":false,"schema":{"type":"integer","default":81563,"title":"Depositid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/find-duplicate-by-data":{"post":{"tags":["Duplicate Finder"],"summary":"Find Duplicate By Data","operationId":"find_duplicate_by_data_api_v1_find_duplicate_by_data_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Data","description":"مشخصات ملک جهت پیدا کردن موارد احتمالا تکراری"},"example":{"nationalCode":"0071587276","userName":"string","title":"آپارتمان 110 متری","mainStreet":"اصلی","cityId":1,"regionId":720,"images":[64695],"depositCategoryId":6,"propertyTypeId":1257,"description":"","fieldValues":[{"id":1117,"value":"175"},{"id":1118,"optionId":1135},{"id":1119,"optionId":1155},{"id":1120,"optionId":1102},{"id":1121,"optionId":1094},{"id":1122,"optionId":1092},{"id":1123,"optionId":1090},{"id":1124,"optionId":1097}],"location":{"latitude":35.735145,"longitude":51.435465},"price":{"price":"49500000000","rentalPrice":"0"}}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/find-similar-by-deposit-id":{"post":{"tags":["Similar Properties"],"summary":"Find Similar By Depositid","operationId":"find_similar_by_depositId_api_v1_find_similar_by_deposit_id_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"depositId","in":"query","required":false,"schema":{"type":"integer","default":81563,"title":"Depositid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/find-similarity_between2":{"post":{"tags":["Similar Properties"],"summary":"Calculate Similarity","operationId":"calculate_similarity_api_v1_find_similarity_between2_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"depositId1","in":"query","required":false,"schema":{"type":"integer","default":81563,"title":"Depositid1"}},{"name":"depositId2","in":"query","required":false,"schema":{"type":"integer","default":82798,"title":"Depositid2"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/find_similar_by_features":{"post":{"tags":["Similar Properties"],"summary":"Find Similar By Features","operationId":"find_similar_by_features_api_v1_find_similar_by_features_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"property_type","in":"query","required":false,"schema":{"type":"string","default":"Apartment","title":"Property Type"}},{"name":"deposit_category","in":"query","required":false,"schema":{"type":"string","default":"buy","title":"Deposit Category"}},{"name":"city_id","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"City Id"}},{"name":"region_name","in":"query","required":false,"schema":{"type":"string","default":"سعادت آباد","title":"Region Name"}},{"name":"price","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price"}},{"name":"rental_price","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rental Price"}},{"name":"meter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meter"}},{"name":"floor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Floor"}},{"name":"rooms","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rooms"}},{"name":"age","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Age"}},{"name":"parking","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Parking"}},{"name":"warehouse","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Warehouse"}},{"name":"elevator","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Elevator"}},{"name":"loan","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Loan"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/extract-ad-data":{"post":{"tags":["Extract Ad data"],"summary":"Get Ad Data","operationId":"get_ad_data_api_v1_extract_ad_data_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/URLRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/get-all-extracted-ad":{"get":{"tags":["Extract Ad data"],"summary":"Get All Ad Data","operationId":"get_all_ad_data_api_v1_get_all_extracted_ad_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"summary":"Root","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/poi-ui":{"get":{"summary":"Serve Ui Page","description":"Serves the main HTML page for the POI search UI.","operationId":"serve_ui_page_poi_ui_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/tehran_neighborhood_graph":{"get":{"summary":"Serve Neighborhood Graph","description":"Serves the Tehran neighborhood graph HTML page.","operationId":"serve_neighborhood_graph_tehran_neighborhood_graph_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/home-similarity-ui":{"get":{"summary":"Serve Home Similarity Ui","description":"Serves the HTML page for the Home Similarity Search UI.","operationId":"serve_home_similarity_ui_home_similarity_ui_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/price-trend-ui":{"get":{"summary":"Serve Price Trend Ui","description":"Serves the HTML page for the Price Trend UI.","operationId":"serve_price_trend_ui_price_trend_ui_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/price-prediction-ui":{"get":{"summary":"Serve Price Prediction Ui","description":"Serves the HTML page for the Price Prediction UI.","operationId":"serve_price_prediction_ui_price_prediction_ui_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/rent-prediction-ui":{"get":{"summary":"Serve Rent Prediction Ui","description":"Serves the HTML page for the Rent Prediction UI.","operationId":"serve_rent_prediction_ui_rent_prediction_ui_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/forward-test-ui":{"get":{"summary":"Forward Test Ui","operationId":"forward_test_ui_forward_test_ui_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/config":{"get":{"summary":"Get Config","operationId":"get_config_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"CategoryEnum":{"type":"string","enum":["buy","rent"],"title":"CategoryEnum"},"CategoryResults":{"additionalProperties":{"items":{"$ref":"#/components/schemas/PoiListing"},"type":"array"},"type":"object","title":"CategoryResults"},"FullResponse":{"properties":{"neighborhood":{"additionalProperties":true,"type":"object","title":"Neighborhood"},"pois":{"$ref":"#/components/schemas/CategoryResults"}},"type":"object","required":["neighborhood","pois"],"title":"FullResponse"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"LatestPriceTrendItem":{"properties":{"price_per_sqm":{"type":"number","title":"Price Per Sqm"},"price_display":{"type":"string","title":"Price Display"},"change_percent":{"type":"number","title":"Change Percent"}},"type":"object","required":["price_per_sqm","price_display","change_percent"],"title":"LatestPriceTrendItem"},"LatestPriceTrendResponse":{"properties":{"trend":{"items":{"$ref":"#/components/schemas/LatestPriceTrendItem"},"type":"array","title":"Trend"}},"type":"object","required":["trend"],"title":"LatestPriceTrendResponse"},"NeighborhoodAnalysisInput":{"properties":{"category":{"$ref":"#/components/schemas/CategoryEnum","description":"Must be 'buy'.","default":"buy"},"propertyTypeLink":{"$ref":"#/components/schemas/PropertyTypeEnum","description":"Must be 'apartment'.","default":"apartment"},"cityLink":{"type":"string","title":"Citylink","description":"Must be 'tehran'.","default":"tehran"},"neighborhoodName":{"type":"string","title":"Neighborhoodname"}},"type":"object","required":["neighborhoodName"],"title":"NeighborhoodAnalysisInput"},"NeighborhoodInfo":{"properties":{"en_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"En Name","example":"vanak"},"fa_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fa Name","example":"ونک"},"api_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Name","example":"Vanak"},"id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Id","example":123},"latitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latitude","example":35.757},"longitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Longitude","example":51.405}},"type":"object","title":"NeighborhoodInfo","description":"Model for neighborhood details."},"PoiListing":{"properties":{"name":{"type":"string","title":"Name"},"distance_km":{"type":"number","title":"Distance Km"},"latitude":{"type":"number","title":"Latitude"},"longitude":{"type":"number","title":"Longitude"}},"type":"object","required":["name","distance_km","latitude","longitude"],"title":"PoiListing"},"PredictionRequest":{"properties":{"neighborhood_slug":{"type":"string","title":"Neighborhood Slug","description":"Name of the neighborhood (e.g., 'jordan', 'پونک')","example":"jordan"},"building_size":{"type":"number","minimum":1.0,"title":"Building Size","description":"Size of the building in square meters","example":80.0},"rooms_count":{"type":"integer","minimum":1.0,"title":"Rooms Count","description":"Number of rooms","example":2},"age":{"type":"integer","minimum":0.0,"title":"Age","description":"Age of the building in years","example":5},"location_latitude":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Location Latitude","description":"Latitude of the property","example":35.765},"location_longitude":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Location Longitude","description":"Longitude of the property","example":51.411},"has_parking":{"type":"boolean","title":"Has Parking","description":"Presence of a parking space","default":false,"example":true},"has_warehouse":{"type":"boolean","title":"Has Warehouse","description":"Presence of a warehouse","default":false,"example":true},"has_elevator":{"type":"boolean","title":"Has Elevator","description":"Presence of an elevator","default":false,"example":true},"total_floors_count":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Total Floors Count","description":"Total number of floors in the building","example":5},"floor":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Floor","description":"The floor number of the property","example":3},"unit_per_floor":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Unit Per Floor","description":"Number of units per floor","example":2}},"type":"object","required":["neighborhood_slug","building_size","rooms_count","age"],"title":"PredictionRequest","description":"Model for the prediction request body containing property features."},"PredictionResponse":{"properties":{"predicted_rent":{"type":"number","title":"Predicted Rent","example":7500000.0},"message":{"type":"string","title":"Message","default":"Prediction successful","example":"Prediction successful"}},"type":"object","required":["predicted_rent"],"title":"PredictionResponse"},"PricePredictionByIdInput":{"properties":{"property_category":{"type":"string","enum":["buy","rent"],"title":"Property Category","description":"'buy' or 'rent'"},"property_type":{"type":"string","const":"apartment","title":"Property Type","description":"Only 'apartment' is accepted for now."},"location_latitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Location Latitude"},"location_longitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Location Longitude"},"building_size":{"type":"number","title":"Building Size"},"rooms_count":{"type":"integer","title":"Rooms Count"},"floor":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Floor"},"total_floors_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Floors Count"},"has_balcony":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Has Balcony","default":0},"has_elevator":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Has Elevator","default":0},"has_parking":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Has Parking","default":0},"is_rebuilt":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Is Rebuilt","default":0},"building_age":{"type":"integer","title":"Building Age"},"has_warm_water_provider_powerhouse":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Has Warm Water Provider Powerhouse","default":0},"has_heating_system_shoofaj":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Has Heating System Shoofaj","default":0},"has_cooling_system_duct_split":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Has Cooling System Duct Split","default":0},"has_cooling_system_water_cooler":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Has Cooling System Water Cooler","default":0},"building_direction_north":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Building Direction North","default":0},"building_direction_south":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Building Direction South","default":0},"floor_material_ceramic":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Floor Material Ceramic","default":0},"floor_material_stone":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Floor Material Stone","default":0},"months_passed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Months Passed","default":0},"model_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Version"},"neighborhood_id":{"type":"integer","title":"Neighborhood Id"}},"type":"object","required":["property_category","property_type","building_size","rooms_count","building_age","neighborhood_id"],"title":"PricePredictionByIdInput"},"PricePredictionByNameInput":{"properties":{"property_category":{"type":"string","enum":["buy","rent"],"title":"Property Category","description":"'buy' or 'rent'"},"property_type":{"type":"string","const":"apartment","title":"Property Type","description":"Only 'apartment' is accepted for now."},"location_latitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Location Latitude"},"location_longitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Location Longitude"},"building_size":{"type":"number","title":"Building Size"},"rooms_count":{"type":"integer","title":"Rooms Count"},"floor":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Floor"},"total_floors_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Floors Count"},"has_balcony":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Has Balcony","default":0},"has_elevator":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Has Elevator","default":0},"has_parking":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Has Parking","default":0},"is_rebuilt":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Is Rebuilt","default":0},"building_age":{"type":"integer","title":"Building Age"},"has_warm_water_provider_powerhouse":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Has Warm Water Provider Powerhouse","default":0},"has_heating_system_shoofaj":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Has Heating System Shoofaj","default":0},"has_cooling_system_duct_split":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Has Cooling System Duct Split","default":0},"has_cooling_system_water_cooler":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Has Cooling System Water Cooler","default":0},"building_direction_north":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Building Direction North","default":0},"building_direction_south":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Building Direction South","default":0},"floor_material_ceramic":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Floor Material Ceramic","default":0},"floor_material_stone":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Floor Material Stone","default":0},"months_passed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Months Passed","default":0},"model_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Version"},"neighborhood_name":{"type":"string","title":"Neighborhood Name"}},"type":"object","required":["property_category","property_type","building_size","rooms_count","building_age","neighborhood_name"],"title":"PricePredictionByNameInput"},"PriceTrenSummaryResponse":{"properties":{"location_name":{"type":"string","title":"Location Name","description":"Name of the location (e.g., 'Poonak', 'district 3', 'Tehran')."},"location_type":{"type":"string","title":"Location Type","description":"Type of location ('neighborhood', 'district', or 'city')."},"trend":{"items":{},"type":"array","title":"Trend","description":"Period Trends (6/12/24 months)"}},"type":"object","required":["location_name","location_type","trend"],"title":"PriceTrenSummaryResponse"},"PriceTrendAnalysisResponse":{"properties":{"location_name":{"type":"string","title":"Location Name","description":"Name of the location (e.g., 'Poonak', 'district 3', 'Tehran')."},"location_type":{"type":"string","title":"Location Type","description":"Type of location ('neighborhood', 'district', or 'city')."},"trend":{"items":{},"type":"array","title":"Trend","description":"List of monthly price trend data points."},"change_percent":{"type":"number","title":"Change Percent","description":"The percentage change in price over the selected time period."}},"type":"object","required":["location_name","location_type","trend","change_percent"],"title":"PriceTrendAnalysisResponse"},"PropertyTypeEnum":{"type":"string","enum":["apartment","home","office","commercial","complex","orchard"],"title":"PropertyTypeEnum"},"RoadListing":{"properties":{"name":{"type":"string","title":"Name","example":"Chamran Highway"},"distance_km":{"type":"number","title":"Distance Km","example":1.23},"latitude":{"type":"number","title":"Latitude","example":35.76},"longitude":{"type":"number","title":"Longitude","example":51.41}},"type":"object","required":["name","distance_km","latitude","longitude"],"title":"RoadListing","description":"Model for a single road."},"RoadsByCoordsResponse":{"properties":{"input_latitude":{"type":"number","title":"Input Latitude","example":35.735},"input_longitude":{"type":"number","title":"Input Longitude","example":51.401},"found_neighborhood":{"anyOf":[{"$ref":"#/components/schemas/NeighborhoodInfo"},{"type":"null"}],"description":"Details of the closest neighborhood"},"roads":{"items":{"$ref":"#/components/schemas/RoadListing"},"type":"array","title":"Roads","description":"List of nearby roads"}},"type":"object","required":["input_latitude","input_longitude","roads"],"title":"RoadsByCoordsResponse","description":"Model for the response of nearby roads by coordinates."},"RoadsByNeighborhoodResponse":{"properties":{"input_neighborhood":{"type":"string","title":"Input Neighborhood","example":"ونک"},"found_neighborhood":{"anyOf":[{"$ref":"#/components/schemas/NeighborhoodInfo"},{"type":"null"}],"description":"Details of the found neighborhood"},"roads":{"items":{"$ref":"#/components/schemas/RoadListing"},"type":"array","title":"Roads","description":"List of nearby roads"}},"type":"object","required":["input_neighborhood","roads"],"title":"RoadsByNeighborhoodResponse","description":"Model for the response of nearby roads by neighborhood name."},"SimilarNeighborhood":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id","description":"The unique ID of the similar neighborhood."},"api_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Name","description":"The API-specific name for the neighborhood."},"en_name":{"type":"string","title":"En Name","description":"The English name of the similar neighborhood."},"fa_name":{"type":"string","title":"Fa Name","description":"The Persian name of the similar neighborhood."},"distance":{"type":"number","title":"Distance","description":"A score or distance indicating the similarity to the query neighborhood."}},"type":"object","required":["en_name","fa_name","distance"],"title":"SimilarNeighborhood","description":"Model for a similar neighborhood with detailed information."},"URLRequest":{"properties":{"url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Url"}},"type":"object","required":["url"],"title":"URLRequest"},"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"},"app__endpoints__similar_neighborhoods_details_endpoint__ReferenceNeighborhood":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id","description":"The unique ID of the reference neighborhood."},"api_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Name","description":"The API-specific name for the reference neighborhood."},"en_name":{"type":"string","title":"En Name","description":"The English name of the reference neighborhood."},"fa_name":{"type":"string","title":"Fa Name","description":"The Persian name of the reference neighborhood."},"region":{"type":"string","title":"Region","description":"The Located Region"},"Description":{"type":"string","title":"Description","description":"Description"}},"type":"object","required":["en_name","fa_name","region","Description"],"title":"ReferenceNeighborhood","description":"Model for the reference neighborhood used for the similarity search."},"app__endpoints__similar_neighborhoods_details_endpoint__SimilarityResponse":{"properties":{"query_input":{"anyOf":[{"type":"string"},{"prefixItems":[{"type":"number"},{"type":"number"}],"type":"array","maxItems":2,"minItems":2}],"title":"Query Input","description":"The original input provided by the user."},"reference_neighborhood":{"anyOf":[{"$ref":"#/components/schemas/app__endpoints__similar_neighborhoods_details_endpoint__ReferenceNeighborhood"},{"type":"null"}],"description":"The famous neighborhood used as a reference for the search."},"similar_neighborhoods":{"items":{"$ref":"#/components/schemas/SimilarNeighborhood"},"type":"array","title":"Similar Neighborhoods","description":"A list of neighborhoods similar to the reference one."}},"type":"object","required":["query_input","similar_neighborhoods"],"title":"SimilarityResponse","description":"Model for the complete similarity search response."},"app__endpoints__similar_neighborhoods_endpoint__ReferenceNeighborhood":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id","description":"The unique ID of the reference neighborhood."},"api_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Name","description":"The API-specific name for the reference neighborhood."},"en_name":{"type":"string","title":"En Name","description":"The English name of the reference neighborhood."},"fa_name":{"type":"string","title":"Fa Name","description":"The Persian name of the reference neighborhood."}},"type":"object","required":["en_name","fa_name"],"title":"ReferenceNeighborhood","description":"Model for the reference neighborhood used for the similarity search."},"app__endpoints__similar_neighborhoods_endpoint__SimilarityResponse":{"properties":{"query_input":{"anyOf":[{"type":"string"},{"prefixItems":[{"type":"number"},{"type":"number"}],"type":"array","maxItems":2,"minItems":2}],"title":"Query Input","description":"The original input provided by the user."},"reference_neighborhood":{"anyOf":[{"$ref":"#/components/schemas/app__endpoints__similar_neighborhoods_endpoint__ReferenceNeighborhood"},{"type":"null"}],"description":"The famous neighborhood used as a reference for the search."},"similar_neighborhoods":{"items":{"$ref":"#/components/schemas/SimilarNeighborhood"},"type":"array","title":"Similar Neighborhoods","description":"A list of neighborhoods similar to the reference one."}},"type":"object","required":["query_input","similar_neighborhoods"],"title":"SimilarityResponse","description":"Model for the complete similarity search response."}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}