Rental listings and rents in Python

HomeHarvest returns US rental listings with the rent, beds, baths, square feet and listing date. Apartment buildings come back with a rent range. Pull a city's new rentals and find the median rent by bedroom count in a few lines.

How do I get rentals listed this week?

Set listing_type="for_rent". For rentals, past_days counts back from the date the rental was listed.

from homeharvest import scrape_property

rentals = scrape_property(
    location="Chicago, IL",
    listing_type="for_rent",
    past_days=14,
    limit=500,
    extra_property_data=False,  # skip per-home details for a faster pull
)

if rentals.empty:
    print("No rentals found.")
else:
    # Buildings with many units give a rent range (list_price_min / list_price_max)
    # instead of one list_price.
    rentals["rent"] = rentals["list_price"].fillna(rentals["list_price_min"])
    rentals = rentals.dropna(subset=["rent", "beds"])
    print(len(rentals), "rentals with a rent and bed count")
    print(rentals.groupby("beds")["rent"].agg(["count", "median"]).head(6).to_string())

Tested with homeharvest 0.8.18 and 0.9.0 on 2026-11-23.

Output (example values):

423 rentals with a rent and bed count
      count  median
beds
0       132  2037.5
1        84  2076.0
2       112  2400.0

A bed count of 0 means a studio.

Why is list_price empty for some rentals?

Buildings with many units list a range instead of one rent. Use list_price_min and list_price_max for those. The example above falls back to list_price_min.

What extra rental details can I get?

With return_type="pydantic" or "raw", rentals can include pet_policy (cats, small dogs, large dogs), monthly_fees, one_time_fees, parking and units (each floor plan with its own rent). These are filled only when the listing gives them.

Can I filter rentals by price and size?

Yes. price_min, price_max, beds_min, beds_max, baths_min, sqft_min and property_type all work with rentals.

Does HomeHarvest give a rent estimate for a house?

Not for a single house. From version 0.9.0, rows include zip_median_rent and neighborhood_median_rent, the typical rent for the area. For an estimated rent on one address, a paid service like RentCast is built for that. You can also build your own from nearby listed rentals.

Last updated 2026-11-23. Report a problem.