Apartments.com Scraper 🏡 avatar
Apartments.com Scraper 🏡
Try for free

7 days trial then $30.00/month - No credit card required now

View all Actors
Apartments.com Scraper 🏡

Apartments.com Scraper 🏡

epctex/apartments-scraper
Try for free

7 days trial then $30.00/month - No credit card required now

Scrape Apartments.com to crawl millions of real estate properties nationwide. Specify any US location and extract data on all available properties in that area. Our real estate scraper lets you filter and limit the results by page or total number. You can also target a specific property or area.

The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn mode

Node.js

Python

curl

1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4const client = new ApifyClient({
5    token: '<YOUR_API_TOKEN>',
6});
7
8// Prepare Actor input
9const input = {
10    "startUrls": [
11        "https://www.apartments.com/sobe-apartment-rentals-miami-beach-fl/26xc7jb/",
12        "https://www.apartments.com/apartments/miami-fl/student-housing/",
13        "https://www.apartments.com/?sk=544b92fe1f766950d57299dc624e9ff9&bb=0nijpwq7qH0t1s0oB"
14    ],
15    "maxItems": 50,
16    "endPage": 100,
17    "extendOutputFunction": ($) => { return {} },
18    "proxy": {
19        "useApifyProxy": true
20    }
21};
22
23(async () => {
24    // Run the Actor and wait for it to finish
25    const run = await client.actor("epctex/apartments-scraper").call(input);
26
27    // Fetch and print Actor results from the run's dataset (if any)
28    console.log('Results from dataset');
29    const { items } = await client.dataset(run.defaultDatasetId).listItems();
30    items.forEach((item) => {
31        console.dir(item);
32    });
33})();
Developer
Community logoMaintained by Community
Actor metrics
  • 29 monthly users
  • 100.0% runs succeeded
  • 0.1 days response time
  • Created in Mar 2021
  • Modified about 24 hours ago

You might also like these Actors