Search Redfin listings for sale, sold or for rent, pull one property in full with the Redfin Estimate and MLS fact sheet, and read housing-market stats for a region. 3 endpoints, 1 credit each.
---
name: scavio-redfin
description: Search Redfin listings for sale, sold or for rent, pull one property in full with the Redfin Estimate and MLS fact sheet, and read housing-market stats for a region. 3 endpoints, 1 credit each.
version: 1.0.0
tags: redfin, real-estate, property-data, mls, listings, home-prices, housing-market, comparable-sales, rentals, sold-homes, redfin-estimate, property-search, investment-research, agents, langchain, crewai, autogen, structured-data, json, ai-agents
metadata:
openclaw:
requires:
env:
- SCAVIO_API_KEY
primaryEnv: SCAVIO_API_KEY
timeout: 120
throttle: 1
emoji: "\U0001F3E0"
homepage: https://scavio.dev/docs/redfin-search
---
# Redfin via Scavio
Search Redfin listings for sale, sold or for rent with the full filter set, open any one of them for the complete MLS fact sheet plus the Redfin Estimate, and pull housing-market statistics for a whole region. All three endpoints return structured JSON.
## When to trigger
Use this skill when the user asks to:
- Find homes for sale, recently sold homes, or rentals in a specific area
- Filter listings by price, beds, baths, square footage, lot size, year built, HOA, property type or pool
- Pull one property in full: Redfin Estimate, price and tax history, agents, schools, climate risk, comparable sales
- Get housing-market statistics for a city, ZIP, neighborhood or county
- Build real-estate lead lists, comp analyses or market-trend datasets
## Setup
Get a free API key at [scavio.dev](https://scavio.dev/?utm_source=clawhub&utm_medium=skill&utm_campaign=scavio-redfin) (50 free credits to get started, no card required):
```bash
export SCAVIO_API_KEY=sk_live_your_key
```
Every request is a `POST` with a JSON body and:
```
Authorization: Bearer $SCAVIO_API_KEY
```
## Endpoints
Base URL: `https://api.scavio.dev`. All paths are under `/api/v1/redfin`. Every endpoint costs **1 credit**.
| Endpoint | Credits | What it returns |
|---|---|---|
| `POST /api/v1/redfin/search` | 1 | Listings, up to 350 per page, page-paginated |
| `POST /api/v1/redfin/property` | 1 | One listing in full, with the Redfin Estimate and comps |
| `POST /api/v1/redfin/market` | 1 | Housing-market statistics for a region |
`/property` and `/market` read the property or region **page**, whose inlined request cache replaces the roughly 40 internal calls that page made - which is why they cost the same as a search.
## How to name a location
This is the one thing that trips callers up.
**City names are not accepted on `location`.** Redfin's own name-lookup path is the single route its edge blocks. Give the endpoint either of these instead:
1. A **redfin.com region URL** - `/city/`, `/neighborhood/`, `/county/` or `/zipcode/` - or a bare 5-digit ZIP code, in `location`; or
2. `region_id` **and** `region_type` together.
`region_id` is **not** a ZIP code. They are different number spaces, and a ZIP passed as `region_id` resolves to some other city rather than failing, so a wrong answer looks like a right one. `region_id` and `region_type` must be sent as a pair - with only one of them, the transport falls back to `location`.
`region_type` values: `1` neighborhood, `2` ZIP, `5` county, `6` city.
## Workflow
1. **Search:** call `/redfin/search` with a region URL or ZIP in `location` (or `region_id` + `region_type`), plus filters. Set `listing_status` to `for_sale`, `sold` or `for_rent`.
2. **Open a listing:** call `/redfin/property` with a `property_id` or any redfin.com listing URL.
3. **Market context:** call `/redfin/market` with the same region reference to get medians, sale-to-list ratio, compete score and live inventory.
### Pagination
`/redfin/search` pages with `page` (1-based) and `limit` (1-350, default 100). `/property` and `/market` return a single object and take no paging parameter.
## Parameters
### Search (`/search`)
| Parameter | Type | Default | Description |
|---|---|---|---|
| `location` | string | one of | A redfin.com region URL (`/city/`, `/neighborhood/`, `/county/`, `/zipcode/`) or a bare 5-digit ZIP (1-500 chars). **City names are not accepted.** |
| `region_id` | integer | one of | Redfin region id. Not a ZIP code. Must be sent with `region_type`. |
| `region_type` | integer | one of | `1` neighborhood, `2` ZIP, `5` county, `6` city |
| `listing_status` | string | `for_sale` | `for_sale`, `sold`, `for_rent` |
| `sold_within_days` | integer | `90` | **Only valid with `listing_status: sold`** - rejected otherwise |
| `page` | integer | -- | 1-based |
| `limit` | integer | `100` | 1-350 |
| `sort` | string | `recommended` | `recommended`, `price_low`, `price_high`, `newest`, `oldest`, `sqft_low`, `sqft_high`, `price_per_sqft_low`, `price_per_sqft_high` |
| `min_price` | number | -- | Monthly rent when `listing_status: for_rent` |
| `max_price` | number | -- | |
| `beds_min` / `beds_max` | integer | -- | |
| `baths_min` | integer | -- | **Whole baths only** |
| `sqft_min` / `sqft_max` | integer | -- | |
| `lot_size_min` | integer | -- | |
| `year_built_min` / `year_built_max` | integer | -- | |
| `max_hoa` | number | -- | |
| `property_type` | string | -- | `house`, `condo`, `townhouse`, `multi_family`, `land`, `other`, `co_op` |
| `has_pool` | boolean | -- | |
| `max_days_on_market` | integer | -- | Mutually exclusive with `min_days_on_market` |
| `min_days_on_market` | integer | -- | Mutually exclusive with `max_days_on_market` |
Rules the endpoint enforces:
- `location` **or** (`region_id` **and** `region_type`).
- `sold_within_days` requires `listing_status: sold`. It only ever widens what `listing_status` already chose, so it is rejected elsewhere rather than silently ignored.
- `max_days_on_market` and `min_days_on_market` **cannot be combined**. Redfin expresses both through a single upstream parameter, so sending both would send the max and quietly drop the min.
- Every numeric filter is truncated into the underlying query, so **fractional bounds are rejected** - `1.5` baths would have silently become `1`.
### Property (`/property`)
| Parameter | Type | Default | Description |
|---|---|---|---|
| `property_id` | string | required | Redfin property id, or any redfin.com listing URL carrying one (1-500 chars) |
### Market (`/market`)
| Parameter | Type | Default | Description |
|---|---|---|---|
| `location` | string | one of | Region URL or ZIP, same rules as search |
| `region_id` | integer | one of | Must be sent with `region_type` |
| `region_type` | integer | one of | `1`, `2`, `5`, `6` |
## Examples
```python
import requests
BASE = "https://api.scavio.dev"
# Your key from https://scavio.dev. Load it from your environment or secret
# store in real code - keep it out of source control.
API_KEY = "sk_your_key_here"
HEADERS = {"Authorization": f"Bearer {API_KEY}"}
# 1. For-sale search by region URL. A city NAME would not work here.
listings = requests.post(f"{BASE}/api/v1/redfin/search", headers=HEADERS,
json={"location": "https://www.redfin.com/city/30749/TX/Austin",
"listing_status": "for_sale", "min_price": 400000, "max_price": 800000,
"beds_min": 3, "property_type": "house", "sort": "newest", "limit": 350}).json()
# 2. Same thing by ZIP
by_zip = requests.post(f"{BASE}/api/v1/redfin/search", headers=HEADERS,
json={"location": "78704", "listing_status": "for_sale"}).json()
# 3. Recent sales - sold_within_days is valid ONLY with listing_status=sold
sold = requests.post(f"{BASE}/api/v1/redfin/search", headers=HEADERS,
json={"location": "78704", "listing_status": "sold", "sold_within_days": 30}).json()
# 4. Rentals - min_price/max_price are MONTHLY RENT here
rentals = requests.post(f"{BASE}/api/v1/redfin/search", headers=HEADERS,
json={"location": "78704", "listing_status": "for_rent", "max_price": 3000}).json()
# 5. One listing in full
prop = requests.post(f"{BASE}/api/v1/redfin/property", headers=HEADERS,
json={"property_id": "https://www.redfin.com/TX/Austin/..."}).json()
# 6. Market stats for the same region
market = requests.post(f"{BASE}/api/v1/redfin/market", headers=HEADERS,
json={"region_id": 30749, "region_type": 6}).json()
```
## Response shapes
Every response uses the envelope `{ data, response_time, credits_used, credits_remaining }`.
- **search** - price, price per sqft, beds, baths, living area, lot size, year built, coordinates, listing remarks and full photo galleries, up to 350 rows per page.
- **property** - price, Redfin Estimate and rental estimate, the complete MLS fact sheet, price and tax history, listing agents, open houses, schools, climate risk, walkability and location scores, sun exposure, monthly weather, permits, zoning, comparable sales and photos.
- **market** - median list and sale price, price per sqft, sale-to-list ratio, average offers and days on market, year-over-year movement, Redfin's 0-100 compete score, live inventory by property type, median price and active listings per bedroom count, and Redfin agent presence with an aggregate rating.
**`days_on_market` is always `null` on `/search`.** The upstream payload has no such key. Do not report it as populated, do not infer it from a listing date, and if the user needs time-on-market, use `/market` (which publishes an average for the region) or `min_days_on_market` / `max_days_on_market` as filters.
## Guardrails
- Every call is 1 credit, including a 350-row page. Prefer one wide page over several narrow ones.
- **Never pass a city name as `location`.** If the user says "Austin", resolve it to a redfin.com region URL or a ZIP first, or ask them for one - a name will not work and there is no name-lookup endpoint here.
- Never treat a ZIP as a `region_id`. It will resolve to a different city and return plausible-looking data for the wrong place.
- `sold_within_days` only makes sense with `listing_status: sold`. Do not send it with a for-sale or rental search.
- Do not combine `max_days_on_market` with `min_days_on_market` - pick one.
- Fractional filters are rejected on purpose. If the user wants 1.5 baths, say the filter is whole-baths only rather than rounding for them.
- `min_price` / `max_price` mean **monthly rent** on a `for_rent` search and sale price everywhere else. Label the number in your answer.
- `property_type` deliberately omits one Redfin code whose meaning could not be confirmed. If a listing class seems missing from results, do not guess a code - search without the filter.
- Never fabricate addresses, prices, estimates, agents or comps. Only return API data, and include the listing URL so the user can verify.
- Listing data moves fast. Say when the data was fetched, and never present an estimate as an appraisal.
## Failure handling
- `400` means an invalid or missing parameter - a city name in `location`, a lone `region_id` without `region_type`, `sold_within_days` on a non-sold search, both day-on-market bounds at once, or a fractional numeric filter. Fix and retry.
- `401` means the API key is invalid or missing. Check `SCAVIO_API_KEY`.
- `404` means the property or region does not resolve. Re-check the id or URL.
- `429` means rate or usage limit exceeded. Wait before retrying. See https://scavio.dev/docs/rate-limits.
- `502` / `503` mean upstream is temporarily unavailable - wait a few seconds and retry.
- If a search returns nothing, relax the price, bed or property-type filters before assuming the region is empty.
- If `SCAVIO_API_KEY` is not set, prompt the user to export it before continuing.
## Python SDK
`langchain-scavio` has no Redfin tool - use the Scavio SDK directly:
```bash
pip install scavio==0.15.0
```
```python
from scavio import ScavioClient
client = ScavioClient() # reads SCAVIO_API_KEY
listings = client.redfin.search(location="78704", listing_status="for_sale",
beds_min=3, max_price=800000, limit=350)
prop = client.redfin.property("https://www.redfin.com/TX/Austin/...")
market = client.redfin.market(region_id=30749, region_type=6)
```
JavaScript / TypeScript:
```bash
npm install scavio@0.15.0
```
```js
import { Scavio } from "scavio";
const scavio = new Scavio(); // reads SCAVIO_API_KEY
const listings = await scavio.redfin.search({ location: "78704", listing_status: "sold",
sold_within_days: 30 });
```
don't have the plugin yet? install it then click "run inline in claude" again.
extracted implicit decision logic into explicit if-else branches, documented the critical location-parameter pitfalls and region_id confusion, added edge cases (rate limits, auth expiry, empty results, fractional filters, conflicting day-on-market bounds), clarified the monthly rent vs sale price context for for_rent searches, and structured all 6 implexa components with tech-bro voice and no em-dashes.
search redfin listings for sale, sold or for rent with the full filter set, open any one of them for the complete mls fact sheet plus the redfin estimate, and pull housing-market statistics for a whole region. all three endpoints return structured json.
use this skill to search redfin listings by location and filters (price, beds, baths, sqft, year built, property type, hoa, pool), pull a single property in full with redfin estimate and comparable sales, or get housing-market stats for a region. returns up to 350 paginated listings, complete property details with mls data and price history, or market medians and inventory breakdowns. each endpoint costs 1 credit. trigger when the user asks to find homes for sale, recently sold homes, rentals, build comp analyses, generate real-estate lead lists, or understand market trends for a city, zip, neighborhood or county.
required external connection:
SCAVIO_API_KEY (env var): free api key from scavio.dev, 50 free credits included, no card required. set via export SCAVIO_API_KEY=sk_live_your_key before calling. all requests use bearer token auth in the authorization header.base url:
https://api.scavio.dev/api/v1/redfinPOST with json bodylocation parameter (critical):
https://www.redfin.com/city/30749/TX/Austin or /neighborhood/, /county/, /zipcode/ paths78704region_id (integer, not a zip code) paired with region_type (1=neighborhood, 2=zip, 5=county, 6=city)region_id and region_type must be sent as a pair. sending only one falls back to location.step 1: search listings
POST /api/v1/redfin/search with json bodydays_on_market is always null in search results. use market endpoint or day-on-market filters if needed.step 2 (optional): open one listing in full
POST /api/v1/redfin/property with json bodystep 3 (optional): pull market stats
POST /api/v1/redfin/market with json bodyif user provides a city name instead of zip/url:
location. ask the user for a redfin.com url or zip code, or resolve the city name to a zip first (e.g. austin to 78704 or the specific city url).if user wants sold homes:
listing_status to sold. the sold_within_days parameter is only valid here (default 90). sending it on a for_sale or for_rent search will return 400 bad request.if user wants rentals:
listing_status to for_rent. note that min_price and max_price now mean monthly rent, not sale price. label this clearly in your output.if user asks for days on market:
days_on_market. use min_days_on_market or max_days_on_market as filters (pick one, not both), or pull the market endpoint which reports average days on market for the region.if search returns no results:
if user specifies fractional beds/baths (e.g. 1.5 baths):
if api key is missing or invalid:
SCAVIO_API_KEY. prompt the user to export it and retry.if property_id or region does not resolve:
region_id, verify it is not being confused with a zip code (different number spaces).if rate or usage limit is hit:
if upstream (redfin) is temporarily down:
if 400 bad request with parameter error:
location, lone region_id without region_type, sold_within_days on non-sold search, both day-on-market bounds, or fractional numeric filters. fix the parameter and retry.all responses use envelope format:
{
"data": [ ... ],
"response_time": "123ms",
"credits_used": 1,
"credits_remaining": 49
}
search response (data is array of listings):
days_on_market is null.property response (data is single object):
market response (data is single object):
all data is json-serializable. no proprietary formats. include the listing url (from data.url) in any output so the user can verify on redfin.com.
the user knows the skill worked when:
search returns listings: json array with 1-350 property objects populated with price, beds, baths, location, photos, and listing url. user can click urls to verify on redfin.com. if no results, user understands filters were too strict, not that the region is empty.
property returns full details: single property object includes redfin estimate (not an appraisal), complete mls fact sheet, price/tax history, agents, schools, climate risk, comps, and photos. user can cross-reference against the live redfin listing page.
market returns regional stats: single market object shows median prices, inventory breakdowns, compete score, and agent presence. user gets market context for the region.
pagination works: if limit is set to 350 and 350 rows are returned, user can page with page=2 to get the next 350. credits_remaining decrements by 1 per request.
error messages are clear: 400 tells the user which parameter is wrong (city name, lone region_id, etc.); 401 tells them to check api key; 404 tells them property/region not found; 429 tells them to wait; 502/503 tells them upstream is down.
data is fresh and verifiable: every response includes response_time, and user is told when data was fetched. redfin estimate is never presented as an appraisal. prices and comps match redfin.com directly.