{
  "openapi": "3.0.1",
  "info": {
    "title": "Anjuke 新房 Scraper — 64 Fields + Sales Office Phones",
    "description": "Extract Chinese new-home (新房) developer data from Anjuke with permanent 400-hotline sales-office phones. 64 fields per development — pricing, floorplans, price trends, metro, tags. Dual-mode: city + filters or paste loupan URLs. 25 top cities. Free tier: 5 developments, 5 runs lifetime.",
    "version": "0.0",
    "x-build-id": "x1x9GcCeEdJSaKOib"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zen-studio~anjuke-new-home-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zen-studio-anjuke-new-home-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/zen-studio~anjuke-new-home-scraper/runs": {
      "post": {
        "operationId": "runs-sync-zen-studio-anjuke-new-home-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/zen-studio~anjuke-new-home-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-zen-studio-anjuke-new-home-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": {
          "city": {
            "title": "City",
            "enum": [
              "beijing",
              "shanghai",
              "guangzhou",
              "shenzhen",
              "chengdu",
              "nanjing",
              "tianjin",
              "hangzhou",
              "suzhou",
              "chongqing",
              "dalian",
              "wuhan",
              "shenyang",
              "xian",
              "qingdao",
              "jinan",
              "foshan",
              "changsha",
              "ningbo",
              "zhengzhou",
              "hefei",
              "xiamen",
              "kunming",
              "dongguan",
              "wuxi"
            ],
            "type": "string",
            "description": "City to search (城市).<br><br>Start typing to filter — each entry shows the Chinese name and pinyin. Leave empty only if you're using the <b>Loupan URLs</b> field further down."
          },
          "region": {
            "title": "Region / 区域",
            "type": "string",
            "description": "Optional district filter, in pinyin. Common examples:<br>• <code>chaoyang</code> (朝阳) · <code>haidian</code> (海淀) · <code>daxing</code> (大兴) · <code>fengtai</code> (丰台) — Beijing<br>• <code>pudong</code> (浦东) · <code>minhang</code> (闵行) · <code>xuhui</code> (徐汇) — Shanghai<br><br>Leave empty to include all districts in the selected city."
          },
          "pricePerM2Min": {
            "title": "Price per m² — min / 单价下限 (元/m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional minimum per-m² price in CNY (元/m²), e.g. <code>30000</code>. Leave empty for no minimum.<br><br>⚠️ <b>Mutually exclusive with Total price</b> — use per-m² or total, not both."
          },
          "pricePerM2Max": {
            "title": "Price per m² — max / 单价上限 (元/m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional maximum per-m² price in CNY (元/m²), e.g. <code>60000</code>. Leave empty for no maximum."
          },
          "totalPriceMin": {
            "title": "Total price — min / 总价下限 (万元)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional minimum total price in <b>万元</b> (10,000 CNY), e.g. <code>500</code> = ¥5,000,000 total.<br><br>⚠️ <b>Mutually exclusive with Price per m²</b>."
          },
          "totalPriceMax": {
            "title": "Total price — max / 总价上限 (万元)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional maximum total price in <b>万元</b> (10,000 CNY), e.g. <code>1000</code> = ¥10,000,000 total."
          },
          "rooms": {
            "title": "Rooms / 户型",
            "uniqueItems": true,
            "type": "array",
            "description": "Optional list of room counts to match. Select one or more. Leave empty to include all sizes.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "1 bedroom (一室)",
                "2 bedrooms (两室)",
                "3 bedrooms (三室)",
                "4 bedrooms (四室)",
                "5+ bedrooms (五室+)"
              ]
            }
          },
          "propertyType": {
            "title": "Property type / 物业类型",
            "enum": [
              "residential",
              "villa",
              "commercial",
              "office",
              "shop"
            ],
            "type": "string",
            "description": "Optional property-type filter. Defaults to all types if omitted."
          },
          "saleStatus": {
            "title": "Sale status / 销售状态",
            "uniqueItems": true,
            "type": "array",
            "description": "Optional list of statuses to include. Select one or more. Leave empty to include all.",
            "items": {
              "type": "string",
              "enum": [
                "onsale",
                "upcoming",
                "soldout"
              ],
              "enumTitles": [
                "🟢 On sale (在售)",
                "🟡 Upcoming (待售)",
                "🔴 Sold out (售罄)"
              ]
            }
          },
          "sort": {
            "title": "Sort / 排序",
            "enum": [
              "default",
              "price_asc",
              "price_desc",
              "newest"
            ],
            "type": "string",
            "description": "Sort order for search results. <code>Default</code> uses Anjuke's own ranking (usually best for discovery).",
            "default": "default"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of developments to scrape in this run. Hard-capped at 5,000.<br><br>💡 <b>Free tier:</b> lifetime 5 rows + 5 runs per user. Upgrade to Apify paid plans for unlimited scraping.",
            "default": 100
          },
          "startUrls": {
            "title": "Loupan URLs / 楼盘链接",
            "type": "array",
            "description": "Optional — only fill this if you're <b>skipping the City search</b> and want to pull specific developments by URL.<br><br><b>Accepted shape:</b> <code>https://{short}.fang.anjuke.com/loupan/{id}.html</code><br>e.g. <code>https://bj.fang.anjuke.com/loupan/523824.html</code> (Beijing), <code>https://sh.fang.anjuke.com/loupan/524704.html</code> (Shanghai).<br><br>Up to <b>1,000 URLs per run</b>. Duplicates are deduplicated. Invalid URLs produce stub rows with <code>rowStatus: \"invalid\"</code> and are not charged.",
            "items": {
              "type": "string"
            }
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Chinese residential proxies are recommended. Leave the defaults to use Apify Residential CN — that's what this actor is tuned for."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}