{
  "openapi": "3.0.1",
  "info": {
    "title": "Zigbang Scraper - Korea Property Listings, Rent & Agents",
    "description": "Scrape Zigbang property listings across Seoul and South Korea, including one-room, villa and officetel rentals and sales. Extract deposits, monthly rent, prices, floor plans, property details, subway access, locations and agent contacts.",
    "version": "0.1",
    "x-build-id": "6xRp05vuz7HYup20g"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/abotapi~zigbang-property-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-abotapi-zigbang-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/abotapi~zigbang-property-scraper/runs": {
      "post": {
        "operationId": "runs-sync-abotapi-zigbang-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/abotapi~zigbang-property-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-abotapi-zigbang-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "url"
            ],
            "type": "string",
            "description": "search finds listings around a location keyword (a subway station, a neighbourhood, a district). url reads the exact listings you paste.",
            "default": "search"
          },
          "urls": {
            "title": "Listing URLs or ids",
            "type": "array",
            "description": "Listing page URLs (m.zigbang.com or www.zigbang.com /home/<oneroom|villa|officetel>/items/12345678, or the /v3/items/12345678 API form), bare numeric listing ids, or a keyword search API URL (/v3/search?q=...), which is read like search mode. Each pasted listing decides its own scope: the search filters below are ignored here.",
            "default": [
              "https://m.zigbang.com/home/oneroom/items/48927059",
              "https://m.zigbang.com/home/villa/items/48927059",
              "https://m.zigbang.com/home/officetel/items/48927059",
              "https://m.zigbang.com/home/oneroom/items/48927059?foo=1",
              "https://apis.zigbang.com/v3/items/48927059",
              "https://apis.zigbang.com/v3/search?q=%EA%B0%95%EB%82%A8%EC%97%AD"
            ],
            "items": {
              "type": "string"
            }
          },
          "query": {
            "title": "Location keyword",
            "type": "string",
            "description": "A subway station, neighbourhood or district name in Korean, for example 강남역, 홍대입구 or 마포구. The best subway match is used with the radius below; otherwise the area around the resolved location is read.",
            "default": "강남역"
          },
          "serviceType": {
            "title": "Listing type",
            "enum": [
              "oneroom",
              "villa",
              "officetel"
            ],
            "type": "string",
            "description": "oneroom = studio/one-room (원룸), villa = low-rise residential (빌라), officetel = live-work (오피스텔).",
            "default": "oneroom"
          },
          "subwayRadiusKm": {
            "title": "Subway radius (km)",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Used when the location keyword resolves to a subway station: read listings within this many km of the station.",
            "default": 2
          },
          "geohash": {
            "title": "Geohash cell (advanced)",
            "type": "string",
            "description": "Read this geohash cell directly instead of resolving the keyword. A 4-character cell is roughly 39 km by 20 km; leave empty to use the keyword."
          },
          "lat": {
            "title": "Centre latitude",
            "type": "number",
            "description": "Search around a coordinate instead of a keyword (give lat and lng together). Precision and ring below set the area; a geohash cell, when filled, wins over this."
          },
          "lng": {
            "title": "Centre longitude",
            "type": "number",
            "description": "Centre longitude for the coordinate search (give with latitude)."
          },
          "precision": {
            "title": "Geohash precision",
            "minimum": 4,
            "maximum": 8,
            "type": "integer",
            "description": "Cell size of the coordinate search: 4 is about 39 km by 20 km, 6 about 1.2 km by 0.6 km, 8 about 38 m by 19 m. Advanced.",
            "default": 6
          },
          "ring": {
            "title": "Neighbour rings",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "Cells read around the centre cell: 0 = centre only, 1 = 3x3 cells, up to 3.",
            "default": 1
          },
          "searchUrls": {
            "title": "Search list URLs",
            "type": "array",
            "description": "Pasted apis.zigbang.com listing list URLs (.../house/property/v1/items/onerooms?geohash=wydm6&depositMax=1000). When filled they define the search scope in search mode; price/size filters inside the URL are kept.",
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Sort results",
            "enum": [
              "none",
              "newest",
              "priceAsc",
              "priceDesc",
              "sizeAsc",
              "sizeDesc"
            ],
            "type": "string",
            "description": "The source has no sort, so listings are ordered after reading them all: newest (registered date), price (deposit plus 100 times monthly rent), size (m2). Rows missing the value go last. maxItems then keeps the first N of the ordered list. none keeps the source order.",
            "default": "none"
          },
          "salesTypes": {
            "title": "Deal types",
            "type": "array",
            "description": "Narrow by deal type, one per entry. Valid values: jeonse (전세, lump-sum key-money lease), wolse (월세, deposit plus monthly rent), maede (매매, purchase), dongi (단기, short term). Leave empty for all types available on the chosen listing type. Note: oneroom listings have no sale (maede) type on the source. Unknown values fail the run loudly.",
            "items": {
              "type": "string"
            }
          },
          "depositMin": {
            "title": "Min deposit (만원)",
            "type": "integer",
            "description": "Lowest deposit (보증금) to include, in 10,000 KRW units."
          },
          "depositMax": {
            "title": "Max deposit (만원)",
            "type": "integer",
            "description": "Highest deposit (보증금) to include, in 10,000 KRW units."
          },
          "rentMin": {
            "title": "Min monthly rent (만원)",
            "type": "integer",
            "description": "Lowest monthly rent (월세) to include, in 10,000 KRW units."
          },
          "rentMax": {
            "title": "Max monthly rent (만원)",
            "type": "integer",
            "description": "Highest monthly rent (월세) to include, in 10,000 KRW units."
          },
          "manageCostMin": {
            "title": "Min maintenance fee (만원)",
            "type": "integer",
            "description": "Lowest building maintenance fee (관리비) to include."
          },
          "manageCostMax": {
            "title": "Max maintenance fee (만원)",
            "type": "integer",
            "description": "Highest building maintenance fee (관리비) to include."
          },
          "sizeMin": {
            "title": "Min size (m2)",
            "type": "number",
            "description": "Smallest floor size (전용면적) to include, in square meters."
          },
          "sizeMax": {
            "title": "Max size (m2)",
            "type": "number",
            "description": "Largest floor size (전용면적) to include, in square meters."
          },
          "fetchDetails": {
            "title": "Fetch listing details",
            "type": "boolean",
            "description": "Fetch each listing's detail payload: full description, options (appliances, furniture), elevator, bathroom count, direction, parking, move-in date, nearby subway lines and the agent's public contact block. Adds one request per listing and bills the detail-enrichment surcharge per listing.",
            "default": false
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many listing records. 0 means no limit: the run reads every listing in the scope.",
            "default": 20
          },
          "proxy": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "The source serves every route from the standard datacenter connection pool; no residential proxy is needed. Bring your own proxy if your runs require one.",
            "default": {
              "useApifyProxy": true
            }
          },
          "resumeFromRunId": {
            "title": "Resume from a previous run",
            "type": "string",
            "description": "Paste a previous run ID or dataset ID to continue a large pull without returning items already collected there."
          },
          "incrementalMode": {
            "title": "Incremental mode",
            "type": "boolean",
            "description": "Remember the previous run of the same search and classify every listing as NEW, UPDATED, UNCHANGED or EXPIRED. Every field is compared (price, deposit, rent, management cost, size, floor, address, photos, tags, options and the rest) except viewCount, isNew and badges, which change without a real listing change and stay in the output but never trigger UPDATED. Unchanged listings are suppressed unless emitUnchanged is on.",
            "default": false
          },
          "stateKey": {
            "title": "State key (advanced)",
            "type": "string",
            "description": "Name the incremental baseline yourself when you run several searches that you want tracked separately but that share the same inputs. Leave empty to key the baseline on the search itself."
          },
          "emitUnchanged": {
            "title": "Emit unchanged listings",
            "type": "boolean",
            "description": "With incremental mode on, also return UNCHANGED rows. These are extra billed rows.",
            "default": false
          },
          "emitExpired": {
            "title": "Emit expired listings",
            "type": "boolean",
            "description": "With incremental mode on, also return EXPIRED rows for listings from the previous baseline that no longer appear. These are extra billed rows. Only a complete, uncapped scan can mark listings expired.",
            "default": false
          },
          "ignoreFieldsForChanges": {
            "title": "Ignore fields when detecting changes (incremental mode only)",
            "type": "array",
            "description": "Optional. Field names that must NOT make a listing count as UPDATED, for example \"tags\" or \"agent.phone\" (dotted paths reach nested fields). Ignored fields stay in the output and the saved baseline; they are only left out of the comparison and of changedFields. Leave empty to compare every field except viewCount, isNew and badges.",
            "items": {
              "type": "string"
            }
          },
          "mcpConnectors": {
            "title": "MCP connectors",
            "type": "array",
            "description": "Connector ids to export results into (for example a Notion connector id). Optional; results are unaffected when export fails.",
            "items": {
              "type": "string"
            }
          },
          "notionParentPageUrl": {
            "title": "Notion parent page URL",
            "type": "string",
            "description": "When a Notion connector is selected, pages are created under this parent page URL."
          },
          "maxNotifyListings": {
            "title": "Max items sent to a connector",
            "minimum": 0,
            "type": "integer",
            "description": "Cap how many of this run's records the connector export sends.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}