{
  "openapi": "3.0.1",
  "info": {
    "title": "591 TW $1💰 Keyword Search, URLs & Enriched Output",
    "description": "From $1/1K. Extract property listings from 591.com.tw, Taiwan’s largest real estate marketplace. Search by city or use 591 URLs. Covers rentals, sales, land, and commercial properties. Returns 50–60 fields including price, area, GPS coordinates, nearby transit, and agent/owner contact details.",
    "version": "1.0",
    "x-build-id": "TtyRydajCHBLf4Ldw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/abotapi~591-com-tw-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-abotapi-591-com-tw-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/abotapi~591-com-tw-scraper/runs": {
      "post": {
        "operationId": "runs-sync-abotapi-591-com-tw-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/abotapi~591-com-tw-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-abotapi-591-com-tw-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Search mode",
            "enum": [
              "search",
              "url"
            ],
            "type": "string",
            "description": "Search mode = pick a property section + regions + filters below. URL mode = paste 591 list URLs you already refined in a browser.",
            "default": "search"
          },
          "section": {
            "title": "Property section",
            "enum": [
              "rent",
              "sale",
              "land",
              "commercial"
            ],
            "type": "string",
            "description": "Which 591 marketplace to scrape. Rent = 租屋 (rentals). Sale = 中古屋/新建案 (resale + new homes). Land = 土地 (plots). Commercial = 店面/辦公/廠房 (shops, offices, factories).",
            "default": "rent"
          },
          "regions": {
            "title": "Regions (cities / counties)",
            "type": "array",
            "description": "One or more Taiwan cities/counties to search. Maps to 591 region codes automatically.",
            "items": {
              "type": "string",
              "enum": [
                "taipei-city",
                "keelung-city",
                "new-taipei-city",
                "hsinchu-city",
                "hsinchu-county",
                "taoyuan-city",
                "miaoli-county",
                "taichung-city",
                "changhua-county",
                "nantou-county",
                "chiayi-city",
                "chiayi-county",
                "yunlin-county",
                "tainan-city",
                "kaohsiung-city",
                "pingtung-county",
                "yilan-county",
                "taitung-county",
                "hualien-county",
                "penghu-county",
                "kinmen-county"
              ],
              "enumTitles": [
                "Taipei City / 台北市",
                "Keelung City / 基隆市",
                "New Taipei City / 新北市",
                "Hsinchu City / 新竹市",
                "Hsinchu County / 新竹縣",
                "Taoyuan City / 桃園市",
                "Miaoli County / 苗栗縣",
                "Taichung City / 台中市",
                "Changhua County / 彰化縣",
                "Nantou County / 南投縣",
                "Chiayi City / 嘉義市",
                "Chiayi County / 嘉義縣",
                "Yunlin County / 雲林縣",
                "Tainan City / 台南市",
                "Kaohsiung City / 高雄市",
                "Pingtung County / 屏東縣",
                "Yilan County / 宜蘭縣",
                "Taitung County / 台東縣",
                "Hualien County / 花蓮縣",
                "Penghu County / 澎湖縣",
                "Kinmen County / 金門縣"
              ]
            }
          },
          "rentKind": {
            "title": "Rental type (Rent section only)",
            "enum": [
              "any",
              "whole",
              "suite",
              "shared-suite",
              "single-room",
              "parking"
            ],
            "type": "string",
            "description": "Only applies when Section = Rent. Narrows by dwelling type.",
            "default": "any"
          },
          "minPrice": {
            "title": "Min price",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum price. Rent = TWD/month, Sale/Land/Commercial = TWD total (萬 are converted automatically). Leave blank for no minimum."
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum price. Same unit as Min price. Leave blank for no maximum."
          },
          "minArea": {
            "title": "Min area (坪 / ping)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum floor area in 坪 (ping, 1 ping ≈ 3.3 m²). Leave blank for no minimum."
          },
          "maxArea": {
            "title": "Max area (坪 / ping)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum floor area in 坪 (ping). Leave blank for no maximum."
          },
          "urls": {
            "title": "591 list URLs",
            "type": "array",
            "description": "One or more 591 list URLs. Rent, sale, land, and commercial list pages are all supported (for example a rent.591.com.tw/list page, or a sale, land, or commercial list page copied from your browser). Multi-URL supported. Filter fields above are ignored in URL mode. Pagination starts at the page in the URL and walks forward.",
            "items": {
              "type": "string"
            }
          },
          "fetchDetails": {
            "title": "Visit each listing's detail page",
            "type": "boolean",
            "description": "Adds the rich detail fields: full description, agent/owner name + mobile + phone + LINE, lease rules, deposit, fees, nearby transit (bus/MRT) with distances, full high-res photo gallery, and certificate info. Turn OFF for a faster, cheaper run with the list-level fields only (title, price, area, layout, address, primary photos).",
            "default": true
          },
          "maxListings": {
            "title": "Max total listings",
            "minimum": 0,
            "type": "integer",
            "description": "The main hard cap across the whole run. Default 20. Set 0 for unlimited (then the run is bounded only by Max pages). 591 returns ~30-50 listings per page.",
            "default": 20
          },
          "maxPages": {
            "title": "Max pages per region / URL",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Safety bound on how many result pages to walk per region (or per URL). Defaults to the maximum; a run normally stops earlier once Max total listings is reached. Only raise relevance if you set Max total listings to 0 (unlimited).",
            "default": 500
          },
          "proxy": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Default: Apify Datacenter (free-tier friendly, lowest cost). For maximum reliability you may select Residential; the actor rotates exit IPs and countries (Taiwan first) and falls back to a backup pool if needed."
          },
          "maxResidentialRequests": {
            "title": "Residential request budget",
            "minimum": 0,
            "type": "integer",
            "description": "Caps how many requests may use the (expensive) Residential tier during automatic fallback. 0 = never use residential (datacenter + backup only). Default 200. Has no effect if you do not enable residential and datacenter keeps working.",
            "default": 200
          },
          "mcpConnectors": {
            "title": "Pipe results into your apps (optional)",
            "type": "array",
            "description": "Optionally send the scraped results into the apps you already use, via Model Context Protocol (MCP) connectors. Authorize a connector once under Apify → Settings → Integrations, then select it here. The connector receives a condensed, human-readable summary per item (title + key fields), not the full JSON — the complete record stays in the dataset. Leave empty to skip. Supported: Notion (https://mcp.notion.com/mcp), Linear (https://mcp.linear.app/sse), Airtable (https://mcp.airtable.com/mcp), Apify (https://mcp.apify.com)."
          },
          "notionParentPageUrl": {
            "title": "Notion parent page (Notion connector only)",
            "type": "string",
            "description": "URL (or id) of the Notion page under which item pages are created. Required to enable the Notion export; ignored by other connectors."
          },
          "maxNotifyListings": {
            "title": "Max items to export per connector",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Cap on items written to each connector per run. Does not affect the dataset.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}