Homes.com Scraper

  • epctex/homes-com-scraper
  • Modified
  • Users 8
  • Runs 361
  • Created by Author's avatarepctex

Retrieve all real estate property information from Homes.com. Scrape every property opportunity with prices, plans, images, tax history, amenities, sizes, images, addresses, contact information, real estate agents, and many more attributes in seconds. Search anything without any limits! Super fast!

Free trial for 3 days

Then $30.00/month

No credit card required now

Homes.com Scraper

Free trial for 3 days

Then $30.00/month

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": [
        "https://www.homes.com/property/4414-s-frontenac-st-seattle-wa/89p4n9gbb0k64/",
        "https://www.homes.com/real-estate-agents/devin-haub/5yk0pjp/",
        "https://www.homes.com/los-angeles-ca/",
        "https://www.homes.com/los-angeles-ca/homes-for-rent/",
        "https://www.homes.com/los-angeles-ca/sold/"
    ],
    "maxItems": 20,
    "endPage": 1,
    "extendOutputFunction": ($) => { return {} },
    "customMapFunction": (object) => { return {...object} },
    "proxy": {
        "useApifyProxy": true
    }
};

(async () => {
    // Run the Actor and wait for it to finish
    const run = await client.actor("epctex/homes-com-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);
    });
})();