{
  "openapi": "3.0.1",
  "info": {
    "title": "🚀 Anjuke New Homes Scraper · 2,500 Free Projects/Month",
    "description": "Anjuke New Homes Scraper gets you Anjuke (安居客) 新房 data ⚡ fast, 🎯 100% accurate and 🔍 ridiculously detailed — China new-home projects with prices, floor plans, permits, reviews & sales hotlines. 💰 $2 per 1,000 projects, no start fee. Scrape your first 2,500 projects free every month 🚀",
    "version": "0.0",
    "x-build-id": "CjA1gTNe3hOErZTfo"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/omkar-cloud~anjuke-new-homes-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-omkar-cloud-anjuke-new-homes-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-new-homes-scraper/runs": {
      "post": {
        "operationId": "runs-sync-omkar-cloud-anjuke-new-homes-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-new-homes-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-omkar-cloud-anjuke-new-homes-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 (`上海`) — any of Anjuke's 679 cities. Rows carry a `search_city` field so you can tell them apart.",
            "items": {
              "type": "string"
            }
          },
          "district": {
            "title": "District",
            "type": "string",
            "description": "Only projects in this district — its new-homes slug or Chinese name, e.g. `pudong`, `浦东`, `daxing`, `大兴区`. Applies to every city above, so use it with one city; an unknown district stops that city's search and the log lists the city's valid districts."
          },
          "status": {
            "title": "Sales Status",
            "enum": [
              "",
              "on_sale",
              "upcoming",
              "sold_out",
              "tail",
              "new_permit"
            ],
            "type": "string",
            "description": "Only projects with this sales status.",
            "default": ""
          },
          "rooms": {
            "title": "Bedrooms",
            "enum": [
              "",
              "1",
              "2",
              "3",
              "4",
              "5"
            ],
            "type": "string",
            "description": "Only projects with layouts of this many bedrooms; `5` means five or more.",
            "default": ""
          },
          "size": {
            "title": "Unit Size",
            "enum": [
              "",
              "under_70",
              "70_90",
              "90_120",
              "120_140",
              "140_160",
              "160_200",
              "over_200"
            ],
            "type": "string",
            "description": "Only projects with units in this size band (m²).",
            "default": ""
          },
          "propertyType": {
            "title": "Property Type",
            "enum": [
              "",
              "residential",
              "low_density",
              "commercial",
              "shop",
              "office"
            ],
            "type": "string",
            "description": "Only projects of this property type.",
            "default": ""
          },
          "opening": {
            "title": "Sales Opening",
            "enum": [
              "",
              "this_month",
              "next_month",
              "next_3_months",
              "last_month",
              "opened"
            ],
            "type": "string",
            "description": "Only projects whose sales open (or opened) in this window.",
            "default": ""
          },
          "delivery": {
            "title": "Handover",
            "enum": [
              "",
              "ready",
              "within_1_month",
              "within_3_months",
              "within_6_months"
            ],
            "type": "string",
            "description": "Only projects whose homes are handed over in this window.",
            "default": ""
          },
          "fitment": {
            "title": "Fitment",
            "enum": [
              "",
              "rough",
              "simple",
              "furnished"
            ],
            "type": "string",
            "description": "Only projects delivered with this finish.",
            "default": ""
          },
          "features": {
            "title": "Features",
            "type": "array",
            "description": "Only projects with ANY of these features. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "brand_developer",
                "near_metro",
                "parking",
                "near_school",
                "state_owned",
                "popular",
                "vr"
              ],
              "enumTitles": [
                "Brand-name developer",
                "Near the metro",
                "Parking",
                "Near schools",
                "State-owned developer",
                "Popular",
                "VR tour"
              ]
            }
          },
          "sortBy": {
            "title": "Sort By",
            "enum": [
              "default",
              "price_asc",
              "price_desc",
              "opening_desc"
            ],
            "type": "string",
            "description": "Order of search results. The price sorts rank per-m² and per-unit prices on one scale.",
            "default": "default"
          },
          "projectUrls": {
            "title": "Project URLs",
            "type": "array",
            "description": "Project URLs (desktop `https://sh.fang.anjuke.com/loupan/517873.html` or mobile `https://m.anjuke.com/sh/loupan/517873/`) or project ids (`517873`). Always scraped with full details, reviews and Q&A (billed at the detailed-project rate).",
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerSearch": {
            "title": "Max Projects per City",
            "minimum": 1,
            "maximum": 4000,
            "type": "integer",
            "description": "Maximum projects to scrape per city. Use it to control your cost (1,000 projects ≈ $2.00). Ignored for project URLs.",
            "default": 100
          },
          "scrapeProjectDetails": {
            "title": "Scrape Full Project Details, Reviews & Q&A",
            "type": "boolean",
            "description": "When enabled, every search result is also scraped in full — developer, plot ratio, green ratio, planned households, property company and fee, parking, presale permits, every floor plan with its price, the photo album, nearby market prices and the sales-office address — plus buyer reviews, review tags and Q&A answered by sales consultants. Still one row per project, billed once at the detailed rate (1,000 detailed projects ≈ $6.00 vs $2.00 standard). Runs take longer because each project's pages are 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}