# 🚀 Anjuke Scraper · 5,000 Free Listings/Month (`omkar-cloud/anjuke-scraper`) Actor

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 🚀

- **URL**: https://apify.com/omkar-cloud/anjuke-scraper.md
- **Developed by:** [Omkar Cloud](https://apify.com/omkar-cloud) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 listing scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Anjuke Scraper

Anjuke Scraper by Omkar Cloud gets you 🎯 accurate, 🔍 detailed Anjuke (安居客) data.

Anjuke is China's largest property portal — **398,000+ homes for sale in Shanghai alone**, across 679 cities — and every run scrapes it live, so you get today's listings, prices and communities, and can successfully complete your project.

**$1 per 1,000 listings.** And with Apify's free plan you get $5 of credit every month, so your first **~5,000 listings each month are free**.

This is an excellent Actor made by Omkar Cloud, which is Rated Excellent — [4.7 based on 37 reviews on Trustpilot](https://www.trustpilot.com/review/omkar.cloud).

👉 [**Try Anjuke Scraper free**](https://apify.com/omkar-cloud/anjuke-scraper) — your first ~5,000 listings are Free.

### What can I get

- 🏡 **Resale homes (二手房) in 679 Chinese cities** — search any city by pinyin, short alias or Chinese name; filter by district, business area, keyword, total price, floor area, bedrooms, use type, building age, finish, orientation, floor level, property type, features & Beijing ring road
- 💰 **Price, ¥/m², layout & community on every row** — total price in CNY and 万, price per m², rooms, halls & bathrooms, floor area, floor, orientation, finish, year built, tags, main photo, plus the community with its district, business area & coordinates
- 📋 **Full details** — mortgage estimate, full description, every photo & floor plan, government verification code, property rights, the community's developer, management fee, households & up to 36 months of price history, the broker's profile and the community's Q\&A
- 🏘️ **Any community (小区)** — paste a community id or link and get every home for sale in it
- 🔗 **Any listing URL** — paste listing links or ids and get the full listing back

### Why Anjuke Scraper

Most other Anjuke scrapers fail you in one of four ways:

- 🗄️ **Inaccurate, cached, stale data**
- 🧩 **Low-detail data** — a few fields per row, never the full picture
- 💸 **Pay more to get the same data**
- 🪦 **Works today, breaks next month** — nobody maintains it

Anjuke Scraper is scraped live on every run, priced honestly, and actively maintained.

### Example Output

```json
{
  "input_url": "https://shanghai.anjuke.com/prop/view/3993742615191556",
  "id": "3993742615191556",
  "title": "汤臣一品高区一线江景，哪有什么意难平，你住汤臣你也行",
  "link": "https://shanghai.anjuke.com/prop/view/3993742615191556",
  "price_total": 100000000,
  "price_total_wan": 10000,
  "price_per_sqm": 230484,
  "mortgage_down_payment": 15000000,
  "mortgage_monthly": 306741,
  "layout": "4室2厅4卫",
  "rooms": 4,
  "bathrooms": 4,
  "area_sqm": 433.87,
  "floor": "高层(共37层)",
  "orientation": "南北",
  "fitment": "精装修",
  "year_built": 2007,
  "property_rights_years": "70年产权",
  "has_elevator": true,
  "is_unique_property": true,
  "features": ["满五年", "唯一住房", "有电梯", "近地铁", "车位充足"],
  "photos": [
    "https://pic1.ajkimg.com/display/anjuke/932826-%E5%A4%AA%E5%B9%B3%E6%B4%8B%E6%88%BF%E5%B1%8B/3b5c7d02b2511939fe967cf99069bc40-2500x2000.jpg?frame=1",
    "https://pic1.ajkimg.com/display/anjuke/a6abf4-%E5%A4%AA%E5%B9%B3%E6%B4%8B%E6%88%BF%E5%B1%8B/db058944fa679a8887224db91a973596-2500x2000.jpg?frame=1"
  ],
  "floor_plans": [
    "https://pic1.ajkimg.com/display/anjuke/584512-%E5%A4%AA%E5%B9%B3%E6%B4%8B%E6%88%BF%E5%B1%8B/54bd5a29483c5a4e2e8c7735535d690e-2500x2000.jpg?frame=1"
  ],
  "verification_code": "202610762562",
  "community_id": "8",
  "community_name": "汤臣一品",
  "community_address": "花园石桥路28弄",
  "district": "浦东",
  "business_area": "陆家嘴",
  "latitude": 31.238608,
  "longitude": 121.508381,
  "community_developer": "汤臣海景花园（上海浦东新区）有限公司",
  "community_property_fee": "15.0",
  "community_households": 215,
  "community_price_per_sqm": 229531,
  "community_price_label": "11月挂牌均价",
  "broker_name": "罗强",
  "broker_company": "太平洋房屋",
  "broker_store": "太平洋房屋瑞平路店",
  "broker_service_score": 618,
  "questions": [
    {
      "id": "16649295",
      "question": "【汤臣一品】 能办理落户吗？",
      "asked_at": "2018-06-04",
      "answers_count": 154,
      "link": "https://www.anjuke.com/qa/v16649295",
      "best_answer": "可以的，只要您购置了，就能落户的。",
      "best_answer_at": "2023-07-11",
      "best_answer_author": "申楠"
    }
  ]
}
```

*Trimmed for readability. Every row is flat — it exports straight to CSV and Excel. Text stays in Chinese, exactly as Anjuke shows it.*

### Get Started with 5,000 Free Listings

1. [Hit **Try for Free Button**](https://apify.com/omkar-cloud/anjuke-scraper) — the input is pre-filled with a Shanghai search, the ¥100M 汤臣一品 (Tomson Riviera) listing and Beijing's 棕榈泉国际公寓 community.
2. Enjoy your data 😎.

### Input Examples

**3-bedroom homes near the metro in Shanghai's Pudong, ¥2M–8M:**

```json
{
  "cities": ["shanghai"],
  "district": "pudong",
  "priceMin": 200,
  "priceMax": 800,
  "rooms": "3",
  "features": ["near_metro"],
  "maxResultsPerSearch": 500
}
```

**Homes around one place, by keyword, with full details:**

```json
{
  "cities": ["上海"],
  "keyword": "陆家嘴",
  "scrapeListingDetails": true,
  "maxResultsPerSearch": 100
}
```

**Every home for sale in a community, plus one listing in full:**

```json
{
  "communities": ["https://beijing.anjuke.com/community/view/51241"],
  "listingUrls": ["https://shanghai.anjuke.com/prop/view/3993742615191556"]
}
```

### Pricing

High value, Low price.

| What | Price | What you get |
|---|---|---|
| **Standard listings** | **$1 per 1,000** | id, title, link, total price (CNY and 万), ¥/m², layout, rooms, halls, bathrooms, area, floor, orientation, finish, use type, year built, elevator & heating, verified / owner-listed / only-home flags, ad & promoted flags, tags, highlights, main photo, VR flag, community name, address, district, business area, block, coordinates, year built, building type, score & tags + search context |
| **Detailed listings** | $3 per 1,000 | Everything above + mortgage estimate, full description, every photo, floor plan & outdoor photo, video & VR tour links, government verification code, property rights, quality badge, full feature list, the community's developer, management company & fee, plot & green ratio, households, parking, average price with month / year change and up to 36 months of price history, the broker's profile (brokerage, store, license, service score, credentials) and the community Q\&A |

No start fee — you pay only for the rows you get. Control your spend with **Max Listings per Search**: 1,000 listings ≈ $1.

- 🏙️ **1,000 Shanghai listings** ≈ **$1** — or ≈ **$3** with full details
- 🗺️ **A whole search** (3,000 listings, Anjuke's own limit per search) ≈ **$3** — or ≈ **$9** with full details
- 🏘️ **One community's 40 homes for sale** ≈ **$0.04** — or ≈ **$0.12** with full details

💡 Apify's free plan includes $5 of credit every month — about **5,000 free listings, every month**.

👉 [**Scrape your first 5,000 listings free**](https://apify.com/omkar-cloud/anjuke-scraper)

### Run It from Code

Grab your API token from [Integrations Settings here](https://console.apify.com/settings/integrations) and replace `<YOUR_API_TOKEN>` below.

**Python** (`pip install apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("omkar-cloud/anjuke-scraper").call(run_input={
    "cities": ["shanghai"],
    "district": "pudong",
    "rooms": "3",
    "scrapeListingDetails": True,
    "maxResultsPerSearch": 10,
})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["title"], row["price_total_wan"], row["community_name"])
```

**Node.js** (`npm install apify-client`)

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_API_TOKEN>' });
const run = await client.actor('omkar-cloud/anjuke-scraper').call({
    listingUrls: ['https://shanghai.anjuke.com/prop/view/3993742615191556'],
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

### FAQ

**Is it legal to scrape Anjuke?** Anjuke Scraper collects only data the site shows publicly to every visitor, without logging in. You are responsible for using it in line with the law and the site's terms — don't use broker details for spam.

**Which cities can I search?** All 679 cities Anjuke serves. Type a city as its pinyin (`shanghai`), short alias (`sh`) or Chinese name (`上海`). Districts and business areas work as slugs or Chinese names (`pudong` or `浦东`, `lujiazui` or `陆家嘴`).

**How many results can one search return?** Anjuke serves at most 50 pages of 60 homes — 3,000 listings per search. Split a big city by district or business area, or narrow it with price and size filters, to get more.

**What units are the prices in?** `price_total` is in yuan (CNY), `price_total_wan` is in 万 (1 万 = 10,000 CNY) the way Anjuke shows it, and `price_per_sqm` is CNY per m². Areas are in m².

**Why do some rows have empty fields?** The site leaves them out for that home. Mortgage, description, photos, community facts, broker and Q\&A come with the full-detail option. If one listing's details can't be fetched, you still get its search row — billed at the standard rate.

**How much does it cost compared to other Anjuke scrapers?** Other Anjuke actors on the Store charge about $10 per 1,000 rows, plus a start fee on every run. Here 1,000 listings cost $1 — $3 with full details — and there's no start fee.

### 💬 Have Questions? We Have Answers.

You're a business owner — we know how hard completing a project can be. So we offer full support: just message us and we'll reply ✅ with a solution within 1 working day.

[![Message Us on WhatsApp about Anjuke Scraper](https://raw.githubusercontent.com/omkarcloud/assets/master/images/whatsapp-us.png)](https://www.omkar.cloud/l/anjuke-scraper-apify-whatsapp)

[![Ask Us by Email about Anjuke Scraper](https://raw.githubusercontent.com/omkarcloud/assets/master/images/ask-on-email.png)](mailto:happy.to.help@omkar.cloud?subject=Help%20with%20Anjuke%20Scraper%20actor\&body=I%20need%20help%20using%20the%20Anjuke%20Scraper%20actor.)

### Related Actors

- 🔑 [**Anjuke Rent Scraper**](https://apify.com/omkar-cloud/anjuke-rent-scraper) — China rentals with rent, layout, amenities, photos, metro & brokers.
- 🏗️ [**Anjuke New Homes Scraper**](https://apify.com/omkar-cloud/anjuke-new-homes-scraper) — China new-home projects (新房) with prices, floor plans, permits, reviews & sales hotlines.

### Popular Actors by Omkar Cloud

- [**Rightmove Scraper**](https://apify.com/omkar-cloud/rightmove-scraper) — UK homes for sale, to rent & new homes with agent phones
- [**Zoopla Scraper**](https://apify.com/omkar-cloud/zoopla-scraper) — Zoopla homes for sale, to rent & new homes with agent phones
- [**G2 Product Scraper**](https://apify.com/omkar-cloud/g2-product-scraper) — G2 product details, ratings & AI-found contacts
- [**Website Email Contact Scraper**](https://apify.com/omkar-cloud/website-email-contact-scraper) — emails, phones & socials from any website
- [**Booking Scraper**](https://apify.com/omkar-cloud/booking-scraper) — Booking.com hotels: prices, ratings, rooms & amenities
- [**Etsy Scraper**](https://apify.com/omkar-cloud/etsy-scraper) — Etsy products: prices, discounts, shops & variations

👉 [**Scrape your first 5,000 listings free now**](https://apify.com/omkar-cloud/anjuke-scraper)

# Actor input Schema

## `cities` (type: `array`):

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.

## `keyword` (type: `string`):

A community, business area or metro station name for Anjuke's own search — Chinese works best, e.g. `陆家嘴`.

## `district` (type: `string`):

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` (type: `string`):

Business area inside the city as its slug or Chinese name, e.g. `lujiazui`, `陆家嘴`, `cbd`.

## `priceMin` (type: `integer`):

Minimum total price in 万 (1 万 = 10,000 CNY). `200` = ¥2,000,000.

## `priceMax` (type: `integer`):

Maximum total price in 万 (1 万 = 10,000 CNY). `800` = ¥8,000,000.

## `sizeMin` (type: `integer`):

Minimum floor area in square metres.

## `sizeMax` (type: `integer`):

Maximum floor area in square metres.

## `rooms` (type: `string`):

Number of bedrooms.

## `useType` (type: `string`):

Use type of the home.

## `buildingAge` (type: `string`):

Building age in years.

## `fitment` (type: `string`):

Interior finish of the home.

## `orientation` (type: `string`):

Direction the home faces.

## `floorLevel` (type: `string`):

Floor band inside the building.

## `propertyType` (type: `string`):

Ownership type of the property.

## `features` (type: `array`):

Only homes with every feature you pick. Leave empty for all.

## `ringRoad` (type: `string`):

Ring-road band (Beijing's ring roads).

## `sortBy` (type: `string`):

Order of search results.

## `listingUrls` (type: `array`):

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).

## `communities` (type: `array`):

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.

## `maxResultsPerSearch` (type: `integer`):

Maximum listings to scrape per city search and per community. Use it to control your cost (1,000 listings ≈ $1). Ignored for listing URLs.

## `scrapeListingDetails` (type: `boolean`):

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.

## Actor input object example

```json
{
  "cities": [
    "shanghai"
  ],
  "rooms": "",
  "useType": "",
  "buildingAge": "",
  "fitment": "",
  "orientation": "",
  "floorLevel": "",
  "propertyType": "",
  "ringRoad": "",
  "sortBy": "default",
  "listingUrls": [
    "https://shanghai.anjuke.com/prop/view/3993742615191556"
  ],
  "communities": [
    "51241"
  ],
  "maxResultsPerSearch": 20,
  "scrapeListingDetails": false
}
```

# Actor output Schema

## `results` (type: `string`):

Every row with every field.

## `overview` (type: `string`):

Photo, title, price, ¥/m², layout, area, floor, year built, community and district of every listing.

## `details` (type: `string`):

Mortgage estimate, description, photos, verification code, community facts and price history, broker and Q\&A of detailed listings.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "cities": [
        "shanghai"
    ],
    "listingUrls": [
        "https://shanghai.anjuke.com/prop/view/3993742615191556"
    ],
    "communities": [
        "51241"
    ],
    "maxResultsPerSearch": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("omkar-cloud/anjuke-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "cities": ["shanghai"],
    "listingUrls": ["https://shanghai.anjuke.com/prop/view/3993742615191556"],
    "communities": ["51241"],
    "maxResultsPerSearch": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("omkar-cloud/anjuke-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "cities": [
    "shanghai"
  ],
  "listingUrls": [
    "https://shanghai.anjuke.com/prop/view/3993742615191556"
  ],
  "communities": [
    "51241"
  ],
  "maxResultsPerSearch": 20
}' |
apify call omkar-cloud/anjuke-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,omkar-cloud/anjuke-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/NRbnrUzr94fk8bxbB/builds/goUdkRxxfrFSJo584/openapi.json
