Lianjia Listings Scraper

Export Lianjia home listings and prices to a spreadsheet

DataLens is a Chrome extension that turns a Lianjia second-hand housing list into rows in Excel or CSV. In our test on the Beijing list it saved every listing on the page with its title and link, community, area, layout details, followers and listing age, total price and price per square metre.

Free · Runs in your own browser

Related searches: Lianjia scraper · Lianjia listings data · export Lianjia to Excel · China second-hand housing prices · Beijing home price data

Updated

Total price and price per m²

Each listing's total price (in 10,000 yuan) and unit price ("40,952 yuan/m²") come out as two columns, the two numbers housing analysis starts from.

A link to every listing

The title column carries the listing's own page (bj.lianjia.com/ershoufang/<id>.html), and community and area names link to their Lianjia pages too.

Layout details in one field

Rooms, size, orientation, decoration, floor, year built and building type arrive as one pipe-separated field that splits cleanly into columns in Excel.

Pages it works on

Each page type below was run on the live site. Pages we have not tested are left off.

PageStatusNotes
Second-hand listings (ershoufang), page 1WorksAll listings on page 1, signed out.
Second-hand listings, page 2 and beyondPartialSigned out, page 2 redirected to the Lianjia login page in our test. We have not tested it signed in yet.

Sample output

5 of 30 rows from a real DataLens run on Lianjia's Beijing second-hand list, signed out, November 26, 2026. Total price is shown as exported; listing links shortened to the listing id.
TitleListingCommunityDetailsTotal pricePrice per m²
小区正规三居,南北通透,,无遮挡,视野开阔101139942232金隅汇星苑3室1厅 | 89.13平米 | 西南 北 | 简装 | 低楼层(共21层) | 2016年 | 板楼365 _万_40,952元/平
中海丽春湖墅 电梯3居室 业主诚意出售 满五唯一101135728469中海丽春湖墅3室2厅 | 89.11平米 | 南 北 | 精装 | 低楼层(共6层) | 板楼295 _万_33,106元/平
九龙花园南北通透一居室 高层视野好 精装修维护好101140859468九龙花园1室1厅 | 59.53平米 | 南 北 | 精装 | 中楼层(共20层) | 2001年 | 板楼318 _万_53,419元/平
2012年 电梯全南一居 装修好户型方正可直接入住101140232988期颐百年1室1厅 | 57.91平米 | 南 | 精装 | 中楼层(共9层) | 2011年 | 板楼179 _万_30,911元/平
红星楼精装修两居明卫,非顶层采光通风好,只有契税!101139393384红星楼2室1厅 | 58.38平米 | 南 北 | 精装 | 高楼层(共6层) | 板楼147 _万_25,180元/平

Real-world use cases

A first-time buyer exports the listings in two districts, splits the details field and compares price per square metre by community.

A real estate researcher exports a filtered list (two-bedrooms under 4 million yuan) every week to follow how asking prices and listing ages move.

An agent prepares a comparison sheet for a client, with each listing's link, layout and price in one place.

How it works

  1. 1Open a Lianjia city list in Chrome, for example bj.lianjia.com/ershoufang/, and set district, price, size or layout filters on the page. Sign in to Lianjia if you want more than the first page (see the FAQ).
  2. 2Open the DataLens sidebar and ask for the listings, such as "scrape these listings with title, link, community, total price and unit price". It shows the columns before it starts.
  3. 3Let it collect and export to Excel (.xlsx), CSV or JSON. Use Excel's Text to Columns on the details field to split rooms, size and floor.

Frequently asked questions

Short answers to what people usually ask before installing.

How many listings can I export without signing in?

One page. In our November 26, 2026 test, signed out, DataLens collected all 30 listings on the first page; when it moved to page 2, Lianjia redirected to its login page and the run stopped. Sign in to Lianjia in the same browser before you start if you need more pages; DataLens does not log in for you.

Which fields came through?

Title with listing link, community, area, the details field (layout, size, orientation, decoration, floor, year, building type), followers and listing age ("6 followers / listed 14 days ago" in Chinese), total price and price per square metre, plus tag columns such as near-subway and VR viewing. Total price came out as the number followed by the Chinese character for 10,000 yuan wrapped in underscores, so strip everything after the number before doing maths.

Does it work for other cities?

We tested the Beijing list. Other Lianjia city lists (sh.lianjia.com, gz.lianjia.com and so on) use the same page layout, so they should behave the same, but we have only verified Beijing.

Is the Lianjia scraper free?

DataLens is free to install and new accounts get 400 free points. Points are used as DataLens works: AI scraping is billed by the AI usage of each run, so the cost depends on the page and how many rows you ask for. Current rates are on the pricing page.

30 seconds to start

Install free. Your first table in minutes.

Free Chrome & Edge extension. Sign in and start.

You start with 400 free credits, enough to try your first table. Top up only when you need more.