Ayushmishra01/apartment-rent-api
0
Apartment Rent Predictor — FastAPI Backend
This is the FastAPI backend for the ML Apartment Price Predictor.
API Endpoints
POST /predict — Request Body
{
"city": "Mumbai",
"apartment_type": "2BHK",
"area_sqft": 950,
"age_of_building": 5,
"furnished_status": "Semi-Furnished",
"parking_available": 1,
"gym": 1,
"swimming_pool": 0,
"distance_to_metro_km": 2.0,
"distance_to_school_km": 1.0,
"crime_rate_index": 3,
"air_quality_index": 85,
"avg_nearby_rent": 28000
}Response
{
"predicted_rent": 32895.0,
"currency": "INR"
}Model
- Algorithm: Random Forest Regressor (scikit-learn 1.6.1)
- Features: 13
- Training data: 120 apartments across 6 Indian cities
