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.

You can access the Apartments.com Scraper 🏡 programmatically from your own JavaScript applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.

1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4// Replace the '<YOUR_API_TOKEN>' with your token
5const client = new ApifyClient({
6    token: '<YOUR_API_TOKEN>',
7});
8
9// Prepare Actor input
10const input = {
11    "startUrls": [
12        "https://www.apartments.com/sobe-apartment-rentals-miami-beach-fl/26xc7jb/",
13        "https://www.apartments.com/apartments/miami-fl/student-housing/",
14        "https://www.apartments.com/?sk=544b92fe1f766950d57299dc624e9ff9&bb=0nijpwq7qH0t1s0oB"
15    ],
16    "maxItems": 50,
17    "endPage": 100,
18    "extendOutputFunction": ($) => { return {} },
19    "proxy": {
20        "useApifyProxy": true
21    }
22};
23
24// Run the Actor and wait for it to finish
25const run = await client.actor("epctex/apartments-scraper").call(input);
26
27// Fetch and print Actor results from the run's dataset (if any)
28console.log('Results from dataset');
29console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
30const { items } = await client.dataset(run.defaultDatasetId).listItems();
31items.forEach((item) => {
32    console.dir(item);
33});
34
35// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

Apartments.com Property Data Extractor 🏡 API in JavaScript

The Apify API client for JavaScript is the official library that allows you to use Apartments.com Scraper 🏡 API in JavaScript or TypeScript, providing convenience functions and automatic retries on errors.

Install the apify-client

npm install apify-client

Other API clients include:

Developer
Maintained by Community
Actor metrics
  • 28 monthly users
  • 7 stars
  • 100.0% runs succeeded
  • 14 hours response time
  • Created in Mar 2021
  • Modified about 4 hours ago