{
  "openapi": "3.0.1",
  "info": {
    "title": "at home Japan Rental Scraper (athome.co.jp)",
    "description": "Public at home (athome.co.jp) Japan rental listings: propertyId, title, monthly rent, area, layout, station access, address, photos, and optional detail pages. No start fee.",
    "version": "0.1",
    "x-build-id": "n8vYOJHJgmoDSy9ou"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/stone_jadex~athome-japan-rental-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-stone_jadex-athome-japan-rental-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~athome-japan-rental-scraper/runs": {
      "post": {
        "operationId": "runs-sync-stone_jadex-athome-japan-rental-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~athome-japan-rental-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-stone_jadex-athome-japan-rental-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": {
          "startUrls": {
            "title": "List or property URLs",
            "type": "array",
            "description": "Optional. One or more public at home (athome.co.jp) rental list URLs (e.g. https://www.athome.co.jp/chintai/tokyo/minato-city/list/) or detail URLs (https://www.athome.co.jp/chintai/1000162911/). Leave empty to use the built-in multi-ward Tokyo/Osaka/Kanagawa default seeds. Not SUUMO.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Max properties",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop after this many charged property rows. Alias: maxResults.",
            "default": 50
          },
          "maxResults": {
            "title": "Max properties (alias)",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Alias for maxItems."
          },
          "maxPages": {
            "title": "Max list pages",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Optional. Each Tokyo list page has about 150 rooms across ~30 building cards."
          },
          "startPage": {
            "title": "Start page",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "First list page when the start URL does not already set ?page= or /pageN/.",
            "default": 1
          },
          "scrapeDetails": {
            "title": "Open each property page",
            "type": "boolean",
            "description": "Adds amenities, listedAt, geo, and fuller photos from the public detail page. Charged as property-detail instead of property. Alias: includeDetails.",
            "default": false
          },
          "includeDetails": {
            "title": "Open each property page (alias)",
            "type": "boolean",
            "description": "Alias for scrapeDetails.",
            "default": false
          },
          "requestDelayMs": {
            "title": "Minimum gap between request starts (ms)",
            "minimum": 1200,
            "type": "integer",
            "description": "Default 1500 ms (floor 1200). List HTML is large (~1.8 MB). A Crawl-delay in robots.txt can only raise this.",
            "default": 1500
          },
          "concurrency": {
            "title": "Requests in flight",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "How many list or detail pages may be requested at once. Default 1 (serial). Starts are still spaced by requestDelayMs. Alias: maxConcurrency.",
            "default": 1
          },
          "maxConcurrency": {
            "title": "Requests in flight (alias)",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "Alias for concurrency."
          },
          "maxRunSeconds": {
            "title": "Max run time (seconds)",
            "minimum": 30,
            "type": "integer",
            "description": "Stops cleanly and writes the OUTPUT record before this limit.",
            "default": 3600
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Direct connection by default (opt-in). Residential is a fallback only and is capped by a fixed developer budget (5 MB).",
            "default": {
              "useApifyProxy": false
            }
          },
          "useProxyFallback": {
            "title": "Use proxy only after repeated blocks",
            "type": "boolean",
            "description": "Stay on a direct connection until repeated HTTP 403 or 429, then switch to the configured proxy.",
            "default": false
          },
          "allowDetailOnResidential": {
            "title": "Allow detail pages on residential proxy",
            "type": "boolean",
            "description": "Detail pages stay on a direct connection when the proxy group is residential, unless this is on. Residential download budget is a fixed developer cap (5 MB), not user-tunable.",
            "default": false
          },
          "challengeCooldownSecs": {
            "title": "Wait after verification page (seconds)",
            "minimum": 0,
            "maximum": 600,
            "type": "integer",
            "description": "Optional pause before the next seed after at home shows its verification challenge page. Waiting rarely clears it; default 0. Legacy field name authCooldownSecs remains supported for backward compatibility.",
            "default": 0
          },
          "challengeWindDownAfter": {
            "title": "Stop after consecutive verification seeds",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Stop the run cleanly (with a run-notice row) after this many seeds in a row end in at home's verification challenge page. The page is never bypassed. Legacy field name authWindDownAfter remains supported for backward compatibility.",
            "default": 2
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}