{
  "openapi": "3.0.1",
  "info": {
    "title": "🚀 Anjuke Rent Scraper · 5,000 Free Rentals/Month",
    "description": "Anjuke Rent Scraper gets you Anjuke (安居客) rental data ⚡ fast, 🎯 100% accurate and 🔍 ridiculously detailed — China rentals with rent, layout, amenities, photos, metro & brokers. 💰 $1 per 1,000 rentals, no start fee. Scrape your first 5,000 rentals free every month 🚀",
    "version": "0.0",
    "x-build-id": "awDLyHtF6aSbGx2OQ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/omkar-cloud~anjuke-rent-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-omkar-cloud-anjuke-rent-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-rent-scraper/runs": {
      "post": {
        "operationId": "runs-sync-omkar-cloud-anjuke-rent-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-rent-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-omkar-cloud-anjuke-rent-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 (`上海`) — 679 cities are supported. Rows carry a `search_city` field so you can tell them apart.",
            "items": {
              "type": "string"
            }
          },
          "keyword": {
            "title": "Place Name",
            "type": "string",
            "description": "A business area or community name, in pinyin or Chinese, e.g. `lujiazui` or `陆家嘴`. It is matched to a business area through the site's autocomplete, and the search covers that business area. Applies to every city."
          },
          "district": {
            "title": "District",
            "type": "string",
            "description": "District as its pinyin slug or Chinese name, e.g. `pudong`, `浦东`, `chaoyang`, `朝阳`."
          },
          "area": {
            "title": "Business Area",
            "type": "string",
            "description": "Business area (商圈) inside the city as its pinyin slug or Chinese name, e.g. `lujiazui`, `陆家嘴`, `cbd`."
          },
          "rentMin": {
            "title": "Rent — Min (CNY per month)",
            "minimum": 1,
            "type": "integer",
            "description": "Minimum monthly rent in CNY, e.g. `3000`."
          },
          "rentMax": {
            "title": "Rent — Max (CNY per month)",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum monthly rent in CNY, e.g. `8000`."
          },
          "rooms": {
            "title": "Bedrooms",
            "enum": [
              "",
              "1",
              "2",
              "3",
              "4",
              "5"
            ],
            "type": "string",
            "description": "Number of bedrooms; 5 means five or more.",
            "default": ""
          },
          "rentalType": {
            "title": "Rental Type",
            "enum": [
              "",
              "whole",
              "shared"
            ],
            "type": "string",
            "description": "Rent the entire home, or a room in a shared flat.",
            "default": ""
          },
          "fitment": {
            "title": "Fitment",
            "enum": [
              "",
              "rough",
              "simple",
              "fine",
              "luxury"
            ],
            "type": "string",
            "description": "Interior finish.",
            "default": ""
          },
          "listedBy": {
            "title": "Listed By",
            "enum": [
              "",
              "agent",
              "owner"
            ],
            "type": "string",
            "description": "Who lists the rental: an agent or the owner.",
            "default": ""
          },
          "rentalUrls": {
            "title": "Rental URLs",
            "type": "array",
            "description": "Rental URLs (desktop `https://sh.zu.anjuke.com/fangyuan/…` or mobile `https://m.anjuke.com/sh/rent/…`) or rental ids. Always scraped with full details (billed at the detailed-rental rate).",
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerSearch": {
            "title": "Max Rentals per City",
            "minimum": 1,
            "maximum": 3480,
            "type": "integer",
            "description": "Maximum rentals to scrape per city. Use it to control your cost (1,000 rentals = $1.00). Ignored for rental URLs.",
            "default": 100
          },
          "scrapeRentalDetails": {
            "title": "Scrape Full Rental Details",
            "type": "boolean",
            "description": "When enabled, every search result is also scraped in full — payment terms and fees, every amenity (grouped by room where the site groups them), description, street address, coordinates, every photo, video, nearby metro stations with walking distance, and the broker's company, licence, store and service score. Still one row per rental, billed once at the detailed rate (1,000 detailed rentals = $3.00 vs $1.00 standard). Runs take longer because each rental 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}