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 Python 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.

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

Apartments.com Property Data Extractor 🏡 API in Python

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

Install the apify-client

pip install apify-client

Other API clients include:

Developer
Maintained by Community
Actor metrics
  • 23 monthly users
  • 6 stars
  • 100.0% runs succeeded
  • Created in Mar 2021
  • Modified 1 day ago