Get nearby homes.com listings for a property
homes_get_nearby_listingsGet nearby active listings from a homes.com property detail page. Returns For Sale listings by default; can include Rentals. Each listing has URL and address.
Instructions
Scrape the nearby-links section of a homes.com detail page (the tabbed list of <ul id="nb-Property"> near the bottom of the page) and return the nearby active listings. Pass url (the property whose neighborhood to inspect). By default returns the For Sale tab; pass include_rentals: true to also include the Rentals tab. Optional limit caps the count. Returns { property_id, url, count, listings: [{ property_id, url, address?, tab }] }. Note: the nearby section is a curated cross-link list, not a comparable-sales set — only URL + address are exposed (no price/beds/baths/sqft/photo). To enrich a row, call homes_get_property on its url. Read-only; safe to call repeatedly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | homes.com property detail URL or path. | |
| limit | No | Max nearby listings to return (default unlimited). | |
| include_rentals | No | When true, also include the Rentals tab (`<ul id="nb-property">` lowercase). Default false — For Sale tab only. |