
Zillow Detail Scraper
- maxcopell/zillow-detail-scraper
- Modified
- Users 71
- Runs 942
- Created by
Maximillian Copelli
Get details of Zillow properties from URLs. This Actor can be easily integrated with other Zillow Scrapers.
To run the code examples, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token. For a more detailed explanation, please read about running Actors via the API in Apify Docs.
import { ApifyClient } from 'apify-client';
// Initialize the ApifyClient with API token
const client = new ApifyClient({
token: '<YOUR_API_TOKEN>',
});
// Prepare Actor input
const input = {
"startUrls": [
{
"url": "https://www.zillow.com/homedetails/17-Zelma-Dr-Greenville-SC-29617/11026031_zpid/"
},
{
"url": "https://www.zillow.com/apartments/san-antonio-tx/westpond/5XkVjF/"
},
{
"url": "https://www.zillow.com/community/greens-at-indian-river-preserve/39987_plid/"
},
{
"url": "https://www.zillow.com/b/Cashiers-NC/35.09787,-83.080475_ll/"
},
{
"url": "https://www.zillow.com/community/greens-at-indian-river-preserve/2072679238_zpid/"
},
{
"url": "https://www.zillow.com/b/2202-sandlewood-cv-san-antonio-tx-C2tftd/"
}
],
"searchResultsDatasetId": "MCrom9yPhGqh8X1Yr"
};
(async () => {
// Run the Actor and wait for it to finish
const run = await client.actor("maxcopell/zillow-detail-scraper").call(input);
// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
console.dir(item);
});
})();