Pending and contingent listings in Python

HomeHarvest returns homes that are under contract, marked pending or contingent, with the date they went pending, the list price and the listing agent. Use it to see what's moving in an area this week, before the sale closes.

How do I get homes that went pending this week?

Set listing_type="pending" and past_days. For pending homes, past_days counts back from the date the home went pending.

from homeharvest import scrape_property

pending = scrape_property(
    location="Phoenix, AZ",
    listing_type="pending",
    past_days=7,                # went pending in the last 7 days
    limit=1000,
    extra_property_data=False,  # skip per-home details for a faster pull
)

if pending.empty:
    raise SystemExit("No rows. On HomeHarvest 0.8.x, pending + past_days returns nothing; use fetch-and-filter.")

print(len(pending), "homes went pending or contingent in the last 7 days")
print(pending["status"].value_counts().to_string())
print(pending[["formatted_address", "list_price", "pending_date", "status"]]
      .sort_values("pending_date", ascending=False).head(10).to_string(index=False))

Tested with homeharvest 0.9.0 on 2026-11-23. Needs 0.9.0 or newer.

Output (example values):

204 homes went pending or contingent in the last 7 days
PENDING       150
CONTINGENT     54

How do I do it on HomeHarvest 0.8.18?

In 0.8.x, listing_type="pending" with past_days returns no rows (we tested 7, 14 and 30 days in Phoenix on 2026-11-23). 0.9.0 fixes it. On 0.8.18, fetch pending listings without a date and keep the ones whose pending_date falls in your window:

import pandas as pd
from homeharvest import scrape_property

pending = scrape_property(
    location="Phoenix, AZ",
    listing_type="pending",
    limit=500,
    extra_property_data=False,  # skip per-home details for a faster pull
)

if pending.empty:
    print("No pending listings found.")
else:
    pending["pending_date"] = pd.to_datetime(pending["pending_date"], errors="coerce")
    cutoff = pd.Timestamp.now() - pd.Timedelta(days=7)
    # Contingent listings often have no pending_date, so they drop out here.
    this_week = pending[pending["pending_date"] >= cutoff]
    print(len(pending), "pending or contingent;", len(this_week), "went pending in the last 7 days")
    print(pending["status"].value_counts().to_string())
    print(this_week[["formatted_address", "list_price", "pending_date", "status"]]
          .sort_values("pending_date", ascending=False).head(10).to_string(index=False))

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

What's the difference between pending and contingent?

Both mean the seller accepted an offer. Contingent means the deal still depends on something, such as an inspection, financing or the buyer selling their home. The status column says which. Many contingent listings have no pending_date. In 0.9.0, past_days uses their last_status_change_date instead; in the 0.8.18 workaround above, a date filter drops them.

Can I get for-sale and pending homes in one call?

Yes. Pass a list: listing_type=["for_sale", "pending"]. To get only active homes, use "for_sale" with exclude_pending=True.

Does the search stay inside my city?

Not always. A city search can include nearby homes. In a Phoenix test, some rows were in Glendale. Filter on city or zip_code if you need exact borders.

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