{
  "openapi": "3.0.1",
  "info": {
    "title": "LIFULL HOME'S Japan Property Scraper (homes.co.jp)",
    "description": "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.",
    "version": "0.3",
    "x-build-id": "avSyzbSZDZPhqbMzi"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/stone_jadex~lifull-homes-japan-property-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-stone_jadex-lifull-homes-japan-property-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/stone_jadex~lifull-homes-japan-property-scraper/runs": {
      "post": {
        "operationId": "runs-sync-stone_jadex-lifull-homes-japan-property-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/stone_jadex~lifull-homes-japan-property-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-stone_jadex-lifull-homes-japan-property-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "listingType": {
            "title": "What to collect",
            "enum": [
              "sale",
              "rent"
            ],
            "type": "string",
            "description": "sale = 中古マンション (used condos for sale, /mansion/chuko/). rent = 賃貸 (rentals, /chintai/).",
            "default": "sale"
          },
          "areas": {
            "title": "Cities / wards",
            "type": "array",
            "description": "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.",
            "default": [
              "tokyo/setagaya-city"
            ],
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max properties",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "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).",
            "default": 50
          },
          "scrapeDetails": {
            "title": "Open each sale detail page",
            "type": "boolean",
            "description": "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.",
            "default": false
          },
          "scrapeRentDetails": {
            "title": "Open each rental room page",
            "type": "boolean",
            "description": "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.",
            "default": false
          },
          "maxPagesPerArea": {
            "title": "Max list pages per city",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum list pages to fetch per prefecture/city area (about 20-40 properties per page).",
            "default": 20
          },
          "requestDelayMs": {
            "title": "Delay between requests (ms)",
            "minimum": 1500,
            "maximum": 60000,
            "type": "integer",
            "description": "Polite spacing, minimum 1500 ms. Requests are sent one at a time.",
            "default": 2000
          },
          "maxRunSeconds": {
            "title": "Max run time (s)",
            "minimum": 30,
            "maximum": 86400,
            "type": "integer",
            "description": "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).",
            "default": 3000
          },
          "retryOn202": {
            "title": "Retry on HTTP 202 (rate limit)",
            "type": "boolean",
            "description": "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.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional Apify Proxy settings. Off by default (direct connection). If enabled, proxy session rotates automatically on HTTP 202 / 5xx retries.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}