{
  "openapi": "3.0.1",
  "info": {
    "title": "SUUMO Scraper",
    "description": "Scrape SUUMO (suumo.jp) rentals and homes for sale in Japan: rent, deposit, key money, layout, area, stations and agencies.",
    "version": "0.1",
    "x-build-id": "9uZA9F7d7nZ218iTu"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ribtools~suumo-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ribtools-suumo-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/ribtools~suumo-scraper/runs": {
      "post": {
        "operationId": "runs-sync-ribtools-suumo-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/ribtools~suumo-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-ribtools-suumo-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": {
          "prefecture": {
            "title": "Prefecture (都道府県)",
            "enum": [
              "hokkaido_",
              "aomori",
              "iwate",
              "miyagi",
              "akita",
              "yamagata",
              "fukushima",
              "ibaraki",
              "tochigi",
              "gumma",
              "saitama",
              "chiba",
              "tokyo",
              "kanagawa",
              "niigata",
              "toyama",
              "ishikawa",
              "fukui",
              "yamanashi",
              "nagano",
              "gifu",
              "shizuoka",
              "aichi",
              "mie",
              "shiga",
              "kyoto",
              "osaka",
              "hyogo",
              "nara",
              "wakayama",
              "tottori",
              "shimane",
              "okayama",
              "hiroshima",
              "yamaguchi",
              "tokushima",
              "kagawa",
              "ehime",
              "kochi",
              "fukuoka",
              "saga",
              "nagasaki",
              "kumamoto",
              "oita",
              "miyazaki",
              "kagoshima",
              "okinawa"
            ],
            "type": "string",
            "description": "The prefecture to search, e.g. `tokyo`. Alone it searches the whole prefecture; add a city or a station below to narrow it. Values are SUUMO's own slugs, as in its URLs (`tokyo`, `osaka`, `hokkaido_`)."
          },
          "city": {
            "title": "City or ward (市区町村)",
            "type": "string",
            "description": "A city, ward, town or village in the prefecture, in Japanese as SUUMO lists it: `新宿区`, `横浜市中区`, `中区` (a designated city's ward), `新宿` (the suffix is optional) or SUUMO's romaji slug (`shinjuku`). Fill a city or a station, not both."
          },
          "station": {
            "title": "Station (駅)",
            "type": "string",
            "description": "A station in the prefecture, in Japanese: `高田馬場` or `高田馬場駅`. Every line serving it is searched. A name two stations share in the prefecture is refused with their lines: paste that station's SUUMO URL instead. Fill a city or a station, not both."
          },
          "startUrls": {
            "title": "SUUMO URLs",
            "type": "array",
            "description": "Rent or sale searches (prefecture, city, station, agency, the 条件 query pages), rent ads (`/chintai/jnc_…/`, `bc_…`) or sale ads (`…/nc_…/`) copied from the browser. A URL keeps its own filters and order. New condos (新築マンション) are not covered.",
            "items": {
              "type": "string"
            }
          },
          "maxRequests": {
            "title": "Max results per search",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of properties for the place search and each URL above. Each result is a charged event. Default 10.",
            "default": 10
          },
          "transaction": {
            "title": "Transaction",
            "enum": [
              "rent",
              "sale"
            ],
            "type": "string",
            "description": "Rentals (賃貸) or properties for sale (売買). Default: rent.",
            "default": "rent"
          },
          "propertyType": {
            "title": "Property type",
            "enum": [
              "mansion",
              "apartment",
              "house",
              "used_condo",
              "used_house",
              "new_house",
              "land"
            ],
            "type": "string",
            "description": "Rent: `mansion` (マンション), `apartment` (アパート) or `house` (一戸建て); empty = all. Sale: `used_condo` (中古マンション, the default), `used_house` (中古一戸建て), `new_house` (新築一戸建て) or `land` (土地). New condos are not covered."
          },
          "priceFrom": {
            "title": "Price from (¥)",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest monthly rent, or lowest sale price, in yen. Moved down to SUUMO's own options (e.g. 73,000 searches from 70,000); the status message says so."
          },
          "priceTo": {
            "title": "Price to (¥)",
            "minimum": 0,
            "type": "integer",
            "description": "Highest monthly rent, or highest sale price, in yen. Moved up to SUUMO's own options (e.g. 52,000,000 searches up to 55,000,000)."
          },
          "areaFrom": {
            "title": "Area from (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Smallest area in m²: the room or condo's floor area, a house's building area, land's plot area. Moved onto SUUMO's options."
          },
          "areaTo": {
            "title": "Area to (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Largest area in m², as above."
          },
          "layouts": {
            "title": "Layouts (間取り)",
            "uniqueItems": true,
            "type": "array",
            "description": "Only these layouts; empty means all. Sale searches group them by room count (any 2K/2DK/2LDK picks all three); land has none.",
            "items": {
              "type": "string",
              "enum": [
                "ワンルーム",
                "1K",
                "1DK",
                "1LDK",
                "2K",
                "2DK",
                "2LDK",
                "3K",
                "3DK",
                "3LDK",
                "4K",
                "4DK",
                "4LDK",
                "5K以上"
              ],
              "enumTitles": [
                "ワンルーム",
                "1K",
                "1DK",
                "1LDK",
                "2K",
                "2DK",
                "2LDK",
                "3K",
                "3DK",
                "3LDK",
                "4K",
                "4DK",
                "4LDK",
                "5K以上"
              ]
            }
          },
          "walkMinutesMax": {
            "title": "Max walk to station (minutes)",
            "minimum": 1,
            "type": "integer",
            "description": "Most minutes on foot to the nearest station. Moved up to SUUMO's options."
          },
          "buildingAgeMax": {
            "title": "Max building age (years, rent)",
            "minimum": 0,
            "type": "integer",
            "description": "Rent only: building at most this many years old; 0 = new builds (新築)."
          },
          "noKeyMoney": {
            "title": "No key money (礼金なし, rent)",
            "type": "boolean",
            "description": "Rent only: rooms with no key money.",
            "default": false
          },
          "noDeposit": {
            "title": "No deposit (敷金なし, rent)",
            "type": "boolean",
            "description": "Rent only: rooms with no deposit.",
            "default": false
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "default",
              "newest"
            ],
            "type": "string",
            "description": "Order of the place search. A pasted URL keeps its own order.",
            "default": "default"
          },
          "detailsAddon": {
            "title": "Details add-on",
            "type": "boolean",
            "description": "Also fetch each ad's page: the full attribute table, features, structure, direction, fees, the listing dates and (rent) the photo gallery. Charged per item with details.",
            "default": false
          },
          "sellerDataAddon": {
            "title": "Seller data add-on",
            "type": "boolean",
            "description": "Also fetch the listing agency: trading name and office phone, plus address, hours, licence number and transaction type where the page holds them (sale search results: with the details add-on, or when the card shows no agency). Business data only. Charged per item with seller data.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}