{
  "openapi": "3.0.1",
  "info": {
    "title": "🚀 Anjuke Scraper · 5,000 Free Listings/Month",
    "description": "Anjuke Scraper gets you Anjuke (安居客) data ⚡ fast, 🎯 100% accurate and 🔍 ridiculously detailed — China homes for sale with prices, layouts, photos, communities & brokers. 💰 $1 per 1,000 listings, no start fee. Scrape your first 5,000 listings free every month 🚀",
    "version": "0.0",
    "x-build-id": "goUdkRxxfrFSJo584"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/omkar-cloud~anjuke-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-omkar-cloud-anjuke-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/omkar-cloud~anjuke-scraper/runs": {
      "post": {
        "operationId": "runs-sync-omkar-cloud-anjuke-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/omkar-cloud~anjuke-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-omkar-cloud-anjuke-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": {
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "Cities as their pinyin (\"shanghai\"), short alias (\"sh\") or Chinese name (\"上海\") — all 679 Anjuke cities work. Rows carry a `search_city` field so you can tell them apart.",
            "items": {
              "type": "string"
            }
          },
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "A community, business area or metro station name for Anjuke's own search — Chinese works best, e.g. `陆家嘴`."
          },
          "district": {
            "title": "District",
            "type": "string",
            "description": "District as its slug or Chinese name, e.g. `pudong`, `浦东`, `chaoyang`, `朝阳`. Applies to every city above, so search one city at a time when you use it."
          },
          "area": {
            "title": "Business Area (商圈)",
            "type": "string",
            "description": "Business area inside the city as its slug or Chinese name, e.g. `lujiazui`, `陆家嘴`, `cbd`."
          },
          "priceMin": {
            "title": "Total Price — Min (万 CNY)",
            "minimum": 1,
            "type": "integer",
            "description": "Minimum total price in 万 (1 万 = 10,000 CNY). `200` = ¥2,000,000."
          },
          "priceMax": {
            "title": "Total Price — Max (万 CNY)",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum total price in 万 (1 万 = 10,000 CNY). `800` = ¥8,000,000."
          },
          "sizeMin": {
            "title": "Floor Area — Min (m²)",
            "minimum": 1,
            "type": "integer",
            "description": "Minimum floor area in square metres."
          },
          "sizeMax": {
            "title": "Floor Area — Max (m²)",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum floor area in square metres."
          },
          "rooms": {
            "title": "Bedrooms",
            "enum": [
              "",
              "1",
              "2",
              "3",
              "4",
              "5",
              "6"
            ],
            "type": "string",
            "description": "Number of bedrooms.",
            "default": ""
          },
          "useType": {
            "title": "Use Type",
            "enum": [
              "",
              "residential",
              "apartment",
              "villa",
              "bungalow",
              "other"
            ],
            "type": "string",
            "description": "Use type of the home.",
            "default": ""
          },
          "buildingAge": {
            "title": "Building Age",
            "enum": [
              "",
              "under_2",
              "2_5",
              "5_10",
              "over_10"
            ],
            "type": "string",
            "description": "Building age in years.",
            "default": ""
          },
          "fitment": {
            "title": "Interior Finish",
            "enum": [
              "",
              "rough",
              "simple",
              "fine",
              "luxury"
            ],
            "type": "string",
            "description": "Interior finish of the home.",
            "default": ""
          },
          "orientation": {
            "title": "Orientation",
            "enum": [
              "",
              "east",
              "south",
              "west",
              "north",
              "southeast",
              "northeast",
              "southwest",
              "northwest",
              "north_south",
              "east_west"
            ],
            "type": "string",
            "description": "Direction the home faces.",
            "default": ""
          },
          "floorLevel": {
            "title": "Floor Level",
            "enum": [
              "",
              "ground",
              "low",
              "middle",
              "high",
              "top"
            ],
            "type": "string",
            "description": "Floor band inside the building.",
            "default": ""
          },
          "propertyType": {
            "title": "Property Type",
            "enum": [
              "",
              "commercial_housing",
              "mixed_use",
              "affordable",
              "public",
              "relocation",
              "other"
            ],
            "type": "string",
            "description": "Ownership type of the property.",
            "default": ""
          },
          "features": {
            "title": "Features",
            "type": "array",
            "description": "Only homes with every feature you pick. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "near_metro",
                "over_5_years",
                "over_2_years",
                "verified",
                "vr",
                "owner_urgent"
              ],
              "enumTitles": [
                "Near metro",
                "Over 5 years",
                "Over 2 years",
                "Verified",
                "VR tour",
                "Owner urgent"
              ]
            }
          },
          "ringRoad": {
            "title": "Ring Road (Beijing)",
            "enum": [
              "",
              "inside_2nd",
              "2nd_3rd",
              "3rd_4th",
              "4th_5th",
              "5th_6th",
              "outside_6th"
            ],
            "type": "string",
            "description": "Ring-road band (Beijing's ring roads).",
            "default": ""
          },
          "sortBy": {
            "title": "Sort By",
            "enum": [
              "default",
              "price_asc",
              "price_desc",
              "area_desc"
            ],
            "type": "string",
            "description": "Order of search results.",
            "default": "default"
          },
          "listingUrls": {
            "title": "Listing URLs",
            "type": "array",
            "description": "Resale listing URLs (desktop `…anjuke.com/prop/view/…` or mobile `m.anjuke.com/…/sale/…`) or listing ids. Always scraped with full details (billed at the detailed-listing rate).",
            "items": {
              "type": "string"
            }
          },
          "communities": {
            "title": "Communities",
            "type": "array",
            "description": "Community ids (e.g. `51241`) or community URLs (`https://beijing.anjuke.com/community/view/51241`). Each community is scraped up to Max Listings per Search.",
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerSearch": {
            "title": "Max Listings per Search",
            "minimum": 1,
            "maximum": 3000,
            "type": "integer",
            "description": "Maximum listings to scrape per city search and per community. Use it to control your cost (1,000 listings ≈ $1). Ignored for listing URLs.",
            "default": 100
          },
          "scrapeListingDetails": {
            "title": "Scrape Full Listing Details",
            "type": "boolean",
            "description": "When enabled, every search and community result is also scraped in full — mortgage estimate, description, all photos and floor plans, government verification code, property rights, the community's developer, fees, households and price history, the broker's profile and the community Q&A. Still one row per listing, billed once at the detailed rate (1,000 detailed listings ≈ $3 vs $1 standard). Runs take longer because each listing page is fetched individually.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}