# Apartments.com Property Links Scraper · US cities · $8/1K (`mlg14/apartments-scraper`) Actor

Find public property links by US city or URL for rental lead lists, market coverage checks and property discovery. Returns Apartments.com canonical URL, property ID, name, city, state and sitemap update time. No prices or units. $8/1K property links.

- **URL**: https://apify.com/mlg14/apartments-scraper.md
- **Developed by:** [MLG Data](https://apify.com/mlg14) (community)
- **Categories:** Real estate, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$8.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Apartments.com Property Links Scraper

Find public Apartments.com property links for a US city and export them as structured JSON, CSV, or spreadsheet rows. This Apartments.com scraper is a property discovery feed: it collects canonical URLs, property IDs, URL-derived names, locations, and sitemap update times from the site's public property sitemaps.

### What data can you extract from Apartments.com?

Each result represents one property URL present in a public sitemap. The result describes the link and its sitemap metadata. It does not contain rent, availability, photographs, or details from the property page.

| Field | Description | Example |
| --- | --- | --- |
| `id` | The identifier in the final segment of the property URL. Use it to remove duplicates across runs. | `gxlc75z` |
| `url` | Canonical property page URL published in a property sitemap. | `https://www.apartments.com/13202-adonis-dr-austin-tx/gxlc75z/` |
| `propertyName` | Readable text derived from the URL slug after removing the city and state. It can be an address and may not equal the page's displayed title. | `13202 Adonis Dr` |
| `city` | City matched against the public city sitemap. | `Austin` |
| `state` | Two-letter US state code from the matched city slug. | `TX` |
| `sitemapLastModified` | Timestamp supplied by the property sitemap, when present. This is a sitemap update time, not a listing creation or price-change date. | `2026-09-26T03:10:54.923Z` |

All fields are flat, so a dataset can be filtered or joined without unpacking nested objects. The ID and URL come from the sitemap. The readable name and city label are derived from the URL, with the city checked against the separate city sitemap. These distinctions matter when using the data for reporting: a sitemap timestamp does not establish when an apartment became available, and a URL slug is not a verified marketing name.

### How to scrape Apartments.com property links

1. Enter a city and two-letter state code, such as `Austin, TX`, in **City and state**. You can instead paste a plain city page URL or a direct property URL into **City or property URLs**.
2. Set **Maximum results** to the number of property links you need. The default is 100. A single direct property URL can yield at most one row.
3. Run the actor. It reads the public city sitemap and several public property sitemaps, matches property links to your targets, removes duplicate IDs, and sorts matches by sitemap update time.
4. Open the resulting dataset. Export it as JSON, CSV, or spreadsheet data, or read it from the dataset endpoint.
5. Keep the property ID when combining later runs. The same property can appear in more than one sitemap, and its update time may change between runs.

This workflow is suited to link discovery and monitoring. It does not follow every property page. If you need current rent, bedrooms, amenities, reviews, or contact details, this dataset alone will not answer those questions.

### Input

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `startUrls` | Array of URLs | Empty | Plain city pages, such as `https://www.apartments.com/austin-tx/`, or direct property pages. You can mix multiple targets. URLs with price, bedroom, or other filters are rejected because those filters cannot be applied to the sitemap. |
| `search` | String | Empty | A city followed by a two-letter state code, such as `Austin, TX`. Street addresses and ZIP codes cannot be resolved through this source. |
| `maxItems` | Integer | `100` | Maximum rows across all targets. The value must be positive. |
| `proxyConfiguration` | Object | Default connection | Connection settings for public sitemap requests. Most users can leave this as supplied. |

Use either `search` or `startUrls`. When both are present, the actor handles URL targets first and then the text search. It deduplicates by property ID across those targets. For predictable coverage, provide a city and state rather than a neighborhood name, a street address, or a filtered search URL.

A realistic input:

```json
{
  "search": "Austin, TX",
  "maxItems": 50
}
```

A URL-based input:

```json
{
  "startUrls": [
    "https://www.apartments.com/austin-tx/",
    "https://www.apartments.com/13202-adonis-dr-austin-tx/gxlc75z/"
  ],
  "maxItems": 100
}
```

A direct property URL is matched against the public sitemaps. If the property is absent from those sitemaps, the actor does not invent a row from the input URL. A city with no matching public property links produces a clear no-results error.

### Output example

This item came from a successful run for `Austin, TX` with a 50-result limit:

```json
{
  "id": "gxlc75z",
  "url": "https://www.apartments.com/13202-adonis-dr-austin-tx/gxlc75z/",
  "propertyName": "13202 Adonis Dr",
  "city": "Austin",
  "state": "TX",
  "sitemapLastModified": "2026-09-26T03:10:54.923Z"
}
```

The run returned 50 rows. IDs, URLs, names, city, state, and sitemap timestamps were present on every row in that run. That result confirms the example city at the time of the run; it does not guarantee the same sitemap inventory or timestamps in a later run.

### Use cases

- **Build a city property index.** Collect canonical links and IDs for a specified city, then maintain a local list of properties seen over time. This is useful when a team needs a repeatable discovery step before human review.
- **Watch for newly surfaced links.** Schedule runs, compare IDs with previous datasets, and flag IDs that appear for the first time. An appearance in the sitemap is a discovery event, not proof that the rental itself was posted that day.
- **Track sitemap changes.** Compare `sitemapLastModified` values for an existing ID across runs. A newer timestamp signals that the sitemap entry changed; the actor does not identify which detail on the property page changed.
- **Check a property URL against the public inventory.** Pass a direct URL to see whether that canonical property page appears in the retrieved sitemap categories.
- **Prepare a link list for research.** Export city-specific URLs for review in a spreadsheet, internal database, or another authorized workflow. Keep the source URL with every row so reviewers can inspect the current page themselves.
- **Deduplicate collected references.** Use `id` as the primary key when merging city runs or comparing records from multiple dates. URLs can contain readable slugs, while the final ID is the stable key used by this dataset.

These uses depend on the public sitemaps, which are intended for discovery and can change in format or coverage. Treat the output as an index of published links rather than a full real estate listing database.

### How much does it cost to scrape Apartments.com?

The configured result price is **$8 per 1,000 dataset items**, or **$0.008 per delivered property link**. Charges follow delivered rows. The actor does not charge a separate event for a city query or a property lookup. Ordinary platform usage is included in this result price.

| Delivered links | Result charge |
| ---: | ---: |
| 50 | $0.40 |
| 100 | $0.80 |
| 1,000 | $8.00 |

For example, a 50-row Austin discovery run has a $0.40 result charge. A 100-row city run has a $0.80 result charge. Ten 100-row runs produce 1,000 delivered rows and a total result charge of $8.00, even if some IDs recur across separate runs; deduplication only happens within one run. A direct property URL matched to one sitemap entry delivers one row, so its result charge is $0.008.

Set `maxItems` to the number you intend to use. If fewer properties match, only delivered rows count. Consider whether link discovery at this price meets your needs before scheduling repeated runs: the dataset does not include the detailed listing fields that many rental analyses require.

### Tips for best results

Use the city spelling and two-letter state code shown in the site's plain city URL. For example, `Austin, TX` corresponds to `/austin-tx/`. A city name without a state is ambiguous and is not accepted. A ZIP code, neighborhood term, or full address cannot be mapped reliably to a city sitemap record by this actor.

Start with a moderate `maxItems`, then increase it if you need more links. Results are sorted by the sitemap timestamp, newest first. That ordering makes recent sitemap changes easier to notice, but it does not reproduce the ranking on the site's interactive search pages. The first 50 links are therefore the 50 most recently modified matching sitemap entries, not necessarily the first 50 rentals a visitor would see.

If you need multiple cities, put their plain city URLs in `startUrls`. The actor processes them in the order supplied. A single `maxItems` cap applies across all cities, so an early large city can fill the entire cap. Run separate jobs for each city when you need a minimum number of links from each one.

For ongoing monitoring, save each run's dataset with its run time. Join on `id`, then compare URL and `sitemapLastModified`. Do not interpret a changed timestamp as a changed rent or availability status without checking the property page through an appropriate source.

For a direct property lookup, use the complete canonical URL including its final identifier. A shortened address phrase or a general search URL cannot identify one property. If the property is missing, check whether the URL is current and whether its category appears in a public sitemap.

### Limits

The source exposes property URLs and sitemap timestamps. It does not expose rent ranges, bed and bath counts, floor area, coordinates, scores, images, virtual tours, reviews, amenities, schools, fees, contact information, or descriptions in the data this actor uses. Those fields are omitted rather than filled with guesses or empty placeholders. This is the main difference from a full property-detail scraper.

Interactive city search pages and property pages returned an access challenge during development, including browser and residential access attempts. The public customer API required authentication. The actor therefore uses public XML sitemaps and does not claim to collect data from the blocked pages or the authenticated API.

Sitemaps are split by profile category. The actor reads new-listing, A, B, C, D, and basic-property categories, removes duplicate IDs, and selects records matching the requested city or exact property URL. A property absent from these categories cannot be returned. Sitemap coverage may differ from the interactive search results, and an entry can disappear or move.

Price, bedroom, amenity, and map filters from the site cannot be applied to a sitemap. Filtered URLs are rejected so a run cannot quietly return unfiltered links. Search terms are limited to city plus state; direct property URLs are supported. The actor cannot geocode addresses or ZIP codes.

The `propertyName` is a human-readable rendering of the URL slug. It may be an address, an abbreviated brand name, or wording that differs from the live page. `sitemapLastModified` belongs to the sitemap entry, not to a rent quote or unit. Neither field should be treated as a verified page detail.

A sitemap request can fail or a sitemap can change format. The actor continues past an unavailable property category, but it stops with an error if the city sitemap fails, if no property records are available, or if no records match the input. That behavior avoids a successful-looking empty dataset.

### Use in automated workflows

Two example requests for an automated workflow:

> Collect up to 50 Apartments.com property links for Austin, TX. Return their IDs, canonical URLs, city, state, and sitemap update times.

> Check whether this property URL appears in the public property sitemaps, and return its sitemap record if present: https://www.apartments.com/13202-adonis-dr-austin-tx/gxlc75z/

An automated consumer should read the input descriptions and output schema before using the dataset. The schema states that names are URL-derived and timestamps are sitemap metadata. It should avoid presenting these rows as complete rental offers or quoting prices from them.

### Use with AI agents (MCP)

Add this actor to any MCP client (Claude, Cursor, VS Code, n8n and others) with one URL:

`https://mcp.apify.com?tools=mlg14/apartments-scraper`

The actor returns one dataset item per Apartments.com property link (URL, ID, name, city, state, sitemap update time). Keep results bounded with maxItems.

**Prompt 1:** "List 50 Apartments.com property links in Austin, TX."

```json
{
  "search": "Austin, TX",
  "maxItems": 50
}
```

**Prompt 2:** "Collect Apartments.com property links for the Austin city page."

```json
{
  "startUrls": [
    "https://www.apartments.com/austin-tx/"
  ],
  "maxItems": 100
}
```

**Prompt 3:** "Look up this Apartments.com property link and give me its ID and name."

```json
{
  "startUrls": [
    "https://www.apartments.com/13202-adonis-dr-austin-tx/gxlc75z/"
  ],
  "maxItems": 1
}
```

### FAQ

#### Is it legal to collect these links?

The actor reads public sitemap entries. Follow the site's terms and applicable law for your use, and review privacy rules before combining these links with personal information. This dataset contains property URLs and their public sitemap metadata; it is not intended for personal-data collection.

#### Do I need to configure a connection?

The default connection settings are intended to work for the public sitemap requests. Leave them in place unless your account needs a specific connection configuration. Property pages remain outside this actor's data source regardless of connection settings.

#### How fast is a run?

Run time depends on the current size and response time of the public city and property sitemaps. The tested 50-row Austin run completed successfully in under a minute of remote run time. A larger result limit does not remove the need to read the source sitemaps first.

#### Can I schedule the actor and monitor changes?

Yes. Store each run's dataset and compare property IDs and sitemap timestamps. A new ID means a newly observed sitemap link in your collected data. A newer timestamp means the sitemap entry changed. Neither observation proves a rent or availability change.

#### Can I export the result to a spreadsheet?

Yes. Export the default dataset as CSV or spreadsheet data, or read its JSON rows through the dataset endpoint. The flat six-field output is designed for sorting, joining, and review in a table.

#### Why is a property field empty or missing?

A sitemap entry may omit its last-modified timestamp, in which case `sitemapLastModified` can be null. Rent, photos, descriptions, reviews, and other property-page fields are not part of this actor's output. The actor does not fill them from a different source.

#### Why did my filtered city URL fail?

The public sitemap has property URLs but no representation of the site's interactive price, bedroom, or amenity filters. Use a plain city URL. If the filter matters, this actor cannot satisfy that query accurately.

### Integrations

The default dataset can be read through an API endpoint, exported, sent through a webhook, or used in a scheduled workflow. A typical pipeline stores `id` and `url`, records the run time, and compares IDs and sitemap timestamps with the previous run. Add any downstream enrichment only when you have a suitable source and permission for that data.

### Support

Open an issue on the Issues tab; we reply within 24h and add fields on request.

# Actor input Schema

## `startUrls` (type: `array`):

Apartments.com plain city search URLs or direct property URLs, as strings. Example: \["https://www.apartments.com/austin-tx/"]. Use it to target a city or property; price and bedroom filters in URLs are not supported.

## `search` (type: `string`):

City followed by a two-letter state code. Example: Austin, TX. Use it for a city search instead of a URL; ZIP codes and street addresses are not supported.

## `maxItems` (type: `integer`):

Maximum property links to save across all targets (integer, 1 or more). Example: 50. Use a small number for quick checks.

## `proxyConfiguration` (type: `object`):

Connection configuration for fetching public sitemaps.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.apartments.com/austin-tx/"
  ],
  "search": "Austin, TX",
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `properties` (type: `string`):

Property links and sitemap metadata in the default dataset.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "startUrls": [
        "https://www.apartments.com/austin-tx/"
    ],
    "search": "Austin, TX"
};

// Run the Actor and wait for it to finish
const run = await client.actor("mlg14/apartments-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "startUrls": ["https://www.apartments.com/austin-tx/"],
    "search": "Austin, TX",
}

# Run the Actor and wait for it to finish
run = client.actor("mlg14/apartments-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrls": [
    "https://www.apartments.com/austin-tx/"
  ],
  "search": "Austin, TX"
}' |
apify call mlg14/apartments-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mlg14/apartments-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/BaR9O1Dfru85qiia2/builds/rZYbJfdKj9atr7AzV/openapi.json
