{
  "openapi": "3.0.1",
  "info": {
    "title": "Rehouse.co.jp Scraper — Japan Property Data & API",
    "description": "Rehouse.co.jp scraper & real estate data API for Japan's 三井のリハウス property portal. Used & new homes for sale in every prefecture: price (JPY), layout, size, build year, floor, address, GPS, photos, transit, fees — clean JSON/CSV. Fast overview or full detail. No-code, no API key needed.",
    "version": "1.0",
    "x-build-id": "UdhNDs6s5idO8wl8f"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sian.agency~rehouse-property-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sian.agency-rehouse-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/sian.agency~rehouse-property-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sian.agency-rehouse-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/sian.agency~rehouse-property-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sian.agency-rehouse-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": {
          "scrapeMode": {
            "title": "⚡ Scrape mode",
            "enum": [
              "overview",
              "detail"
            ],
            "type": "string",
            "description": "⚡ **OVERVIEW** — fast, cheap, ungated. Each result page on rehouse.co.jp carries ~30 fully-detailed property cards (price, size, layout area, build year, address, GPS, photos, transit, fees) — we read them straight out, no per-listing fetch.\n\n🔍 **DETAIL** — adds the human-readable display fields the result page only carries as codes (layout 1SLDK, building structure, transaction type, condition, land rights, delivery) plus the listing's full photo gallery. Priced higher per result.\n\n**TIP:** Start with Overview — upgrade to Detail only when you need those extra display fields.",
            "default": "overview"
          },
          "searchMode": {
            "title": "🧭 Search by",
            "enum": [
              "byPlace",
              "bySearchUrl",
              "byListingUrl"
            ],
            "type": "string",
            "description": "🧭 How to tell the scraper what to fetch:\n\n- **By place** — pick a category, then a prefecture code and a city code (real, paginated inventory).\n- **By search URL** — paste a rehouse.co.jp result-list URL; every on-page filter in the URL is honored.\n- **By listing URL/ID** — Detail mode only: paste listing URLs or bare 8-char codes to fetch specific properties.",
            "default": "byPlace"
          },
          "category": {
            "title": "🏠 Category",
            "enum": [
              "mansion",
              "kodate",
              "tochi",
              "s_mansion",
              "s_kodate",
              "tohshi"
            ],
            "type": "string",
            "description": "🏠 Property category for **By place** searches.\n\n- **mansion** — used condo (中古マンション)\n- **kodate** — used house (中古一戸建て)\n- **tochi** — land (土地)\n- **s_mansion** — new condo (新築マンション)\n- **s_kodate** — new house (新築一戸建て)\n- **tohshi** — investment property (収益・事業用)",
            "default": "mansion"
          },
          "prefecture": {
            "title": "🗾 Prefecture code",
            "type": "string",
            "description": "🗾 2-digit JIS prefecture code for **By place** searches.\n\n**Examples:** `13` = Tokyo · `27` = Osaka · `14` = Kanagawa · `23` = Aichi · `01` = Hokkaido.",
            "default": "13"
          },
          "city": {
            "title": "🏙️ City code",
            "type": "string",
            "description": "🏙️ 5-digit JIS municipality code for **By place** searches.\n\n**Examples:** `13103` = Minato-ku (Tokyo) · `13113` = Shibuya-ku · `27100` = Osaka-shi.\n\n**TIP:** Use the city level (not just prefecture) — the prefecture-only landing page is capped at ~15 featured listings.",
            "default": "13103"
          },
          "sort": {
            "title": "↕️ Sort order (optional)",
            "enum": [
              "",
              "firstReleaseDateDesc",
              "priceAsc",
              "priceDesc",
              "exclusiveAreaDesc",
              "exclusiveAreaAsc",
              "accessMinutesAsc",
              "builtYearMonthDesc"
            ],
            "type": "string",
            "description": "↕️ Optional result ordering for **By place** searches. Leave empty for the site default (recommended order).",
            "default": ""
          },
          "searchUrls": {
            "title": "🔗 Search URLs",
            "type": "array",
            "description": "🔗 rehouse.co.jp result-list URLs to scrape. Used when **Search by = By search URL**.\n\n**TIP:** Build any search on rehouse.co.jp (set your filters & sort), then copy the URL from the address bar — every on-page filter is honored. Use a city/railway/transit-level URL for the full paginated inventory.\n\n**BULK EDIT:** Click \"Bulk edit\" to paste many URLs, one per line.",
            "items": {
              "type": "string"
            }
          },
          "listingUrls": {
            "title": "🆔 Listing URLs or IDs",
            "type": "array",
            "description": "🆔 **Detail mode only.** rehouse.co.jp listing URLs (e.g. https://www.rehouse.co.jp/buy/mansion/bkdetail/F15BFA10/) or bare 8-character property codes (e.g. F15BFA10).\n\n**BULK EDIT:** Click \"Bulk edit\" to paste many URLs/IDs, one per line.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "🔢 Max results",
            "minimum": 1,
            "type": "integer",
            "description": "🔢 Maximum listings to extract this run.\n\n- **FREE tier:** capped at 25 listings per run.\n- **PAID tier:** unlimited — set as high as you need.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}