# at home Japan Rental Scraper (athome.co.jp) (`stone_jadex/athome-japan-rental-scraper`) Actor

Public at home (athome.co.jp) Japan rental listings: propertyId, title, monthly rent, area, layout, station access, address, photos, and optional detail pages. No start fee.

- **URL**: https://apify.com/stone_jadex/athome-japan-rental-scraper.md
- **Developed by:** [Stone Jade](https://apify.com/stone_jadex) (community)
- **Categories:** Real estate
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.25 / 1,000 list-tier properties

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## at home Japan Rental Scraper

Extract structured Japanese rental listings from public **at home (`athome.co.jp`)** search and property pages. Collect unit-level monthly rent in yen, exclusive floor area, room layout, station access, address, building metadata, fees, coordinates, and public photos in a clean dataset ready for spreadsheets, BI dashboards, or downstream pipelines.

This Actor covers **at home (`athome.co.jp`)** exclusively and is a separate product line from SUUMO. It runs comfortably on the default **256 MB** memory tier using a lightweight list parser, charges **no Actor start fee**, and lets you choose between fast list-tier snapshots and enriched detail-page records.

### What you can do

- **Extract unit-level rental rooms** from public at home building cards, splitting rent, floor area, layout, room number, and building name into separate typed fields for immediate filtering and comparison.
- **Compare transit access across wards and prefectures** using parsed primary `station` text alongside the full `stations` list for each property.
- **Enrich listings on demand** by turning on `scrapeDetails` to visit each public `/chintai/{id}/` detail page and capture published amenities, orientation, move-in availability, contract conditions, listing date (`listedAt`), `geo` coordinates, and fuller photo arrays.
- **Run with zero configuration or targeted URLs**: leave `startUrls` empty to crawl built-in multi-ward Tokyo, Osaka, and Kanagawa rental seeds, or pass your own public at home search or property URLs.
- **Keep costs and memory predictable**: duplicates, empty pages, and trailing `run-notice` records are never charged, and list-only runs stay within 256 MB memory.

#### Common use cases

- **Relocation and brokerage teams**: compare 1K, 1DK, and 2LDK monthly rents, walking distances, and upfront deposit or key-money terms across specific Tokyo wards.
- **Real estate market analysts**: benchmark yen-per-square-meter pricing across neighborhoods, building ages, and property types over periodic snapshots.
- **PropTech and portal builders**: ingest structured public listing metadata with canonical `propertyId` values and direct source URLs for research or indexing workflows.

### Input configuration

#### Start in three steps

1. Keep the prefilled Tokyo ward list URL in `startUrls`, replace it with your own public `athome.co.jp` list or detail URLs, or clear `startUrls` to rotate across the built-in Tokyo, Osaka, and Kanagawa default seeds.
2. Set `maxItems` (default `50`, maximum `10,000`) and keep `scrapeDetails` off for fast list-tier rows, or enable `scrapeDetails` to enrich each row from its detail page.
3. Click **Start**, monitor the run log, and export the dataset as JSON, CSV, Excel, or via the Apify API.

#### Input parameters

| Parameter | Type | Default | Description |
| --- | --- | --- | --- |
| `startUrls` | array | Built-in Tokyo/Osaka/Kanagawa seeds (prefilled with Minato-ku list) | Public `athome.co.jp` rental list URLs (such as `/chintai/tokyo/minato-city/list/`) or detail URLs (`/chintai/{id}/`). Empty input activates the built-in multi-ward seed list with a soft 1-page-per-seed rotation. |
| `maxItems` | integer | `50` | Maximum number of charged rental items to collect (`1` to `10,000`). Alias: `maxResults`. |
| `maxPages` | integer | `null` | Optional maximum list pages per seed (`1` to `10,000`). Each Tokyo list page typically contains ~150 rooms across ~30 building cards. |
| `startPage` | integer | `1` | Starting list page when a seed URL does not already specify `/pageN/` or `?page=`. |
| `scrapeDetails` | boolean | `false` | Visit each property's public detail page to add `amenities`, `listedAt`, `orientation`, `conditions`, `moveIn`, `floor`, `geo`, and fuller `photos`. Charged as `property-detail` instead of `property`. Alias: `includeDetails`. |
| `requestDelayMs` | integer | `1500` | Minimum start-to-start spacing between requests in milliseconds (floor `1200`). Raised automatically if `robots.txt` sets a higher `Crawl-delay`. |
| `concurrency` | integer | `1` | Maximum requests in flight (`1` to `3`, default serial `1`). Alias: `maxConcurrency`. |
| `maxRunSeconds` | integer | `3600` | Soft run-time limit in seconds (`>= 30`); stops cleanly and writes `OUTPUT` before timeout. |
| `proxyConfiguration` | object | `{ "useApifyProxy": false }` | Direct connection by default. Optional Apify Proxy configuration; residential proxy usage is subject to a fixed developer download cap of 5 MB. |
| `useProxyFallback` | boolean | `false` | Start on a direct connection and switch to the configured proxy only after repeated HTTP 403 or 429 responses. |
| `allowDetailOnResidential` | boolean | `false` | When using a residential proxy group, detail requests stay direct unless this option is enabled. |
| `challengeCooldownSecs` | integer | `0` | Optional pause in seconds before the next seed after at home displays a verification challenge page (`0` to `600`). Legacy field `authCooldownSecs` remains accepted for backward compatibility. |
| `challengeWindDownAfter` | integer | `2` | Stop cleanly with a `run-notice` row after this many consecutive seeds hit a verification challenge page (`1` to `20`). Verification pages are never bypassed. Legacy field `authWindDownAfter` remains accepted for backward compatibility. |

#### Input examples

Fast list-tier collection for a Tokyo ward:

```json
{
  "startUrls": [
    { "url": "https://www.athome.co.jp/chintai/tokyo/minato-city/list/" }
  ],
  "maxItems": 50,
  "scrapeDetails": false,
  "requestDelayMs": 1500,
  "concurrency": 1
}
```

Detail-enriched crawl across two wards with a page cap:

```json
{
  "startUrls": [
    { "url": "https://www.athome.co.jp/chintai/tokyo/shinjuku-city/list/" },
    { "url": "https://www.athome.co.jp/chintai/tokyo/chuo-city/list/" }
  ],
  "maxItems": 30,
  "maxPages": 1,
  "scrapeDetails": true,
  "challengeWindDownAfter": 2
}
```

Targeted detail lookup for specific public rental listings:

```json
{
  "startUrls": [
    { "url": "https://www.athome.co.jp/chintai/1000162911/" }
  ],
  "maxItems": 5,
  "scrapeDetails": true
}
```

### Output schema and sample data

#### Illustrative JSON output

The JSON snippet below is **illustrative** and uses placeholder values to demonstrate the exact schema defined in `.actor/dataset_schema.json` (showing one enriched `detail` record followed by a trailing `run-notice` row). It is not live inventory, and published fields vary by listing.

```json
[
  {
    "propertyId": "1234567890",
    "title": "サンプルレジデンス 101 1K",
    "rent": 85000,
    "rentDisplay": "8.5万円",
    "area": 25.5,
    "areaDisplay": "25.50m²",
    "layout": "1K",
    "station": "例示線 / 例示駅 徒歩5分",
    "stations": [
      "例示線 / 例示駅 徒歩5分",
      "例示地下鉄 / 例示町駅 徒歩8分"
    ],
    "address": "東京都例示区例示町1-2-3",
    "buildingName": "サンプルレジデンス",
    "roomNumber": "101",
    "propertyType": "マンション",
    "buildingMeta": "2010年1月築",
    "floor": "5階建 / 3階",
    "amenities": [
      "オートロック",
      "宅配ボックス"
    ],
    "fees": {
      "managementFee": { "display": "5,000円", "yen": 5000 },
      "deposit": { "display": "1ヶ月", "yen": null },
      "keyMoney": { "display": "1ヶ月", "yen": null }
    },
    "listedAt": "2026/10/01",
    "photos": [
      "https://www.athome.co.jp/image_files/example/room-1.jpg"
    ],
    "url": "https://www.athome.co.jp/chintai/1234567890/",
    "orientation": "南",
    "conditions": "ペット相談",
    "moveIn": "即入居可",
    "geo": {
      "lat": 35.7,
      "lng": 139.7
    },
    "page": 1,
    "position": 3,
    "listUrl": "https://www.athome.co.jp/chintai/tokyo/example-city/list/",
    "tier": "detail",
    "scrapedAt": "2026-11-21T06:00:00.000Z"
  },
  {
    "recordType": "run-notice",
    "reason": "maxItems",
    "itemsSoFar": 50,
    "truncatedAfter": 50
  }
]
```

Every run also writes a structured crawl summary to the default key-value store under the `OUTPUT` record (including seed statuses, HTTP counters, `robotsDisallowedHits`, `stopReason`, and verification-stop notes).

#### Full field reference

Fields that are not published on a listing or cannot be parsed are returned as `null` (or `[]` for array fields).

| Field | Type | Tier | Description |
| --- | --- | --- | --- |
| `propertyId` | string | null | List & Detail | Numeric listing identifier extracted from `/chintai/{id}/`. |
| `title` | string | null | List & Detail | Listing title combining building name, room number, and layout, or the detail page heading. |
| `rent` | number | null | List & Detail | Monthly rent in Japanese yen parsed from `rentDisplay`. |
| `rentDisplay` | string | null | List & Detail | Monthly rent exactly as published on the page. |
| `area` | number | null | List & Detail | Exclusive floor area in square meters parsed from `areaDisplay`. |
| `areaDisplay` | string | null | List & Detail | Floor area string exactly as published. |
| `layout` | string | null | List & Detail | Room layout code (such as `1K`, `1DK`, or `2LDK`). |
| `station` | string | null | List & Detail | Primary rail line and station walking access text (first element of `stations`). |
| `stations` | string\[] | null | List & Detail | All published transit access lines for the listing. |
| `address` | string | null | List & Detail | Published property address (with trailing map-link text cleaned on detail pages). |
| `buildingName` | string | null | List & Detail | Building name from the list card or detail heading. |
| `roomNumber` | string | null | List & Detail | Room number parsed from the list card (`null` on detail-only seeds). |
| `propertyType` | string | null | List & Detail | Property category label (apartment, condominium, detached house, etc.). |
| `buildingMeta` | string | null | List & Detail | Building construction year or metadata line. |
| `floor` | string | null | Detail | Floor and total stories text when published on the detail page. |
| `amenities` | string\[] | null | Detail | Equipment and amenity labels from the detail page (`[]` on list-tier rows). |
| `fees` | object | null | List & Detail | Nested `managementFee`, `deposit`, and `keyMoney` blocks, each holding `display` text and numeric `yen` (or `null` for month multiples). |
| `listedAt` | string | null | Detail | Published listing or update date from the detail page (`null` on list-tier rows). |
| `photos` | string\[] | null | List & Detail | Deduplicated absolute public image URLs from card sliders or the detail page. |
| `url` | string | null | List & Detail | Canonical `https://www.athome.co.jp/chintai/{id}/` detail URL. |
| `orientation` | string | null | Detail | Primary sunlight orientation text from the detail page. |
| `conditions` | string | null | Detail | Published lease conditions from the detail page. |
| `moveIn` | string | null | Detail | Move-in availability text from the detail page. |
| `geo` | object | null | Detail | `{ lat, lng }` coordinates from detail page Apartment JSON-LD when published. |
| `page` | integer | null | List & Detail | 1-based list page number (`null` for direct detail seeds). |
| `position` | integer | null | List & Detail | 1-based room index on its parsed list page (`null` for direct detail seeds). |
| `listUrl` | string | null | List & Detail | Source list page or seed URL where the record was discovered. |
| `tier` | string | null | List & Detail | Record tier: `"list"` for list-only records or `"detail"` for detail-enriched records. |
| `scrapedAt` | string | null | List & Detail | ISO-8601 UTC timestamp recorded when the page was fetched. |
| `detailError` | string | null | Detail fallback | Present only when an optional detail fetch failed and the Actor retained the list-tier row instead. |
| `recordType` | string | null | Notice only | Set to `"run-notice"` on a trailing summary row when a run stops early or hits `maxItems`. |
| `reason` | string | null | Notice only | Stop reason on a `run-notice` row (such as `maxItems`, `run-time-limit`, `empty-page`, or `auth_wall`). |
| `itemsSoFar` | integer | null | Notice only | Count of rental items saved prior to writing the `run-notice` row. |
| `truncatedAfter` | integer | null | Notice only | Same saved-item boundary recorded on the `run-notice` row. |
| `note` | string | null | Notice only | Human-readable explanation attached to `auth_wall` notice rows. |

### API and SDK quickstart

Run this Actor programmatically using the official Apify JavaScript or Python clients. Filter out any trailing row where `recordType === "run-notice"` to work strictly with rental listings.

#### JavaScript (`ApifyClient`)

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

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });

const run = await client.actor('Stone_JadeX/athome-japan-rental-scraper').call({
    startUrls: [
        { url: 'https://www.athome.co.jp/chintai/tokyo/minato-city/list/' },
    ],
    maxItems: 50,
    scrapeDetails: false,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
const rentals = items.filter((row) => row.recordType !== 'run-notice');
console.log(`Fetched ${rentals.length} rental rows`);

const summary = await client.keyValueStore(run.defaultKeyValueStoreId).getRecord('OUTPUT');
console.log('Stop reason:', summary?.value?.stopReason);
```

#### Python (`ApifyClient`)

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])

run = client.actor("Stone_JadeX/athome-japan-rental-scraper").call(run_input={
    "startUrls": [
        {"url": "https://www.athome.co.jp/chintai/tokyo/minato-city/list/"},
    ],
    "maxItems": 50,
    "scrapeDetails": False,
})

rentals = [
    row
    for row in client.dataset(run["defaultDatasetId"]).iterate_items()
    if row.get("recordType") != "run-notice"
]
print(f"Fetched {len(rentals)} rental rows")
```

### Pricing

Prices in **USD**, verified on **21 November 2026**. Check the live Pricing tab before running.

This Actor uses transparent **Pay-Per-Event (PPE)** billing with **no Actor start fee**. Duplicate listings, empty pages, invalid inputs, and trailing `run-notice` rows are never charged.

| Event | Description | Free-tier price | Per 1,000 results |
| --- | --- | ---: | ---: |
| `property` | List-tier property parsed from a public list page (no detail-page visit) | $0.005 | $5.00 |
| `property-detail` | Property enriched from its public detail page (replaces `property`, never added on top) | $0.005 | $5.00 |

#### Apify Store subscription tier discounts

Higher Apify platform plans receive automatic discounted event rates on both `property` and `property-detail`:

| Apify plan tier | Discount | Price per result | Price per 1,000 results |
| --- | ---: | ---: | ---: |
| Free | Base rate | $0.00500 | $5.00 |
| Bronze | 5% off | $0.00475 | $4.75 |
| Silver | 10% off | $0.00450 | $4.50 |
| Gold | 15% off | $0.00425 | $4.25 |
| Platinum | 15% off | $0.00425 | $4.25 |
| Diamond | 15% off | $0.00425 | $4.25 |

**Worked examples (Free tier):**

- **50 rentals** (default `maxItems`): `50 x $0.005 = $0.25` in Actor event charges.
- **1,000 rentals** (list or detail tier): `1,000 x $0.005 = $5.00` in Actor event charges ($4.25 on Gold/Platinum/Diamond).

Because `property-detail` replaces `property` rather than stacking on top of it, enabling `scrapeDetails` does not double your per-result event price. These calculations cover Actor event charges; review the Pricing tab for any separately listed platform usage, and note that retained dataset storage follows Apify's standard storage pricing.

### Is it legal to scrape at home?

This Actor accesses only publicly visible `athome.co.jp` rental list (`/chintai/.../list/`) and rental detail (`/chintai/{id}/`) pages. It never logs in, never submits inquiry forms, never collects private agent contact emails, and never attempts to bypass Cloudflare or site verification challenge pages.

On startup, the Actor fetches `https://www.athome.co.jp/robots.txt`, honors any published `Crawl-delay` by raising the request spacing floor (minimum `1200` ms, default `1500` ms, serial default concurrency `1`), and applies a conservative fallback rule set when the live file defines no wildcard group. Helper paths such as `/inquiry/`, `/ajax/`, and `/smp/chintai/` are Disallow’d in the fallback `*` set; such a path is still requested, logged as a warning and counted in `robotsDisallowedHits`. Login and account pages are refused.

This is an independent tool and is not affiliated with, endorsed by, or connected to at home Co., Ltd. You are solely responsible for ensuring that your collection, storage, and downstream use of public listing data complies with applicable laws, regulations, and website terms.

### FAQ and changelog

#### Frequently asked questions

**What can limit the number of returned results?**
Only public `athome.co.jp` rental list and detail URLs are supported. If at home presents a verification challenge page on consecutive seeds (controlled by `challengeWindDownAfter`, default `2`), the Actor stops gracefully without attempting to bypass it and appends an uncharged `run-notice` row (`reason: "auth_wall"`) plus a human-readable `note` in `OUTPUT`. Setting `maxItems` is an upper cap rather than a guarantee of yield.

**How do I separate rental items from `run-notice` rows?**
Filter out rows where `recordType === "run-notice"`. The dataset schema also provides a dedicated **Run notices** table view alongside the main **Overview** view in Apify Console.

**Are all fields always populated?**
No. Published attributes vary by listing, and fields such as `amenities`, `listedAt`, `floor`, `orientation`, `conditions`, `moveIn`, and `geo` are populated only when `scrapeDetails` is enabled (or when you pass direct detail URLs) and the listing publishes them. If a detail-page request fails during a list crawl, the Actor keeps the list-tier row, records `detailError`, and charges `property`.

**Does this Actor provide live monitoring or alerts?**
No. Each run captures a point-in-time snapshot. Schedule recurring runs in Apify Console or compare datasets in your own workflow to track listing changes over time.

**What happened to `authCooldownSecs` and `authWindDownAfter`?**
They were renamed to `challengeCooldownSecs` and `challengeWindDownAfter` in the input schema to reflect verification-challenge handling clearly and avoid automated secret-field false positives. Existing integrations passing `authCooldownSecs` or `authWindDownAfter` continue to work without changes.

#### Changelog

- **2026-11-21**: Renamed `authCooldownSecs` / `authWindDownAfter` to `challengeCooldownSecs` / `challengeWindDownAfter` in `input_schema.json` with full runtime backward compatibility for legacy names; added explicit `prefill` values and clean `sectionCaption` groupings in `input_schema.json`; expanded `README.md` with JSON input/output examples, complete field reference, Apify Store subscription tier discounts, and JavaScript/Python `ApifyClient` quickstart.
- **2026-10-26**: Added verification-challenge detection, graceful wind-down with `run-notice`, multi-ward default seed rotation, path-style `/list/pageN/` pagination, and regex-based list parsing to stay within 256 MB memory.

# Changelog

This Actor's version history is a separate document: https://apify.com/stone_jadex/athome-japan-rental-scraper/changelog.md

# Actor input Schema

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

Optional. One or more public at home (athome.co.jp) rental list URLs (e.g. https://www.athome.co.jp/chintai/tokyo/minato-city/list/) or detail URLs (https://www.athome.co.jp/chintai/1000162911/). Leave empty to use the built-in multi-ward Tokyo/Osaka/Kanagawa default seeds. Not SUUMO.

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

Stop after this many charged property rows. Alias: maxResults.

## `maxResults` (type: `integer`):

Alias for maxItems.

## `maxPages` (type: `integer`):

Optional. Each Tokyo list page has about 150 rooms across ~30 building cards.

## `startPage` (type: `integer`):

First list page when the start URL does not already set ?page= or /pageN/.

## `scrapeDetails` (type: `boolean`):

Adds amenities, listedAt, geo, and fuller photos from the public detail page. Charged as property-detail instead of property. Alias: includeDetails.

## `includeDetails` (type: `boolean`):

Alias for scrapeDetails.

## `requestDelayMs` (type: `integer`):

Default 1500 ms (floor 1200). List HTML is large (~1.8 MB). A Crawl-delay in robots.txt can only raise this.

## `concurrency` (type: `integer`):

How many list or detail pages may be requested at once. Default 1 (serial). Starts are still spaced by requestDelayMs. Alias: maxConcurrency.

## `maxConcurrency` (type: `integer`):

Alias for concurrency.

## `maxRunSeconds` (type: `integer`):

Stops cleanly and writes the OUTPUT record before this limit.

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

Direct connection by default (opt-in). Residential is a fallback only and is capped by a fixed developer budget (5 MB).

## `useProxyFallback` (type: `boolean`):

Stay on a direct connection until repeated HTTP 403 or 429, then switch to the configured proxy.

## `allowDetailOnResidential` (type: `boolean`):

Detail pages stay on a direct connection when the proxy group is residential, unless this is on. Residential download budget is a fixed developer cap (5 MB), not user-tunable.

## `challengeCooldownSecs` (type: `integer`):

Optional pause before the next seed after at home shows its verification challenge page. Waiting rarely clears it; default 0. Legacy field name authCooldownSecs remains supported for backward compatibility.

## `challengeWindDownAfter` (type: `integer`):

Stop the run cleanly (with a run-notice row) after this many seeds in a row end in at home's verification challenge page. The page is never bypassed. Legacy field name authWindDownAfter remains supported for backward compatibility.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.athome.co.jp/chintai/tokyo/minato-city/list/"
    }
  ],
  "maxItems": 50,
  "startPage": 1,
  "scrapeDetails": false,
  "includeDetails": false,
  "requestDelayMs": 1500,
  "concurrency": 1,
  "maxRunSeconds": 3600,
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "useProxyFallback": false,
  "allowDetailOnResidential": false,
  "challengeCooldownSecs": 0,
  "challengeWindDownAfter": 2
}
```

# Actor output Schema

## `results` (type: `string`):

Rental records from public at home list and detail pages, with a trailing run-notice row when the crawl is truncated.

## `summary` (type: `string`):

Saved item counts, seed and error details, HTTP and robots statistics, stop reason and notes for the run.

# 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": [
        {
            "url": "https://www.athome.co.jp/chintai/tokyo/minato-city/list/"
        }
    ],
    "maxItems": 50,
    "startPage": 1,
    "requestDelayMs": 1500,
    "concurrency": 1,
    "maxRunSeconds": 3600,
    "challengeCooldownSecs": 0,
    "challengeWindDownAfter": 2
};

// Run the Actor and wait for it to finish
const run = await client.actor("stone_jadex/athome-japan-rental-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": [{ "url": "https://www.athome.co.jp/chintai/tokyo/minato-city/list/" }],
    "maxItems": 50,
    "startPage": 1,
    "requestDelayMs": 1500,
    "concurrency": 1,
    "maxRunSeconds": 3600,
    "challengeCooldownSecs": 0,
    "challengeWindDownAfter": 2,
}

# Run the Actor and wait for it to finish
run = client.actor("stone_jadex/athome-japan-rental-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": [
    {
      "url": "https://www.athome.co.jp/chintai/tokyo/minato-city/list/"
    }
  ],
  "maxItems": 50,
  "startPage": 1,
  "requestDelayMs": 1500,
  "concurrency": 1,
  "maxRunSeconds": 3600,
  "challengeCooldownSecs": 0,
  "challengeWindDownAfter": 2
}' |
apify call stone_jadex/athome-japan-rental-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,stone_jadex/athome-japan-rental-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/XZ03JYs0XgziHLplr/builds/n8vYOJHJgmoDSy9ou/openapi.json
