Skip to content

About

Redfin scraper API: Redfin Apartments Search, Redfin Property Search, Redfin Property Details as clean JSON. Python examples with requests, Scrapy, asyncio and the DataGuru SDK.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

Redfin Scraper API

Scrape Redfin with a JSON API. This repo has working Python examples for DataGuru's Redfin scraper APIs: Redfin Apartments Search, Redfin Property Search and Redfin Property Details.

DataGuru runs the scraping, proxies, retries and parsing, and returns clean JSON. You pay only for successful requests, from $0.0012 per request, out of a prepaid balance: no subscription. New accounts get $1.00 of free credit.

Redfin APIs

API What it returns Price Page
Redfin Apartments Search Search apartments and rental listings on Redfin with rent ranges, amenities, and floor plans. $0.0012 https://dataguru.cc/apis/redfin-apartments/
Redfin Property Search Search homes for sale or rent on Redfin with prices, beds, baths, and property photos. $0.0012 https://dataguru.cc/apis/redfin-search/
Redfin Property Details Scrape complete Redfin property details, Redfin Estimate, HOA fees, schools, tax assessment, and price history. $0.0022 https://dataguru.cc/apis/redfin-property-details/

Quick start

  1. Create a free account and an API key at dashboard.dataguru.cc.
  2. Install and run:
git clone https://github.com/dataguru-cc/redfin-scraper-api.git
cd redfin-scraper-api
pip install -r requirements.txt
export DATAGURU_API_KEY="your key"
python examples/sdk_example.py redfin-apartments

Examples

Every example covers all 3 Redfin APIs. Pass an API name to run just one; with no name each script runs them all, and each call is billed at the price above.

File Style Run
examples/sdk_example.py DataGuru Python SDK (pip install dataguru-sdk), one function per API, saves JSON to output/ python examples/sdk_example.py
examples/requests_example.py Plain requests, synchronous python examples/requests_example.py
examples/async_example.py asyncio + httpx, concurrent with a limit python examples/async_example.py
examples/scrapy_spider.py Scrapy spider, items to JSON/CSV scrapy runspider examples/scrapy_spider.py -O redfin.json

All requests use the header Authorization: Api-Key YOUR_API_KEY. Errors return {"success": false, "error": {"code", "message", "request_id"}}, with HTTP 402 when the balance runs out and 429 (with Retry-After) when rate limited. Failed requests are not charged.

API reference

Redfin Apartments Search

Search apartments and rental listings on Redfin with rent ranges, amenities, and floor plans.

Parameter Type Required Description
target string yes City, ZIP, or Redfin apartments URL, e.g. Austin, TX

Response fields: target, url, community_name, description, address, rent_range, contact_phone, total_floor_plans, floor_plans, pet_policy, amenities, primary_photo, photos, coordinates, plus _metadata

curl -X POST "https://api.dataguru.cc/api/v1/redfin/apartments" \
  -H "Authorization: Api-Key $DATAGURU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"target": "Austin"}'
Response schema

Values are type placeholders from the API's published schema, not real data.

{
  "target": "string",
  "url": "https://example.com/...",
  "community_name": "string",
  "description": "string",
  "address": {
    "street_address": "string",
    "city": "string",
    "state": "string",
    "zip_code": "string",
    "full_address": "string"
  },
  "rent_range": "string",
  "contact_phone": "string",
  "total_floor_plans": 0,
  "floor_plans": [
    {
      "plan_name": "string",
      "url": "https://example.com/...",
      "beds": 0,
      "baths": 0.0,
      "sqft": 0,
      "price": "string",
      "availability": "string",
      "photo": "https://example.com/..."
    }
  ],
  "pet_policy": [
    "string"
  ],
  "amenities": [
    "string"
  ],
  "primary_photo": "https://example.com/...",
  "photos": [
    "https://example.com/..."
  ],
  "coordinates": {
    "latitude": 0.0,
    "longitude": 0.0
  },
  "_metadata": {
    "request_id": "3f6c1a2e-8b4d-4c1e-9a7f-2d5e6b7c8d9e",
    "execution_time_ms": 842,
    "endpoint": "Redfin Apartments Search",
    "mode": "live",
    "format": "json",
    "timestamp": "2026-01-01T12:00:00+00:00"
  }
}

Redfin Property Search

Search homes for sale or rent on Redfin with prices, beds, baths, and property photos.

Parameter Type Required Description
listing_type string no Listing type: sale, rent, sold Default: sale.
query string yes City, state, or ZIP, e.g. Austin, TX or 78701

Response fields: query, url, listing_type, total_results, results, plus _metadata

curl -X POST "https://api.dataguru.cc/api/v1/redfin/search" \
  -H "Authorization: Api-Key $DATAGURU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "Austin"}'
Response schema

Values are type placeholders from the API's published schema, not real data.

{
  "query": "string",
  "url": "https://example.com/...",
  "listing_type": "string",
  "total_results": 0,
  "results": [
    {
      "property_id": "1234567890",
      "url": "https://example.com/...",
      "address": {
        "street_address": "string",
        "city": "string",
        "state": "string",
        "zip_code": "string",
        "full_address": "string"
      },
      "price": "string",
      "price_value": 0.0,
      "property_type": "string",
      "bedrooms": 0,
      "bathrooms": 0.0,
      "square_footage": 0,
      "coordinates": {
        "latitude": 0.0,
        "longitude": 0.0
      }
    }
  ],
  "_metadata": {
    "request_id": "3f6c1a2e-8b4d-4c1e-9a7f-2d5e6b7c8d9e",
    "execution_time_ms": 842,
    "endpoint": "Redfin Property Search",
    "mode": "live",
    "format": "json",
    "timestamp": "2026-01-01T12:00:00+00:00"
  }
}

Redfin Property Details

Scrape complete Redfin property details, Redfin Estimate, HOA fees, schools, tax assessment, and price history.

The examples find the property_url with Redfin Property Search first, then pass it to this API. Both calls are billed.

Parameter Type Required Description
property_url string yes Redfin home URL or property ID

Response fields: target, url, property_id, mls_id, title, description, address, listing_price, price_per_square_foot, redfin_estimate, days_on_redfin, property_type, status, specs_and_structural_data, amenities_and_features, agent_and_broker, schools, lifestyle_and_scores, price_history, tax_history, primary_photo, photos, coordinates, plus _metadata

curl -X POST "https://api.dataguru.cc/api/v1/redfin/property-details" \
  -H "Authorization: Api-Key $DATAGURU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"property_url": "URL_FROM_SEARCH"}'
Response schema

Values are type placeholders from the API's published schema, not real data.

{
  "target": "string",
  "url": "https://example.com/...",
  "property_id": "1234567890",
  "mls_id": "1234567890",
  "title": "string",
  "description": "string",
  "address": {
    "street_address": "string",
    "city": "string",
    "state": "string",
    "zip_code": "string",
    "full_address": "string",
    "apn": "string"
  },
  "listing_price": 0.0,
  "price_per_square_foot": 0.0,
  "redfin_estimate": 0.0,
  "days_on_redfin": 0.0,
  "property_type": "string",
  "status": "string",
  "specs_and_structural_data": {
    "bedrooms": 0,
    "bathrooms": 0.0,
    "full_bathrooms": 0,
    "square_footage": 0,
    "lot_size_sqft": 0,
    "year_built": 0,
    "parking": {},
    "garage": {},
    "heating_and_cooling": {},
    "building_information": {}
  },
  "amenities_and_features": {
    "interior_features": {},
    "exterior_features": {},
    "appliances": {},
    "utility_information": {},
    "community_information": {}
  },
  "agent_and_broker": {
    "agent_name": "string",
    "broker_name": "string",
    "mls_source": "string",
    "mls_id": "1234567890"
  },
  "schools": [
    {
      "name": "string",
      "rating": 0,
      "rating_display": "string",
      "details": "string"
    }
  ],
  "lifestyle_and_scores": {
    "walk_score": 0.0,
    "bike_score": 0.0,
    "transit_score": 0.0,
    "neighborhood_overview": "string"
  },
  "price_history": [
    {
      "date": "2026-01-01T12:00:00Z",
      "event": "string",
      "price": 0.0,
      "source": "string"
    }
  ],
  "tax_history": [
    {
      "year": 0,
      "land_value": 0.0,
      "improvement_value": 0.0,
      "taxes_due": 0.0
    }
  ],
  "primary_photo": "https://example.com/...",
  "photos": [
    "https://example.com/..."
  ],
  "coordinates": {
    "latitude": 0.0,
    "longitude": 0.0
  },
  "_metadata": {
    "request_id": "3f6c1a2e-8b4d-4c1e-9a7f-2d5e6b7c8d9e",
    "execution_time_ms": 842,
    "endpoint": "Redfin Property Details",
    "mode": "live",
    "format": "json",
    "timestamp": "2026-01-01T12:00:00+00:00"
  }
}

More

License

The example code is MIT licensed. Use of the DataGuru API is subject to the terms of service.

About

Redfin scraper API: Redfin Apartments Search, Redfin Property Search, Redfin Property Details as clean JSON. Python examples with requests, Scrapy, asyncio and the DataGuru SDK.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors