Redfin Listing Search API (Async)
Scrape Redfin property search results into structured JSON/CSV using ScraperAPI async in PHP. 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:
<?php
$curl = curl_init();
$data = json_encode(array(
'apiKey' => 'API_KEY',
'url' => 'URL',
'country_code' => 'COUNTRY_CODE',
'tld' => 'TLD',
'callback' => array(
'type' => 'webhook',
'url' => 'YYYYY'
)
));
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://async.scraperapi.com/structured/redfin/search',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => $data,
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
if (curl_errno($curl)) {
echo 'Error:' . curl_error($curl);
} else {
echo $response;
}
curl_close($curl);
?>Multiple Query Request:
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
Allows you to geotarget the request. Use this parameter if you want Redfin to be scraped from a specific country.
TLD
Sample Response
For single query requests:
For multiple query requests:
Last updated
Was this helpful?

