# LIFULL HOME'S Japan Property Scraper (homes.co.jp) (`stone_jadex/lifull-homes-japan-property-scraper`) Actor

Public LIFULL HOME'S (homes.co.jp) listings: used condos for sale and rentals by city. Price, rent, fees, layout, m², address, stations, walk minutes, built year, floors, structure, photos, publish date, and shop info. $0.006 per property.

- **URL**: https://apify.com/stone_jadex/lifull-homes-japan-property-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 $5.10 / 1,000 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

## LIFULL HOME'S Japan Property Scraper (homes.co.jp)

Extract structured Japanese real estate listings from public **LIFULL HOME'S** (`www.homes.co.jp`) search results and property detail pages as clean JSON, CSV, or Excel datasets. The Actor supports both **used condominiums for sale** (`chuko mansion` via `/mansion/chuko/`) and **residential rentals** (`chintai` via `/chintai/`), organized by Japanese prefecture and city or ward slugs.

Every row delivers ready-to-analyze numeric values (`priceJpy`, `rentJpy`, `managementFeeJpy`, `repairReserveJpy`, `areaM2`, `balconyM2`, `pricePerSqmJpy`, `builtYear`, `builtMonth`, `buildingAgeYears`, `totalFloors`, `totalUnits`), parsed transit station arrays (`stations` with `line`, `station`, and `walkMinutes`), canonical `propertyUrl`, published shop contact fields, and optional detail-page enrichment (`latitude`, `longitude`, `equipment`, `equipmentByCategory`, `publishedAt`, `updatedAt`, `nextUpdateAt`, and full photo galleries).

### 1. Overview & Use Cases

LIFULL HOME'S (`homes.co.jp`) is one of Japan's largest real estate portals. Collecting city-by-city supply and pricing manually across multi-unit buildings is time-consuming and error-prone. This Actor parses public, server-rendered listing pages into normalized rows on Apify's default **256 MB** container with polite serial pacing and Pay-Per-Event billing.

#### Key Capabilities

- **Dual market coverage (`sale` and `rent`)**: Switch seamlessly between used condos for sale (`/mansion/chuko/`) and residential rentals (`/chintai/`), with separate optional detail-page toggles (`scrapeDetails` for sale, `scrapeRentDetails` for rent).
- **Ready-to-use numeric normalization**: Japanese price strings (such as `6,490 man-en` or `13.5 man-en`) convert cleanly into integer yen (`64900000` and `135000`), while square-meter area strings become floating-point numbers (`areaM2`) with auto-computed `pricePerSqmJpy`.
- **One row per unit with deduplication**: Multi-unit buildings expand into individual unit rows with unit-specific price, floor, room number, layout, and area; duplicate `propertyId` entries and PR ad boxes are automatically skipped without billing.
- **Public shop contacts and published metadata**: Outputs public real-estate company details (`companyName`, `companyPhone`, `companyPhoneInquiryCode`, `companyAddress`, `companyAccess`, `companyBusinessHours`, `companyHoliday`, plus `companyLicense`, `companyWebsite`, and `companyLogoUrl` on sale detail pages).
- **WAF / HTTP 202 awareness & resilient runtime**: Automatically detects CloudFront / AWS WAF HTTP 202 rate-limit challenges, supports opt-in exponential backoff (`retryOn202`), supports optional Apify Proxy rotation (`proxyConfiguration`), writes comprehensive diagnostics to `OUTPUT` and `RUN_SUMMARY`, and skips removed (`404`/`410`) or failed detail pages without charging.

#### Common Ways to Use the Data

- **Real estate investors & analysts**: Screen gross yield potential, price per square meter (`pricePerSqmJpy`), building age, and station proximity across Tokyo, Osaka, Kanagawa, and regional wards.
- **Corporate relocation & housing teams**: Compare monthly `rentJpy` plus `managementFeeJpy`, move-in fees (`deposit`, `keyMoney`, `guarantee`, `shikibiki`), contract type/duration (`contractType`, `contractPeriod`, `renewalFee`), and floor plans.
- **PropTech & BI pipelines**: Schedule recurring snapshots in your own Apify workflow to monitor listing freshness via `publishedAt`, `updatedAt`, and `nextUpdateAt`.
- **Brokerage benchmarking**: Track competitor inventory counts (`OUTPUT.siteTotals`), office hours, and listing coverage by municipality.

#### Illustrative Dataset Preview

The preview table below uses **illustrative** English and romanized summaries to demonstrate row structure. Real dataset output preserves the original Japanese strings published on `homes.co.jp`.

| Type | Building (Illustrative) | Price / Rent (JPY) | Mgmt Fee (JPY) | Layout | Area (m²) | Nearest Station | Built | Company |
| --- | --- | ---: | ---: | --- | ---: | --- | --- | --- |
| `sale` | Park Heim Sakurashinmachi | 64,900,000 | 11,900 | `2LDK` | 54.08 | Sakura-shimmachi (13 min) | 1982 | Global Base Co., Ltd. |
| `sale` | Grand Maison Sangenjaya Place | 179,900,000 | 24,500 | `3LDK` | 88.46 | Sangen-jaya (13 min) | 2011 | Global Base Co., Ltd. |
| `rent` | T-Amo Mermaid | 78,000 | 3,000 | `1R` | 10.12 | Okubo (7 min) | 2025 | Rental Co., Ltd. |
| `rent` | ZOOM Tochomae | 161,000 | 8,000 | `1K` | 30.63 | Shinjuku (11 min) | 2017 | RESTA Co., Ltd. |

### 2. Input Configuration & Examples

Configure runs via the Apify Console form or by passing a JSON object to the Apify API. When invoked with an empty `{}` input, the Actor defaults to collecting up to `50` used-condo sale rows in `tokyo/setagaya-city` at list tier (`scrapeDetails: false`).

#### Input Parameters

| Parameter | Type | Default | Constraints / Editor | Description |
| --- | --- | --- | --- | --- |
| `listingType` | `string` | `"sale"` | `"sale"` or `"rent"` (`select`) | Market segment: `"sale"` targets used condos (`/mansion/chuko/`); `"rent"` targets rental listings (`/chintai/`). |
| `areas` | `array` | `["tokyo/setagaya-city"]` | `prefecture/city` slugs (`stringList`) | Municipality slugs copied from `homes.co.jp` list URLs (e.g. `tokyo/shinjuku-city`, `osaka/osaka_kita-city`, `kanagawa/yokohama_naka-city`). City slug must end in `-city`, `-mcity`, `-ward`, `-town`, or `-village`. |
| `maxItems` | `integer` | `50` | Min `1`, Max `5000` | Hard stop on billed property rows pushed across all areas (`50` = `$0.30` base; `1000` = `$6.00` base). |
| `scrapeDetails` | `boolean` | `false` | `true` / `false` | **Sale only.** Fetches each `/mansion/b-{id}/` detail page to populate management/repair fees, balcony, zoning, land rights, coordinates, equipment, dates, company license/website/logo, and full gallery. Same `$0.006` base price per row; ignored for `rent`. |
| `scrapeRentDetails` | `boolean` | `false` | `true` / `false` | **Rent only.** Default `false`. Opens `/chintai/room/{40-hex}/` for each rental row (~105 KB compressed, ~3x slower) to populate `contractType`, `contractPeriod`, `renewalFee`, `otherFees`, `guarantorCompany`, `insurance`, `availableFrom`, dates, coordinates, equipment, and shop contacts. |
| `maxPagesPerArea` | `integer` | `20` | Min `1`, Max `200` | Maximum list pagination pages fetched per city area (each page typically holds 20-40 units). |
| `requestDelayMs` | `integer` | `2000` | Min `1500`, Max `60000` | Minimum delay in milliseconds between serial requests. A longer `Crawl-delay` in `robots.txt` automatically overrides lower values. |
| `maxRunSeconds` | `integer` | `3000` | Min `30`, Max `86400` | Soft execution deadline in seconds (50 minutes default). Saves collected rows, writes `OUTPUT` and `RUN_SUMMARY`, and stops cleanly with `stopReason: "time-limit"`. |
| `retryOn202` | `boolean` | `false` | `true` / `false` | Controls HTTP 202 rate-limit handling. Off (`false`, default): one short retry after 5 s per page. On (`true`): retries after 5 s, 15 s, and 45 s (+0-30% jitter; max 3 per page, 6 per run). |
| `proxyConfiguration` | `object` | `{ "useApifyProxy": false }` | Apify Proxy (`proxy`) | Optional proxy settings. Direct connection by default. When enabled, proxy session rotates automatically on HTTP 202 or 5xx retries. |

#### JSON Input Examples

**Example 1 — Used Condos for Sale with Full Detail Enrichment (Tokyo Wards)**

```json
{
  "listingType": "sale",
  "areas": [
    "tokyo/setagaya-city",
    "tokyo/meguro-city"
  ],
  "maxItems": 200,
  "scrapeDetails": true,
  "scrapeRentDetails": false,
  "maxPagesPerArea": 20,
  "requestDelayMs": 2500,
  "maxRunSeconds": 3000,
  "retryOn202": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

**Example 2 — Fast Rental Scan Across Shinjuku & Shibuya (List Tier + Proxy Ready)**

```json
{
  "listingType": "rent",
  "areas": [
    "tokyo/shinjuku-city",
    "tokyo/shibuya-city"
  ],
  "maxItems": 100,
  "scrapeDetails": false,
  "scrapeRentDetails": false,
  "maxPagesPerArea": 10,
  "requestDelayMs": 2000,
  "maxRunSeconds": 1800,
  "retryOn202": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyCountry": "JP"
  }
}
```

### 3. Output Format & Complete Field Reference

Every property row emitted to the default **Dataset** shares a consistent, schema-validated shape (`dataset_schema.json`). Every nullable property field is always emitted (set to `null` when absent from that page or tier). Overview and run-notice table views are preconfigured in `.actor/dataset_schema.json`.

Note on language and text values: the illustrative JSON examples below translate or romanize sample values into English for readability; in live runs, text fields such as `buildingName`, `address`, `parking`, `renewalFee`, `otherFees`, `guarantorCompany`, and `availableFrom` are output **verbatim in Japanese**, exactly as published on `homes.co.jp`.

#### Illustrative JSON Output (Sale Detail Row with `scrapeDetails: true`)

```json
{
  "recordType": "property",
  "listingType": "sale",
  "source": "detail",
  "currency": "JPY",
  "propertyId": "1090830005055",
  "buildingId": null,
  "propertyUrl": "https://www.homes.co.jp/mansion/b-1090830005055/",
  "propertyType": "Used condo (chuko mansion)",
  "buildingName": "Park Heim Sakurashinmachi",
  "title": "Park Heim Sakurashinmachi 107, 64.9 million yen, 2LDK | Used condo in Setagaya-ku",
  "priceJpy": 64900000,
  "priceText": "64.9 million yen (6,490 man-en)",
  "rentJpy": null,
  "rentMan": null,
  "managementFeeJpy": 11900,
  "repairReserveJpy": 15200,
  "deposit": null,
  "keyMoney": null,
  "guarantee": null,
  "shikibiki": null,
  "layout": "2LDK",
  "layoutDetail": "2LDK (LDK 12.2 jo, Western room 5.7 jo, Western room 4.7 jo)",
  "areaM2": 54.08,
  "balconyM2": 7.8,
  "facing": "South",
  "address": "2-23-15 Tsurumaki, Setagaya-ku, Tokyo",
  "stations": [
    {
      "line": "Tokyu Den-en-toshi Line",
      "station": "Sakura-shimmachi",
      "walkMinutes": 13,
      "text": "Tokyu Den-en-toshi Line, Sakura-shimmachi Sta., 13 min walk"
    },
    {
      "line": "Tokyu Den-en-toshi Line",
      "station": "Komazawa-daigaku",
      "walkMinutes": 14,
      "text": "Tokyu Den-en-toshi Line, Komazawa-daigaku Sta., 14 min walk"
    }
  ],
  "accessText": "Tokyu Den-en-toshi Line, Sakura-shimmachi Sta., 13 min walk / Tokyu Den-en-toshi Line, Komazawa-daigaku Sta., 14 min walk",
  "listAccessText": "Tokyu Setagaya Line, Setagaya Sta., 12 min walk",
  "builtYear": 1982,
  "builtMonth": 11,
  "buildingAgeYears": 44,
  "buildDateText": "November 1982 (44 years old)",
  "floor": "1st floor",
  "totalFloors": 5,
  "totalUnits": 44,
  "roomNumber": null,
  "structure": "RC (reinforced concrete)",
  "zoning": "Category 2 medium-to-high-rise exclusive residential zone",
  "landRights": "Freehold (shoyuken)",
  "handover": "Immediately",
  "availableFrom": "Immediately",
  "transactionType": "Seller",
  "currentStatus": "Vacant",
  "pets": "No pets",
  "parking": "No space free (karamu)",
  "features": null,
  "equipment": [
    "Gas stove installed",
    "System kitchen",
    "Auto-lock"
  ],
  "equipmentByCategory": {
    "Security": [
      "Auto-lock"
    ],
    "Kitchen": [
      "Gas stove installed",
      "System kitchen"
    ]
  },
  "imageUrl": "https://image.homes.jp/smallimg/image.php?file=http%3A%2F%2Fimg.homes.jp%2F109083%2Fsale%2F5055%2F11%2F1%2F70sr.jpg",
  "imageCount": 31,
  "imageUrls": [
    "https://image.homes.jp/smallimg/image.php?file=http%3A%2F%2Fimg.homes.jp%2F109083%2Fsale%2F5055%2F11%2F1%2F70sr.jpg",
    "https://image4.homes.jp/smallimg/image.php?file=http%3A%2F%2Fimg.homes.jp%2F109083%2Fsale%2F5055%2F11%2F4%2Fjzar.jpg"
  ],
  "floorPlanImageUrl": null,
  "latitude": 35.63639691599,
  "longitude": 139.65200328528,
  "pricePerSqmJpy": 1200074,
  "contractType": null,
  "contractPeriod": null,
  "renewalFee": null,
  "otherFees": null,
  "guarantorCompany": null,
  "insurance": null,
  "management": null,
  "usageConditions": null,
  "agencyReference": null,
  "initialCosts": null,
  "companyName": "Global Base Co., Ltd.",
  "companyBranch": null,
  "companyPhone": "0037-633-18186",
  "companyPhoneInquiryCode": "137627",
  "companyAddress": "Shibuya Sakura Stage SAKURA Tower 6F, 3-2 Sakuragaoka-cho, Shibuya-ku, Tokyo",
  "companyAccess": [
    "JR Yamanote Line, Shibuya Sta., 3 min walk",
    "Tokyu Toyoko Line, Shibuya Sta., 5 min walk"
  ],
  "companyBusinessHours": "10:00 - 19:00",
  "companyHoliday": "Every Tuesday and Wednesday",
  "companyLicense": "MLIT Minister licence (02) No. 9863",
  "companyWebsite": "https://www.globalbase.jp",
  "companyLogoUrl": "https://image3.homes.jp/smallimg/image.php?file=%2Fdata%2F0109083%2Fgyousha%2Fimage%2F10-20250130113929.jpg&width=640",
  "companyFeatures": null,
  "companyStaff": null,
  "saleContactName": "Shimizu",
  "agencyComment": null,
  "homesPropertyNumber": "0109083-0005055",
  "publishedAt": "2026-05-18",
  "updatedAt": "2026-10-25",
  "nextUpdateAt": "2026-11-01",
  "detailScraped": true,
  "sourceListUrl": "https://www.homes.co.jp/mansion/chuko/tokyo/setagaya-city/list/",
  "scrapedAt": "2026-11-24T00:00:00.000Z"
}
```

#### Illustrative JSON Output (Rental List Row with `scrapeRentDetails: false`)

```json
{
  "recordType": "property",
  "listingType": "rent",
  "source": "list",
  "currency": "JPY",
  "propertyId": "d0cc9318dd559c1a2913a5358ded971639a8d0ab",
  "buildingId": "1138240018633",
  "propertyUrl": "https://www.homes.co.jp/chintai/room/d0cc9318dd559c1a2913a5358ded971639a8d0ab/",
  "propertyType": "Rental apartment",
  "buildingName": "T-Amo Mermaid",
  "title": null,
  "priceJpy": null,
  "priceText": null,
  "rentJpy": 78000,
  "rentMan": "7.8",
  "managementFeeJpy": 3000,
  "repairReserveJpy": null,
  "deposit": "None",
  "keyMoney": "None",
  "guarantee": null,
  "shikibiki": null,
  "layout": "1R",
  "layoutDetail": null,
  "areaM2": 10.12,
  "balconyM2": null,
  "facing": null,
  "address": "3-7-4 Kita-Shinjuku, Shinjuku-ku, Tokyo",
  "stations": [
    {
      "line": "JR Sobu Line",
      "station": "Okubo",
      "walkMinutes": 7,
      "text": "JR Sobu Line, Okubo Sta., 7 min walk"
    },
    {
      "line": "JR Yamanote Line",
      "station": "Shin-Okubo",
      "walkMinutes": 11,
      "text": "JR Yamanote Line, Shin-Okubo Sta., 11 min walk"
    }
  ],
  "accessText": "JR Sobu Line, Okubo Sta., 7 min walk / JR Yamanote Line, Shin-Okubo Sta., 11 min walk",
  "listAccessText": "JR Sobu Line, Okubo Sta., 7 min walk / JR Yamanote Line, Shin-Okubo Sta., 11 min walk",
  "builtYear": null,
  "builtMonth": null,
  "buildingAgeYears": 1,
  "buildDateText": null,
  "floor": "2nd floor",
  "totalFloors": 2,
  "totalUnits": null,
  "roomNumber": "201",
  "structure": null,
  "zoning": null,
  "landRights": null,
  "handover": null,
  "availableFrom": null,
  "transactionType": null,
  "currentStatus": null,
  "pets": null,
  "parking": null,
  "features": [
    "Wooden flooring",
    "Corner room",
    "Auto-lock",
    "Air conditioner"
  ],
  "equipment": null,
  "equipmentByCategory": null,
  "imageUrl": "https://image2.homes.jp/smallimg/image.php?file=http%3A%2F%2Fimg.homes.jp%2F113824%2Frent%2F18633%2F2%2F1%2F7ued.jpg",
  "imageCount": null,
  "imageUrls": null,
  "floorPlanImageUrl": "https://image2.homes.jp/smallimg/image.php?file=http%3A%2F%2Fimg.homes.jp%2F113824%2Frent%2F18633%2F1%2F2%2Fbujm.jpg",
  "latitude": null,
  "longitude": null,
  "pricePerSqmJpy": 7708,
  "contractType": null,
  "contractPeriod": null,
  "renewalFee": null,
  "otherFees": null,
  "guarantorCompany": null,
  "insurance": null,
  "management": null,
  "usageConditions": null,
  "agencyReference": null,
  "initialCosts": null,
  "companyName": "Rental Co., Ltd.",
  "companyBranch": null,
  "companyPhone": null,
  "companyPhoneInquiryCode": null,
  "companyAddress": null,
  "companyAccess": null,
  "companyBusinessHours": null,
  "companyHoliday": null,
  "companyLicense": null,
  "companyWebsite": null,
  "companyLogoUrl": null,
  "companyFeatures": null,
  "companyStaff": null,
  "saleContactName": null,
  "agencyComment": null,
  "homesPropertyNumber": null,
  "publishedAt": null,
  "updatedAt": null,
  "nextUpdateAt": null,
  "detailScraped": false,
  "sourceListUrl": "https://www.homes.co.jp/chintai/tokyo/shinjuku-city/list/",
  "scrapedAt": "2026-11-24T00:00:00.000Z"
}
```

#### Uncharged `run-notice` Row & Key-Value Store Records (`OUTPUT` & `RUN_SUMMARY`)

When a run finds zero listings (`no-results`) or stops early (`challenge`, `time-limit`, `push-failed`, `charge-limit`), it appends a single **free** row (`charged: false`):

```json
{
  "recordType": "run-notice",
  "reason": "Run stopped early: challenge.",
  "stopReason": "challenge",
  "itemsPushed": 5,
  "charged": false
}
```

In addition, every run writes two diagnostic JSON records in the default **Key-Value Store**:

- **`OUTPUT`**: Complete telemetry including `startedAt`, `finishedAt`, `input`, `pricing`, `pushed`, `charged`, `chargedButNotPushed`, `duplicatesSkipped`, `goneSkipped`, `detailFailedSkipped`, `retry202Count`, `retry202Recovered`, `pagesFetched`, `siteTotals`, `errors`, `stopReason`, `truncated`, `challengeEvidence`, `robots`, `robotsDisallowedHits`, `shopFieldNulls`, `http` (with `statusCounts`, `proxyUsed`, `proxyRotations`), and `unavailableFields`.
- **`RUN_SUMMARY`**: Compact operational summary containing `actorVersion`, `status` (`SUCCEEDED`, `TRUNCATED`, or `NO_RESULTS`), `durationMs`, `itemsPushed`, `itemsCharged`, `retry202Count`, `retry202Recovered`, `challengeDetected`, `httpStatusCounts`, `proxyUsed`, `proxyRotations`, and `siteTotals`.

#### Complete Dataset Field Reference (All 92 Schema Fields)

| Field | Type | Availability | Description |
| --- | --- | --- | --- |
| `recordType` | `string \| null` | Always | `"property"` for a property listing, or `"run-notice"` for the single free notice emitted on empty/truncated runs. |
| `listingType` | `string \| null` | Property | Market segment: `"sale"` or `"rent"`. |
| `propertyId` | `string \| null` | Property | Source identifier: numeric `b-` ID for sales, or 40-hex room key for rentals. |
| `propertyUrl` | `string \| null` | Property | Canonical `homes.co.jp` detail URL. |
| `buildingId` | `string \| null` | Rent list | Rental building ID from list page (`null` for sales). |
| `propertyType` | `string \| null` | Property | Published property category label (e.g. used condo, rental apartment). |
| `buildingName` | `string \| null` | Property | Building or property name as published. |
| `title` | `string \| null` | Detail | Detail-page `og:title` with site prefix removed (`null` on list-tier rows). |
| `priceJpy` | `integer \| null` | Sale | Sale asking price in yen (`null` for rentals). |
| `priceText` | `string \| null` | Sale | Published sale price text prior to yen conversion (`null` for rentals). |
| `rentJpy` | `integer \| null` | Rent | Monthly rent in yen (`null` for sales). |
| `rentMan` | `string \| null` | Rent | Monthly rent displayed in 10,000-yen units (`null` for sales). |
| `managementFeeJpy` | `integer \| null` | Rent & Sale detail | Monthly management / common-area fee in yen. |
| `repairReserveJpy` | `integer \| null` | Sale detail | Monthly repair reserve fund in yen (`null` on list-tier and rentals). |
| `deposit` | `string \| null` | Rent | Published rental deposit (`shikikin`) text (`null` for sales). |
| `keyMoney` | `string \| null` | Rent | Published rental key money (`reikin`) text (`null` for sales). |
| `guarantee` | `string \| null` | Rent | Published rental guarantee deposit (`hoshokin`) text (`null` when absent). |
| `shikibiki` | `string \| null` | Rent | Published deposit amortization (`shikibiki` / `shokyaku`) text (`null` when absent). |
| `layout` | `string \| null` | Property | Floor plan code such as `1K`, `2LDK`, or `3LDK`. |
| `layoutDetail` | `string \| null` | Detail | Full layout string including room-size notes (`null` on list-tier). |
| `areaM2` | `number \| null` | Property | Exclusive floor area in square meters. |
| `balconyM2` | `number \| null` | Detail | Balcony area in square meters (`null` on list-tier). |
| `facing` | `string \| null` | Property | Primary daylight orientation (`South`, `Southeast`, etc., in Japanese). |
| `address` | `string \| null` | Property | Published street/ward address. |
| `stations` | `array \| null` | Property | Array of `{ line, station, walkMinutes, text }` transit objects (`[]` if none). |
| `accessText` | `string \| null` | Property | All `stations` entries joined by `" / "` in the same order. |
| `listAccessText` | `string \| null` | Property | Access text shown on the list page (often nearest station only on sales). |
| `builtYear` | `integer \| null` | Property | Four-digit construction year parsed from build date (`null` if only age shown). |
| `builtMonth` | `integer \| null` | Property | Construction month `1`-`12` (`null` when omitted). |
| `buildingAgeYears` | `integer \| null` | Property | Building age in years (`0` for newly built). |
| `buildDateText` | `string \| null` | Detail | Raw construction date text as published (`null` on list-tier). |
| `floor` | `string \| null` | Property | Unit floor string as published. |
| `totalFloors` | `integer \| null` | Property | Total building story count. |
| `totalUnits` | `integer \| null` | Sale & Rent detail | Total residential units in building. |
| `roomNumber` | `string \| null` | Rent list | Published room number (`null` for sales). |
| `structure` | `string \| null` | Sale & Rent detail | Building structural material (RC, SRC, wooden, etc.). |
| `zoning` | `string \| null` | Sale detail | Urban planning zoning district (`null` on rentals and list-tier). |
| `landRights` | `string \| null` | Sale detail | Land ownership rights (`null` on rentals and list-tier). |
| `handover` | `string \| null` | Sale detail | Handover timing text (`null` on rentals and list-tier). |
| `availableFrom` | `string \| null` | Detail | Move-in timing (`scrapeRentDetails`) or sale handover (`scrapeDetails`). |
| `transactionType` | `string \| null` | Detail | Published transaction role (seller, brokerage, general agency, etc.). |
| `currentStatus` | `string \| null` | Detail | Current unit occupancy/status (`Vacant`, `Occupied`, etc., in Japanese). |
| `pets` | `string \| null` | Sale detail | Pet policy text verbatim (`null` on rentals and list-tier). |
| `parking` | `string \| null` | Detail | `parking` verbatim in Japanese as published (`null` on list-tier). |
| `features` | `array \| null` | Rent list | List-page feature tags (`[]` if none; `null` on sales). |
| `equipment` | `array \| null` | Detail | Deduplicated flat array of equipment/amenity strings (`null` on list-tier). |
| `equipmentByCategory` | `object \| null` | Detail | Equipment items grouped by site category headings (`null` on list-tier). |
| `imageUrl` | `string \| null` | Property | Primary list-page thumbnail/building image URL. |
| `imageCount` | `integer \| null` | Sale & Rent detail | Count of published or extracted photos. |
| `imageUrls` | `array \| null` | Detail | Largest rendition URL per unique gallery image file (`null` on list-tier). |
| `floorPlanImageUrl` | `string \| null` | Rent list | Floor-plan image URL from rental list card (`null` for sales). |
| `latitude` | `number \| null` | Detail | `latitude` from detail-page JSON-LD `geo` block (`null` on list-tier). |
| `longitude` | `number \| null` | Detail | `longitude` from detail-page JSON-LD `geo` block (`null` on list-tier). |
| `currency` | `string \| null` | Property | Monetary currency code (always `"JPY"`). |
| `pricePerSqmJpy` | `integer \| null` | Property | Computed yen per m² (`Math.round(priceOrRentJpy / areaM2)`). |
| `contractType` | `string \| null` | Rent detail | `contractType` verbatim (`null` when `"-"` or on sales/list-tier). |
| `contractPeriod` | `string \| null` | Rent detail | `contractPeriod` verbatim (`null` on sales/list-tier). |
| `renewalFee` | `string \| null` | Rent detail | `renewalFee` verbatim (`null` on sales/list-tier). |
| `otherFees` | `string \| null` | Rent detail | Miscellaneous move-in or monthly fees verbatim (`null` on sales/list-tier). |
| `guarantorCompany` | `string \| null` | Rent detail | Rent guarantor company requirements verbatim (`null` on sales/list-tier). |
| `insurance` | `string \| null` | Rent detail | Housing insurance requirement text (`null` on sales/list-tier). |
| `management` | `string \| null` | Rent detail | Building/property management type (`null` when `"-"` or sales/list-tier). |
| `usageConditions` | `string \| null` | Rent detail | Usage restrictions/conditions (`null` on sales/list-tier). |
| `agencyReference` | `string \| null` | Rent detail | Agency internal reference number (`null` on sales/list-tier). |
| `initialCosts` | `string \| null` | Rent detail | Initial cost summary note verbatim (`null` on sales/list-tier). |
| `companyName` | `string \| null` | Property | Public real-estate shop or company name as published. |
| `companyBranch` | `string \| null` | Rent detail | Shop branch name when displayed alongside company name. |
| `companyPhone` | `string \| null` | Detail | Public shop inquiry phone number (`null` on list-tier). |
| `companyPhoneInquiryCode` | `string \| null` | Detail | Six-digit shop inquiry suffix to quote by phone (`null` on list-tier). |
| `companyAddress` | `string \| null` | Detail | Public shop address (`null` on list-tier). |
| `companyAccess` | `array \| null` | Detail | Shop transit access lines (`null` on list-tier). |
| `companyBusinessHours` | `string \| null` | Detail | `companyBusinessHours` verbatim (`null` on list-tier). |
| `companyHoliday` | `string \| null` | Detail | Regular shop holiday schedule (`null` on list-tier). |
| `companyLicense` | `string \| null` | Sale detail | Real-estate license number (`null` on rental room pages and list-tier). |
| `companyWebsite` | `string \| null` | Sale detail | Public shop website URL (`null` on rental room pages and list-tier). |
| `companyLogoUrl` | `string \| null` | Sale detail | Public shop logo image URL (`null` on rental room pages and list-tier). |
| `companyFeatures` | `array \| null` | Rent detail | Shop service tags from rental room pages (`null` on sales/list-tier). |
| `companyStaff` | `string \| null` | Rent detail | Staff name shown on rental room pages, kept as written (`null` on sales/list-tier). |
| `saleContactName` | `string \| null` | Sale detail | Staff/agent name shown in sale detail company block, kept as written (`null` when absent). |
| `agencyComment` | `string \| null` | Rent detail | Multi-line agency comment from rental room pages (`null` when absent or sales). |
| `homesPropertyNumber` | `string \| null` | Detail | Source property number (`null` on list-tier). |
| `publishedAt` | `string \| null` | Detail | Publication date in `YYYY-MM-DD` (`null` on list-tier). |
| `updatedAt` | `string \| null` | Detail | Last update date in `YYYY-MM-DD` (`null` on list-tier). |
| `nextUpdateAt` | `string \| null` | Detail | Next scheduled update date in `YYYY-MM-DD` (`null` on list-tier). |
| `detailScraped` | `boolean \| null` | Property | `true` when detail page was fetched and merged; `false` on list-tier. |
| `source` | `string \| null` | Property | `"list"` or `"detail"`. |
| `sourceListUrl` | `string \| null` | Property | Search list page URL where the unit appeared. |
| `scrapedAt` | `string \| null` | Property | ISO-8601 UTC timestamp when the row was assembled. |
| `reason` | `string \| null` | Run notice | Human-readable notice message (`run-notice` rows only). |
| `stopReason` | `string \| null` | Run notice | Same `stopReason` recorded in `OUTPUT` (`run-notice` rows only). |
| `itemsPushed` | `integer \| null` | Run notice | Count of billed property rows pushed prior to notice (`run-notice` rows only). |
| `charged` | `boolean \| null` | Run notice | Always `false` because run-notice rows are free (`run-notice` rows only). |

#### Fields Not Available & Why

- **Two independent detail switches**: `scrapeDetails` fetches sale `/mansion/b-{id}/` pages only; `scrapeRentDetails` (default `false`) fetches rental `/chintai/room/{40-hex}/` pages only (~105 KB compressed per page, roughly 3x slower). Without `scrapeRentDetails`, rentals are list-tier without `contractPeriod`, `renewalFee`, dates, coordinates, or full gallery.
- **Sale list-tier omissions**: Without `scrapeDetails: true`, `repairReserveJpy`, `publishedAt`, `updatedAt`, `nextUpdateAt`, `latitude`, `longitude`, `equipment`, and `imageUrls` remain `null`.
- **Shop contact fields & known gaps**: List pages only show `companyName`, leaving `companyPhone`, `companyAddress`, `companyBusinessHours`, `companyHoliday`, `companyLicense`, `companyWebsite`, and `companyLogoUrl` as `null` on list-tier rows. Even with detail enrichment enabled, there is a **known gap** on rentals: rental `/chintai/room/` pages never display `companyLicense`, `companyWebsite`, or `companyLogoUrl` (so those stay `null` on rental rows, and linked company profile pages are not requested), and some sale pages omit shop websites. Every run counts null shop fields across detail rows in `OUTPUT.shopFieldNulls` and logs a warning summarizing any gaps.
- **Staff names & agency comments (policy 2026-11-01)**: Published staff names (`companyStaff` on rental room pages, `saleContactName` on sale detail company blocks) are kept as written, and the rental agency comment box is output in `agencyComment`. Staff photos and sale-page staff comment paragraphs are still not output in accordance with LIFULL HOME'S terms (5).
- **Verbatim Japanese strings**: Text fields such as `parking`, `currentStatus`, `renewalFee`, `otherFees`, `guarantorCompany`, and `availableFrom` are copied verbatim in Japanese as published rather than translated.
- **Failed detail pages**: When a requested detail page fails with a 5xx error or timeout after retries (anything other than 404/410), the property is skipped, counted in `OUTPUT.detailFailedSkipped`, and never pushed or charged.
- **Keyword & map search excluded**: `/kksearch` and `/revsearch` are disallowed by `robots.txt` and blocked by the Actor's path allow-list; always specify prefecture/city area slugs.

### 4. Pricing & Store Tier Discounts

This Actor uses simple **Pay-Per-Event (PPE)** billing in **USD** with **zero start fee** (`$0.00`). You pay strictly per valid `property` row delivered to the dataset.

| Event Name | Title | Description | Base Price (Free) | Per 1,000 Rows |
| --- | --- | --- | ---: | ---: |
| `property` | Property | One LIFULL HOME'S property row (list tier, or detail-enriched when `scrapeDetails` / `scrapeRentDetails` is enabled). | `$0.006` | `$6.00` |

#### Apify Store Subscription Tier Discounts

Paid Apify plans receive automatic Store discounts on every `property` event:

| Apify Plan Tier | Store Discount | Price per `property` | Equivalent per 1,000 Properties |
| --- | --- | ---: | ---: |
| **Free** | Base rate | `$0.0060` | `$6.00` |
| **Bronze** | 5% off | `$0.0057` | `$5.70` |
| **Silver** | 10% off | `$0.0054` | `$5.40` |
| **Gold** | 15% off | `$0.0051` | `$5.10` |
| **Platinum** | 15% off | `$0.0051` | `$5.10` |
| **Diamond** | 15% off | `$0.0051` | `$5.10` |

#### What Is Free & Example Budgets

- **Same rate for list & detail tiers**: Enabling `scrapeDetails` or `scrapeRentDetails` keeps the exact same `$0.006` base rate per row (the extra detail request only increases runtime, not event fee).
- **Zero-charge protections**: `run-notice` rows (`charged: false`), skipped duplicates (`duplicatesSkipped`), removed `404`/`410` or ended listings (`goneSkipped`), failed detail pages (`detailFailedSkipped`), and empty/blocked runs with `0` rows pushed incur **$0.00** in event charges.
- **Cost examples (Free / Gold+)**:
  - `50` properties (default `maxItems`): **$0.30** Free / **$0.255** Gold+
  - `1,000` properties: **$6.00** Free / **$5.10** Gold+
  - `5,000` properties (`maxItems` cap): **$30.00** Free / **$25.50** Gold+

Always review the live **Pricing** tab on Apify Console before running. Standard Apify platform compute (`256 MB` default) and proxy/storage usage apply per your Apify subscription plan.

### 5. Quickstart (Console, JavaScript & Python SDK)

#### Run via Apify Console in 3 Steps

1. Select `sale` (used condos) or `rent` (rentals) in **What to collect**, and enter one or more `prefecture/city` slugs (copied from any `homes.co.jp` city list URL).
2. Set `maxItems` (default `50`) to control spend, and optionally turn on `scrapeDetails` (for sales) or `scrapeRentDetails` (for rentals). Enable `retryOn202` or `proxyConfiguration` if running larger multi-area jobs.
3. Click **Start**, then preview rows in the **Overview** dataset view, check `OUTPUT` / `RUN_SUMMARY` in Key-Value Store, or export as JSON, CSV, or Excel.

#### JavaScript Quickstart (`ApifyClient`)

Install the client (`npm install apify-client`), set `APIFY_TOKEN` in your environment, and run `Stone_JadeX/lifull-homes-japan-property-scraper`:

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

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

const runInput = {
    listingType: 'rent',
    areas: ['tokyo/setagaya-city'],
    maxItems: 25,
    scrapeRentDetails: false,
    maxPagesPerArea: 5,
    requestDelayMs: 2000,
    retryOn202: true,
    proxyConfiguration: { useApifyProxy: false },
};

const run = await client.actor('Stone_JadeX/lifull-homes-japan-property-scraper').call(runInput);

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(`Collected ${items.length} dataset items`);

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

#### Python Quickstart (`ApifyClient`)

Install the Python client (`pip install apify-client`), export `APIFY_TOKEN`, and call `Stone_JadeX/lifull-homes-japan-property-scraper`:

```python
import os
from apify_client import ApifyClient

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

run_input = {
    "listingType": "sale",
    "areas": ["tokyo/setagaya-city"],
    "maxItems": 25,
    "scrapeDetails": True,
    "maxPagesPerArea": 5,
    "requestDelayMs": 2000,
    "retryOn202": True,
    "proxyConfiguration": {"useApifyProxy": False},
}

run = client.actor("Stone_JadeX/lifull-homes-japan-property-scraper").call(run_input=run_input)

items = list(client.dataset(run["defaultDatasetId"]).iterate_items())
print(f"Collected {len(items)} dataset items")

summary = client.key_value_store(run["defaultKeyValueStoreId"]).get_record("RUN_SUMMARY")
print("Run summary:", (summary or {}).get("value"))
```

### 6. Frequently Asked Questions

**Why did my run return fewer rows than `maxItems`?**
Several conditions can end a run early: the target area has fewer listings than requested, `maxPagesPerArea` or `maxRunSeconds` was reached, detail pages returned `404`/`410` or transient `5xx` errors (`detailFailedSkipped`), or `homes.co.jp` returned persistent HTTP `202`/`403`/`429` challenges (`stopReason: "challenge"`, `truncated: true`). Whenever a run stops early or finds zero items, an uncharged `run-notice` row explains why.

**Why are `companyLicense`, `companyWebsite`, and `companyLogoUrl` null on rental rows?**
Rental `/chintai/room/{key}/` pages on `homes.co.jp` do not display real-estate license numbers, external agency websites, or logos. Those three fields are populated only on sale `/mansion/b-{id}/` detail pages when `scrapeDetails: true`.

**Why did a run hit HTTP 202 and how should I handle it?**
LIFULL HOME'S uses CloudFront and AWS WAF, which may respond with HTTP `202` JS rate-limit challenges on datacenter IPs. Turn on `retryOn202: true` for exponential backoff (`5 s`, `15 s`, `45 s` with jitter), increase `requestDelayMs` (e.g. `3000`-`5000` ms), reduce `maxItems`, or configure Japanese residential proxies via `proxyConfiguration` so retries automatically rotate sessions.

**Are duplicate properties or failed detail pages billed?**
No. Duplicate `propertyId` records across pages are skipped before billing, `404`/`410`/ended listings are skipped (`goneSkipped`), and failed detail requests (`detailFailedSkipped`) are discarded without pushing or billing.

**Is this Actor a real-time monitoring service?**
No. Each run captures a point-in-time snapshot of public listings. Schedule recurring runs via Apify Schedules and compare snapshots by `propertyId` and `updatedAt` in your own workflow.

### 7. Limits, HTTP 202 Handling & Changelog

- **Strict URL allow-list & `robots.txt`**: The Actor reads only public list pages (`/mansion/chuko/{pref}/{city}/list/`, `/chintai/{pref}/{city}/list/`, with optional `?page=N`), sale `b-` detail pages (`/mansion/b-{id}/`), and, when `scrapeRentDetails` is enabled, rental room pages (`/chintai/room/{40-hex}/`). Every request and redirect hop must pass this allow-list; keyword searches (`/kksearch`, `/revsearch`), tour booking pages, inquiry forms, tracking parameters (`from_dsp`), and external hosts are refused. `robots.txt` (`User-agent: *`) is fetched first: its `Crawl-delay` is enforced whenever longer than `requestDelayMs`, and any `Disallow` match is logged as a warning and counted in `OUTPUT.robotsDisallowedHits`. If `robots.txt` returns an HTTP error or HTTP 202 challenge, the run continues without parsed rules at the configured delay.
- **Rate limiting (HTTP 202)**: Controlled by `retryOn202` (off by default, `false`). With `retryOn202` off (`false`), a page answering HTTP 202 gets one short retry after 5 s; if it is still HTTP 202, the run stops early (`stopReason` is `challenge` and `truncated` is `true`). That one short retry is counted in `OUTPUT.retry202Count` (and in `retry202Recovered` when the page then loads). With `retryOn202` on (`true`), when the site answers HTTP 202, the run waits and retries the same page after 5 s, 15 s and 45 s (each wait plus 0-30% random jitter), at most 3 retries per page and 6 per run, and never waits past the run time limit (`maxRunSeconds` / `ACTOR_TIMEOUT_AT`). If `proxyConfiguration` is enabled, every retry rotates to a fresh proxy session (`proxyRotations`). If the site keeps rate-limiting (still HTTP 202 after those retries), the run stops early (`stopReason` is `challenge`, `truncated` is `true`) and keeps only complete, billed rows already delivered. `OUTPUT.retry202Count` and `OUTPUT.retry202Recovered` record all attempts and recoveries.
- **Challenge & block handling (HTTP 403, 429, or WAF/CAPTCHA 200)**: If a response is HTTP 403, 429, or an HTTP 200 AWS WAF / CloudFront / Cloudflare / CAPTCHA interstitial, the run stops cleanly (`stopReason: "challenge"`, `truncated: true`) without attempting any bypass and records `{ url, status, bodySnippet }` in `OUTPUT.challengeEvidence`.
- **Site terms & payload sizing**: List pages are large (0.2-1.5 MB each); expect 2-3+ seconds per page at default spacing. Follow LIFULL HOME'S terms (`https://www.homes.co.jp/kiyaku/`) and use extracted data for research and analysis rather than unsolicited commercial solicitation.

#### Changelog

##### 0.3.0 — 2026-11-24

- **HTTP 202 WAF Calibration & Proxy Rotation**: Added AWS WAF / CloudFront challenge markers to `isChallengePage`, fixed `robots.txt` HTTP 202 handling (`http-202-no-rules`), ensured HTTP 200 challenge pages never inflate `ok` or `retry202Recovered`, enforced run deadlines on default 202 and 5xx retries, preserved final 5xx HTTP status codes in `OUTPUT.errors`, and added optional `proxyConfiguration` with automatic session rotation on retries.
- **Input & Billing Hardening**: Fixed `null` / empty string handling in `normalizeInput`, added soft-gone listing detection so removed detail pages are never charged, and added compact `RUN_SUMMARY` storage alongside `OUTPUT`.
- **Store Metadata & Documentation**: Added `sectionCaption` groups and explicit `prefill` defaults across `.actor/input_schema.json`, removed internal meta tags, and upgraded `README.md` with Store tier pricing tables, JavaScript/Python quickstarts, and full 92-field reference.

##### 0.3.0 — 2026-10-26

- Added `retryOn202` opt-in backoff toggle (`5 s`, `15 s`, `45 s` + jitter; default `false` with one 5 s short retry), guaranteed emission of all nullable schema fields, numeric `0` `siteTotals` on empty pages, `listAccessText`, `agencyComment`, `saleContactName`, and `companyStaff` policy alignment (`2026-11-01`).

##### 0.2.0 — 2026-10-26

- Added `scrapeRentDetails` rental room-page tier (`/chintai/room/{key}/`), contract terms, coordinates, equipment grouping, shop contact parsing, and `ajv` schema validation.

##### 0.1.0 — 2026-10-26

- Initial release supporting sale (`chuko mansion`) and rent (`chintai`) city lists, optional sale detail enrichment, `$0.006` PPE pricing, and `robots.txt` enforcement.

### 8. Is it legal to scrape LIFULL HOME'S?

This Actor only collects **publicly available data**: the same property listings any visitor can see on `www.homes.co.jp` **without logging in**. It does not use accounts or cookies, does not access private or password-protected pages, and does not collect private personal data of individuals. Staff photos and sale-page staff comments are dropped, the rental agency comment is kept (`agencyComment`), and the published staff name is kept as written (`companyStaff`); public business contacts of the listing shop or company (name, phone, address, hours) are kept as published.

Web scraping of public data is generally legal, but you are responsible for how you use the results and for complying with applicable laws (such as GDPR and Japan APPI) and LIFULL HOME'S terms. If your use involves personal data, make sure you have a legitimate reason, and consult your lawyer if unsure. Read more in Apify's blog post [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/).

#### Responsible scraping

The Actor sends one request at a time with a conservative delay, honours `robots.txt` `Crawl-delay`, and backs off on errors to avoid putting load on LIFULL HOME'S.

#### Disclaimer

This Actor is an independent tool and is not affiliated with, endorsed by, or sponsored by LIFULL Co., Ltd. LIFULL HOME'S is a trademark of its respective owner. Data is provided "as is" for research, price monitoring, and analysis; do not republish copyrighted content (such as full descriptions or images) as your own.

# Changelog

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

# Actor input Schema

## `listingType` (type: `string`):

sale = 中古マンション (used condos for sale, /mansion/chuko/). rent = 賃貸 (rentals, /chintai/).

## `areas` (type: `array`):

Each entry is prefecture/city exactly as in the homes.co.jp URL, e.g. tokyo/setagaya-city, tokyo/shinjuku-city, osaka/osaka_kita-city, kanagawa/yokohama_naka-city. Open the city list page on homes.co.jp and copy the two slugs from the address bar.

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

Hard stop on billed rows. At $0.006 base price each, 50 rows = $0.30, 1,000 rows = $6.00 (5%-15% off on paid Apify plans).

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

Sale only. Adds 管理費 / 修繕積立金, balcony, zoning, land rights, handover, publish & update dates, licence number and the full photo gallery. Same $0.006 base price, one extra page per row (slower). Has no effect on rentals; use scrapeRentDetails.

## `scrapeRentDetails` (type: `boolean`):

Rent only. Opens /chintai/room/{key}/ for every rental row and adds 契約形態 / 契約期間 / 更新料, その他費用, 保証会社, 住宅保険, 入居可能時期, publish & update dates, coordinates, equipment and the shop phone, address, hours and holidays. Same $0.006 base price per row; one extra page (~105 KB compressed) per row, so about 3x slower. Default off.

## `maxPagesPerArea` (type: `integer`):

Maximum list pages to fetch per prefecture/city area (about 20-40 properties per page).

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

Polite spacing, minimum 1500 ms. Requests are sent one at a time.

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

Soft time limit in seconds. The Actor stops cleanly before this (rows already pushed are kept and charged) and records stopReason=time-limit. Default 3000 s (50 min).

## `retryOn202` (type: `boolean`):

When the site answers HTTP 202 (rate limit / WAF JS challenge), wait and retry the same page after 5 s, 15 s and 45 s (+0-30% jitter; at most 3 retries per page and 6 per run, never past the run time limit). Off (default): one short retry after 5 s per page; if still 202 the run stops with truncated output. Both modes rotate proxy session if proxy is enabled and count retries in OUTPUT.retry202Count / retry202Recovered.

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

Optional Apify Proxy settings. Off by default (direct connection). If enabled, proxy session rotates automatically on HTTP 202 / 5xx retries.

## Actor input object example

```json
{
  "listingType": "sale",
  "areas": [
    "tokyo/setagaya-city"
  ],
  "maxItems": 50,
  "scrapeDetails": false,
  "scrapeRentDetails": false,
  "maxPagesPerArea": 20,
  "requestDelayMs": 2000,
  "maxRunSeconds": 3000,
  "retryOn202": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Default dataset items: one row per property, plus one free run-notice row when a run finds no listings or stops early.

## `runSummary` (type: `string`):

JSON summary saved under OUTPUT with run counts, stop reason, errors, challenge evidence, robots state, HTTP statistics and the normalized input.

## `diagnosticSummary` (type: `string`):

Compact JSON summary saved under RUN_SUMMARY with status, HTTP status histogram, HTTP 202 retry telemetry, proxy rotation count and billing counts.

# 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 = {
    "listingType": "sale",
    "areas": [
        "tokyo/setagaya-city"
    ],
    "maxItems": 50,
    "scrapeDetails": false,
    "scrapeRentDetails": false,
    "maxPagesPerArea": 20,
    "requestDelayMs": 2000,
    "maxRunSeconds": 3000,
    "retryOn202": false,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("stone_jadex/lifull-homes-japan-property-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 = {
    "listingType": "sale",
    "areas": ["tokyo/setagaya-city"],
    "maxItems": 50,
    "scrapeDetails": False,
    "scrapeRentDetails": False,
    "maxPagesPerArea": 20,
    "requestDelayMs": 2000,
    "maxRunSeconds": 3000,
    "retryOn202": False,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("stone_jadex/lifull-homes-japan-property-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 '{
  "listingType": "sale",
  "areas": [
    "tokyo/setagaya-city"
  ],
  "maxItems": 50,
  "scrapeDetails": false,
  "scrapeRentDetails": false,
  "maxPagesPerArea": 20,
  "requestDelayMs": 2000,
  "maxRunSeconds": 3000,
  "retryOn202": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call stone_jadex/lifull-homes-japan-property-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,stone_jadex/lifull-homes-japan-property-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/Dh8pDcUZcfPoXb6Y7/builds/avSyzbSZDZPhqbMzi/openapi.json
