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

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