---
title: "Redfin Scraper or API: What You Get | Perceptlayer"
description: "A Redfin scraper vs 14 Redfin endpoints at 1 credit each: recorded Seattle locations, search, property and valuation calls, and the cost per home tracked."
url: https://perceptlayer.com/blog/redfin-scraper-vs-api
---

[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)

# Redfin Scraper or API: What You Get

8 Nov 2026 Perceptlayer 9 min read

A Redfin scraper is code that loads Redfin's region and home pages and pulls price, beds, baths, status and sale history out of whatever the page sends back. You write and maintain the fetching, the parsing and the checks that tell you when either broke. The alternative is the 14 Redfin endpoints on Perceptlayer, which return the same kinds of data as named JSON fields at 1 credit per successful call. This post follows one Seattle home through four recorded calls, prices a watch list per home, and gives a verdict per use case.

## Key takeaways

-   The recorded chain runs `locations` → `search` → `property` and `valuation`: `region_id: 16163`, `region_type: 6` and `market: "seattle"` from locations are the search parameters, and `property_id: 124182` with `listing_id: 224635828` from search are the property and valuation parameters.
-   A recorded `GET /v1/redfin/search` for Seattle reports `count: 350`; each home carries `property_id`, `listing_id`, `price`, `beds`, `baths`, `sqft`, `year_built`, `status` and `mls_number`.
-   The same home has `property_type: 1` in search and `property_type: 6` in property, and its `status` is the text `"Coming Soon"` in search but the number `8` in property. Don't join or filter across endpoints on those codes.
-   The recorded valuation returned `lastSoldPrice: 1050000` with `lastSoldDate` in epoch milliseconds, and `sectionPreviewText: "Estimate Not Available"`.
-   Checking a 200-home watch list once a day with `property` costs 200 calls × 1 credit = 200 credits a day, or 6,000 credits over 30 days.

## What does a Redfin scraper have to fetch, parse and keep working?

A Redfin scraper is four jobs, and each one needs upkeep. It has to turn a place name into the region the site uses, page through the homes in that region, open each home for detail and sale history, and notice when any step starts returning less than it did yesterday. None of these is hard to write once. The cost is that all of them depend on page structure you don't control.

Resolving a region means parsing a search box's suggestions or a region page and keeping whatever identifier it uses. Paging means finding how results are split and how to request the next set. Home detail means a parser per page type, because a condo, a house and a sold home don't always show the same blocks. If valuations and sale history load separately from the main page, as they do on many sites, that's one more request and one more parser per home.

Then comes the operational layer every scraper shares: pacing requests, retrying failures, storing raw pages so you can re-parse them, and alerting when a run returns empty prices for homes that had them. A large site also has to separate people from automated traffic, so a daily job at volume should expect slow responses and blocked requests. If that happens, stop; working around a site's protections is not a fix we recommend. Read Redfin's terms of use before you build a collector, and keep agents' and owners' personal details out of anything you store.

## What do the Redfin endpoints return instead?

The [Redfin API](https://perceptlayer.com/apis/redfin) has 14 `GET` endpoints, each costing 1 credit per successful call and returning JSON. They cover the four scraper jobs above plus data a scraper would need extra parsers for: price history, nearby and similar homes, schools, scores, open houses, sold homes and market trends. Every one takes either a region ( `region_id` and `region_type`, often with `market`) or a home ( `property_id`, sometimes with `listing_id`).

| Job | Endpoint | Required parameters |
| --- | --- | --- |
| Turn a place name into a region | `GET /v1/redfin/locations` | `query` |
| Homes for sale in a region | `GET /v1/redfin/search` | `region_id`, `region_type`, `market` |
| Recently sold homes | `GET /v1/redfin/sold` | `region_id`, `region_type`, `market` |
| Open houses | `GET /v1/redfin/open-houses` | `region_id`, `region_type`, `market` |
| Market trends for a region | `GET /v1/redfin/market-trends` | `region_id`, `region_type` |
| One home's details | `GET /v1/redfin/property` | `property_id` |
| One home's valuation | `GET /v1/redfin/valuation` | `property_id` |
| Price and sale history | `GET /v1/redfin/history` | `property_id` |
| Schools and scores | `GET /v1/redfin/schools`, `GET /v1/redfin/scores` | `property_id` |
| Nearby and similar homes | `GET /v1/redfin/nearby`, `GET /v1/redfin/similar` | `property_id`, `listing_id` |
| Agents | `GET /v1/redfin/agents`, `GET /v1/redfin/agent` | `region_id` and `region_type`, or `slug` |

`search` also filters on `min_price`, `max_price`, `num_beds`, `num_baths`, `property_types`, `status` (one of 1, 9, 130 or 131) and `sold_within_days`, and pages with `num_homes` and `page`. Several endpoints accept `country`, with `ca` allowed on `locations`, `search`, `history`, `market-trends` and `scores`. The endpoint pages, such as [Locations](https://perceptlayer.com/apis/redfin/locations), [Property](https://perceptlayer.com/apis/redfin/property) and [History](https://perceptlayer.com/apis/redfin/history), list every parameter and have a playground.

## How does one home move through the recorded calls?

Four recorded calls take Seattle from a typed name to one home's detail and valuation, and each call's output is the next call's input. `locations` returns the region values that `search` needs; `search` returns the `property_id` and `listing_id` that `property` and `valuation` take. That is the same chain a scraper builds out of four parsers, with the IDs already extracted.

### Step 1: find the region

```bash
curl "https://api.perceptlayer.com/v1/redfin/locations?query=Seattle%2C+WA" \
  -H "X-API-Key: $API_KEY"
```

```json
{
  "data": {
    "locations": [
      {
        "name": "Seattle",
        "subName": "Seattle, WA, USA",
        "region_id": 16163,
        "region_type": 6,
        "region_type_name": "city",
        "market": "seattle",
        …
      },
      {
        "name": "West Seattle",
        …
        "region_id": 3040,
        "region_type": 1,
        "region_type_name": "neighborhood",
        "market": "seattle",
        …
      }
    ],
    …
  }
}
```

The response also lists the `region_type` codes it uses: 1 neighborhood, 2 zip, 5 county, 6 city. A neighborhood such as West Seattle is its own region, so you can watch part of a city without filtering the whole of it.

### Step 2: search the region

```bash
curl "https://api.perceptlayer.com/v1/redfin/search?region_id=16163&region_type=6&market=seattle&sold_within_days=30" \
  -H "X-API-Key: $API_KEY"
```

```json
{
  "data": {
    "properties": [
      …
      {
        "property_id": 124182,
        "listing_id": 224635828,
        "address": "2517 25th Ave W",
        "city": "Seattle",
        "state": "WA",
        "zip": "98199",
        "price": 2750000,
        "beds": 3,
        "baths": 4,
        "sqft": 3570,
        "lot_size": 5120,
        "year_built": 2005,
        "property_type": 1,
        "status": "Coming Soon",
        …
        "mls_number": "2222589287335410617"
      }
    ],
    "count": 350,
    "region_id": 16163,
    "region_type": 6
  }
}
```

### Step 3: property and valuation for one home

The recorded property and valuation calls both use `property_id=124182&listing_id=224635828`, the values from the search result above:

```bash
curl "https://api.perceptlayer.com/v1/redfin/valuation?property_id=124182&listing_id=224635828" \
  -H "X-API-Key: $API_KEY"
```

```json
{
  "data": {
    "listingTimezone": "US/Pacific",
    "numBeds": 3,
    "numBaths": 4,
    …
    "listingPrice": 2750000,
    "lastSoldPrice": 1050000,
    "lastSoldDate": 1285830000000,
    …
    "searchStatusId": 8,
    …
    "sectionPreviewText": "Estimate Not Available",
    …
    "propertyId": 124182
  }
}
```

The property response for the same home returns `price: 2750000`, `price_label: "Listed at Price"`, `property_type: 6`, `status: 8`, coordinates and a `photos` list with `url` and `fullscreen_url` for each image.

## What in the JSON still needs care?

The endpoints remove the parsing, not the thinking. The recorded responses show four things to handle in your own code, and a scraper would face each of them too, buried in HTML instead of named fields.

| What | Where it shows | What to do |
| --- | --- | --- |
| Different codes for the same home | `property_type` is 1 in search, 6 in property; `status` is `"Coming Soon"` in search, `8` in property | Store each endpoint's value as is, labelled by source; join on `property_id` only |
| Different field names | `property_id` and `price` in search and property; `propertyId` and `listingPrice` in valuation | Map names per endpoint when you load them |
| Dates as numbers | `lastSoldDate: 1285830000000` is epoch milliseconds, with `soldDateTimeZone: "US/Pacific"` | Divide by 1,000 and convert in that zone: 2010-09-30 |
| No estimate | `sectionPreviewText: "Estimate Not Available"` on a listed home | Check it before you count a home as valued |

The valuation response also carries fields that change from call to call, such as `queryId` and a `random` object. Leave them out of anything you diff, or every run will look like a change.

## How do a Redfin scraper and the endpoints compare?

A scraper costs engineering time and carries terms and blocking risk; the endpoints cost 1 credit per successful call and hand you the IDs, prices and statuses as fields. The table compares the two on a recurring job: watching a set of homes, or one region, for new listings, price changes and status changes.

|  | DIY Redfin scraper | Redfin endpoints |
| --- | --- | --- |
| Region lookup | Parse suggestions or a region page | `locations` returns `region_id`, `region_type`, `market` |
| Homes in a region | Parse result pages, find the paging | `search`, `sold` and `open-houses`, with `num_homes` and `page` |
| One home | A parser per page layout | `property` with `price`, `beds`, `baths`, `sqft`, `year_built`, `status`, `photos` |
| Sale history and valuation | Extra requests and parsers per home | `history` and `valuation` by `property_id`, 1 credit each |
| Joining records | Whatever ID you can find on the page | `property_id` and `listing_id` in every recorded response that names a home |
| When the page changes | Parsers return blanks until you fix them | Same JSON fields; no parser of yours to fix |
| Failures | Yours to detect | HTTP status and error code; a failed call costs 0 credits |
| Speed | As fast as you can fetch without being blocked | 1 request a second free; at least 5 a second on paid credits |
| Cost | Hosting, proxies if you use them, your time | 1 credit per successful call |

### What does each tracked home cost?

On the endpoints, cost follows calls. A watch list of known homes costs 1 credit per home per check with `property`, so 200 homes checked daily is 200 calls × 1 credit = 200 credits a day, or 6,000 credits over 30 days. Adding a weekly `valuation` for the same 200 homes is 200 × 4 = 800 credits a month. The total, 6,800 credits, fits inside the 10,000-credit Starter pack.

Watching a whole region is cheaper per home, because one `search` call returns many homes. The cost is the number of pages × 1 credit; the recorded Seattle search reports `count: 350`, so check in the playground how many homes one page holds for your `num_homes`, then divide. The 100 free credits you get once on signup cover the first few days of either plan, enough to test the fields on your own market. See [pricing](https://perceptlayer.com/pricing) for what credits cost and the [credits docs](https://docs.perceptlayer.com/credits) for how they're debited.

### A daily check in Python

This script runs the recorded chain for one city and prints price, status and last sale for the first five homes. It reads only fields that appear in the recordings and uses `.get` for ones a home may not have. It costs 1 + 1 + 5 = 7 credits.

```python
import os
from datetime import datetime, timezone

import requests

BASE = "https://api.perceptlayer.com"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}

def get(path, **params):
    r = requests.get(BASE + path, headers=HEADERS, params=params, timeout=60)
    r.raise_for_status()
    return r.json()["data"]

region = get("/v1/redfin/locations", query="Seattle, WA")["locations"][0]
homes = get(
    "/v1/redfin/search",
    region_id=region["region_id"],
    region_type=region["region_type"],
    market=region["market"],
)["properties"]

for home in homes[:5]:
    val = get("/v1/redfin/valuation", property_id=home["property_id"], listing_id=home["listing_id"])
    sold_ms = val.get("lastSoldDate")
    sold = datetime.fromtimestamp(sold_ms / 1000, timezone.utc).date() if sold_ms else None
    print(home["property_id"], home["address"], home.get("price"), home.get("status"),
          val.get("lastSoldPrice"), sold, val.get("sectionPreviewText"))
```

A failed call raises before anything prints and costs nothing. The [errors docs](https://docs.perceptlayer.com/errors) list the codes, such as `rate_limited` (429), which comes with a `Retry-After` header.

## Which route fits your job?

Pick by how often the job runs and what you'll do with the data: a scraper's cost is upkeep, the endpoints' cost is calls. These verdicts assume a repeating job; to look at three homes before a viewing, open Redfin in a browser and skip both.

-   **New listings and price changes in one area**: run `search` daily for the region, store `property_id`, `price`, `status` and the run date, and diff on `property_id`.
-   **A fixed watch list of homes**: call `property` per home daily at 1 credit each, and `history` when the price or status changes.
-   **Sold comparables for pricing a home**: use `sold` for the region, with filters such as `sold_within_days`, `num_beds` and `min_price`, or `similar` for one home, whose `type` takes `listings` or `solds`.
-   **Valuation work**: call `valuation`, check `sectionPreviewText` first, and keep `lastSoldPrice` and `lastSoldDate` as the anchor when no estimate is available.
-   **Area trends rather than single homes**: start with `market-trends` for a city, zip or county instead of aggregating listings yourself.
-   **An AI agent answering housing questions**: give it the Redfin endpoints through the MCP server, as the [AI agents docs](https://docs.perceptlayer.com/ai-agents) describe, so it calls `locations` and `search` instead of browsing.
-   **Learning to scrape**: build against a practice site, not a property portal.

[Zillow Scraper or API](https://perceptlayer.com/blog/zillow-scraper-vs-api) covers the same trade-off for Zillow, [Redfin API: Search Homes, Then Property and Valuation](https://perceptlayer.com/blog/redfin-api-property-valuation) walks through the valuation flow step by step, and the [real estate APIs](https://perceptlayer.com/verticals/real-estate) page lists the other property sources. To check the fields on your own market, run `locations` and then `search` in the playground on the [Redfin API page](https://perceptlayer.com/apis/redfin), then [get a free API key](https://perceptlayer.com/signup).

## APIs in this post

-   [Redfin **1 credit per call** · 14 endpoints](https://perceptlayer.com/apis/redfin)

## Frequently asked questions

### Is scraping Redfin allowed?

That depends on Redfin's terms of use, the terms attached to any listing data you store, and the law where you operate, so read the terms and get legal advice for commercial use. Don't get around blocks, challenges or other protections. Listing facts such as price, beds and status carry less risk than personal data; leave agents' and owners' names and contact details out of what you keep.

### How do I get the region\_id for a Redfin search?

Call `GET /v1/redfin/locations` with a `query` such as `Seattle, WA`. The recorded response returned `region_id: 16163`, `region_type: 6` and `market: "seattle"` for the city, and `region_id: 3040` with `region_type: 1` for the West Seattle neighborhood. Pass all three values to `search`, `sold` or `open-houses`. The lookup costs 1 credit.

### Why does the valuation say "Estimate Not Available"?

The recorded valuation for property 124182, a listed home, returned `sectionPreviewText: "Estimate Not Available"` alongside `listingPrice`, `lastSoldPrice` and `lastSoldDate`. Data is returned as found at the time of the call, so check that field before you treat a home as valued, and fall back to the last sale or `sold` comparables when it's missing.

### Does a failed Redfin call cost credits?

No. Only a successful response debits credits. A failed call returns an HTTP status and a JSON error with a `code`, a `message` and a `request_id`, plus `X-Credits-Used: 0`. A client timeout is different: the request may have succeeded and been billed, so check `X-Credits-Remaining` before retrying a large batch.

### How fast can I run a daily Redfin job?

Limits are per account, shared by all its keys, and counted per minute. A free account gets 1 request a second (60 a minute), so a 200-home check takes just over three minutes. Paying accounts run at least 5 requests a second (300 a minute), and faster rates can be chosen at checkout. The [rate limits docs](https://docs.perceptlayer.com/rate-limits) list the rate each pack includes.

redfin real estate scraping property data home valuation

## More from the blog

1.  [API guides](https://perceptlayer.com/blog/category/api-guides) 15 Nov 2026 Perceptlayer 7 min read
    
    ## [Realtor.com API: Property Listings as JSON](https://perceptlayer.com/blog/realtor-com-api-listings-json)
    
    Watch new Realtor.com listings with the search endpoint: list\_price, beds, sqft, list\_date and coordinates as JSON, at 1 credit per call.
    
2.  [API guides](https://perceptlayer.com/blog/category/api-guides) 26 Oct 2026 Perceptlayer 8 min read
    
    ## [Zillow Scraper or API: Listing Data Without Upkeep](https://perceptlayer.com/blog/zillow-scraper-vs-api)
    
    Compare a Zillow scraper with Zillow endpoints at 1 credit a call: a recorded Seattle search with zpid, price and Zestimate, and the cost per listing per day.
    
3.  [API guides](https://perceptlayer.com/blog/category/api-guides) 1 Oct 2026 Updated 24 Oct 2026 Perceptlayer 7 min read
    
    ## [Redfin API: Search Homes, Then Property and Valuation](https://perceptlayer.com/blog/redfin-api-property-valuation)
    
    Four Redfin endpoints at 1 credit each: find a region, search homes with a real JSON response, then call property and valuation by property\_id.
