LogoLogo
OverviewRelease NotesDataPipelineFAQs
Python
Python
  • Make Requests with ScraperAPI in Python
    • Use ScraperAPI Endpoint in Python
    • Use ScraperAPI Proxy Port in Python
    • Use ScraperAPI SDK in Python
    • Make Async Requests with ScraperAPI in Python
      • How to Use ScraperAPI Async Web Scraping in Python
      • Use Async ScraperAPI Callbacks in Python
      • Configure ScraperAPI Parameters in Python
      • Request Async Batch Scraping with ScraperAPI in Python
      • Decode Base64 Async Responses in Python
    • ScraperAPI Structured Data Collection in Python
      • Amazon Product Page API: Structured Data in Python
      • Amazon Search API: Structured Data in Python
      • Amazon Offers API: Structured Data in Python
      • Amazon Reviews API: Structured Data in Python
      • Ebay Product Page API: Structured Data in Python
      • Ebay Search API: Structured Data in Python
      • Google SERP API: Structured Data in Python
      • Google News API: Structured Data in Python
      • Google Jobs API: Structured Data in Python
      • Google Shopping API: Structured Data in Python
      • Google Maps Search API: Structured Data in Python
      • Redfin Agent Details API: Structured Data in Python
      • Redfin 'For Rent' Listings API: Structured Data in Python
      • Redfin 'For Sale' Listings API: Structured Data in Python
      • Redfin Listing Search API: Structured Data in Python
      • Walmart Search API: Structured Data in Python
      • Walmart Category API: Structured Data in Python
      • Walmart Product API: Structured Data in Python
      • Walmart Reviews API: Structured Data in Python
    • ScraperAPI Async Structured Data Collection in Python
      • Amazon Product Page API: Async Structured Data in Python
      • Amazon Search API: Async Structured Data in Python
      • Amazon Offers API: Async Structured Data in Python
      • Amazon Reviews API: Async Structured Data in Python
      • Ebay Product Page API: Async Structured Data in Python
      • Ebay Search API: Async Structured Data in Python
      • Google SERP API: Async Structured Data in Python
      • Google News API: Async Structured Data in Python
      • Google Jobs API: Async Structured Data in Python
      • Google Shopping API: Async Structured Data in Python
      • Google Maps Search API: Async Structured Data in Python
      • Redfin Agent Details API: Async Structured Data in Python
      • Redfin 'For Rent' Listings API: Async Structured Data in Python
      • Redfin 'For Sale' Listings API: Async Structured Data in Python
      • Redfin Listing Search API: Async Structured Data in Python
      • Walmart Search API: Async Structured Data in Python
      • Walmart Category API: Async Structured Data in Python
      • Walmart Product API: Async Structured Data in Python
      • Walmart Reviews API: Async Structured Data in Python
    • Making POST/PUT Requests with ScraperAPI in Python
    • Customizing ScraperAPI Requests in Python
      • Customize Amazon Requests by ZIP Code via ScraperAPI in Python
      • Customize Cached Results via ScraperAPI in Python
      • Customize Control Costs with ScraperAPI Parameter in Python
      • Send Custom Headers with ScraperAPI in Python
      • Customize Device Type with ScraperAPI in Python
      • Customize Geotargeted Content Scrape via ScraperAPI in Python
      • Customize Premium Geotargeted Scrape via ScraperAPI in Python
      • Customize Header Parameter with ScraperAPI in Python
      • Customize Premium Residential/Mobile Proxies in Python
      • Customize JavaScript-Rendered Pages via ScraperAPI in Python
        • Use Render Instruction Set to Scrape Dynamic Pages in Python
        • Customize Taking a Website Screenshots via ScraperAPI in Python
      • Customize Scrape Session-Based Proxies via ScraperAPI in Python
  • Handle and Process Responses via ScraperAPI in Python
    • Use API Status Codes to Retry Failed Requests in Python
    • Customize Output Formats via ScraperAPI Parameters in Python
      • Request JSON Response via Autoparse Parameter in Python
      • Request LLM Output Formats with ScraperAPI in Python
    • Request Response Encoding and Content-Type via ScraperAPI in Python
  • Dashboard & Billing
    • API Key
    • Credit Usage
    • Delete Account
    • Invoice History
    • Billing Email
    • Billing Adress
    • VAT Number
    • Payment Method
    • Cancel Subscription
  • Credits and Requests
  • Monitor Your ScraperAPI Account Information in Python
  • Documentation Overview
Powered by GitBook

Quick links

  • Homepage
  • Dashboard
  • Pricing
  • Contact Sales

Resources

  • Developer Guides
  • Blog
  • Learning Hub
  • Contact Support
On this page

Was this helpful?

  1. Make Requests with ScraperAPI in Python
  2. ScraperAPI Async Structured Data Collection in Python

Redfin Listing Search API: Async Structured Data in Python

Scrape Redfin property search results into structured JSON/CSV using ScraperAPI async in Python. Supports search page URLs, country targeting, and domain selection.

This endpoint will return the search results from a listing search page and transform it into usable JSON.

Single Query Request:

import requests

url = "https://async.scraperapi.com/structured/redfin/search"
headers = {
    "Content-Type": "application/json"
}
data = {
    "apiKey": APIKEY,
    "url": URL,
    "country_code": COUNTRY_CODE,
    "tld": TLD,
    "callback": {
        "type": "webhook",
        "url": "YYYY"
    }
}

response = requests.post(url, json=data, headers=headers)
print(response.text)

Multiple Query Request:

import requests

url = "https://async.scraperapi.com/structured/redfin/search"
headers = {
    "Content-Type": "application/json"
}
data = {
    "apiKey": APIKEY,
    "urls": [URL1,URL2],
    "country_code": COUNTRY_CODE,
    "tld": TLD,
    "callback": {
        "type": "webhook",
        "url": "YYYY"
    }
}

response = requests.post(url, json=data, headers=headers)
print(response.text)

Parameters
Details

API_KEY (required)

User's API Key.

URL (required)

The URL of the Redfin search page. The URL has to be a Redfin Search page.

country_code

TLD

The top level domain to scrape.

Valid options:

Sample Response

For single query requests:

{
 "id": "c9ef64da-ed35-4848-a542-d893815a5d02",
 "attempts": 0,
 "status": "running",
 "statusUrl": "https://async.scraperapi.com/jobs/c9ef64da-ed35-4848-a542-d893815a5d02",
 "url": "https://www.redfin.com/city/1826/MA/Boston/filter/min-beds=3,min-baths=2",
 "supposedToRunAt": "2025-02-17T15:19:56.772Z"
}

For multiple query requests:

[
 {
  "id": "d5242953-7d1f-4cba-abf7-4d74a9afe9a3",
  "attempts": 0,
  "status": "running",
  "statusUrl": "https://async.scraperapi.com/jobs/d5242953-7d1f-4cba-abf7-4d74a9afe9a3",
  "url": "https://www.redfin.com/city/1826/MA/Boston/filter/min-beds=3,min-baths=2"
 },
 {
  "id": "4f23b759-2939-47c1-9821-4e3218bc9d37",
  "attempts": 0,
  "status": "running",
  "statusUrl": "https://async.scraperapi.com/jobs/4f23b759-2939-47c1-9821-4e3218bc9d37",
  "url": "https://www.redfin.com/city/10201/NV/Las-Vegas/filter/min-beds=2,min-baths=1"
 }
]

Last updated 3 months ago

Was this helpful?

Allows you to geotarget the request. Use this parameter if you want Redfin to be scraped from a specific .

‘com’ (for )

‘ca’ (for )

country
redfin.com
redfin.ca