A cross-platform rental search tool covering China, the United States, the United Kingdom, and Western Europe (Spain/Italy/Portugal). It queries major rental platforms uniformly through 5 CLIs and returns structured JSON.
Prerequisites
The kimi-webbridge daemon must be running:
~/.kimi-webbridge/bin/kimi-webbridge status
If it is not running, first invoke the kimi-webbridge skill to start it.
CLI Overview
| CLI | Platform | Coverage | Login required |
|---|---|---|---|
58-cli |
58.com | Mainland China | No |
anjuke-cli |
Anjuke | Mainland China | No |
apartments-cli |
Apartments.com | All of the United States | No |
rightmove-cli |
Rightmove | All of the United Kingdom | No |
idealista-cli |
Idealista | Spain/Italy/Portugal | No |
Auxiliary Tools: xiaohongshu-cli You can search for rental guides and pitfall-avoidance experiences (unstructured listings). Install via Homebrew:
brew install xpzouying/agent-cli/xiaohongshu-cli
(one-time tap:brew tap xpzouying/agent-cli. Covers macOS arm64/amd64 and Linux amd64/arm64)
All CLIs output a uniform format:{"ok": true, "data": {...}} / {"ok": false, "error": {"code": "...", "message": "..."}}
Choosing a CLI by Region
| User says | Use |
|---|---|
| Renting in any Chinese city | 58-cli + anjuke-cli (query both and compare) |
| Renting in the United States | apartments-cli |
| Renting in the United Kingdom | rightmove-cli |
| Renting in Spain/Italy/Portugal | idealista-cli |
| "See what people say" / pitfall avoidance | xiaohongshu-cli search "XX租房" |
Command Reference
58-cli
# 搜索
58-cli search --city sz --keyword 南山 --limit 10
58-cli search --city sh --keyword 浦东 --min-price 3000 --max-price 5000 --limit 10
# 详情
58-cli detail --url "https://sz.58.com/zufang/xxxxx.shtml"
| Parameter | Description |
|---|---|
--city |
City abbreviation (sz=Shenzhen, sh=Shanghai, bj=Beijing, gz=Guangzhou, cd=Chengdu, hz=Hangzhou, nj=Nanjing, wh=Wuhan, cq=Chongqing, xa=Xi'an, tj=Tianjin, su=Suzhou) |
--keyword |
District/business area/community name |
--min-price / --max-price |
Monthly rent range |
--limit |
Number of results (default 20) |
anjuke-cli
# 搜索
anjuke-cli search --city sz --keyword 南山 --limit 10
anjuke-cli search --city sh --keyword 张江 --min-price 3000 --max-price 6000 --limit 10
# 详情
anjuke-cli detail --city sz --id 123456789
| Parameter | Description |
|---|---|
--city |
Two-letter city code (sz=Shenzhen, bj=Beijing, sh=Shanghai, gz=Guangzhou, hz=Hangzhou, cd=Chengdu, tj=Tianjin, nj=Nanjing, wh=Wuhan, cs=Changsha, cq=Chongqing, xa=Xi'an) |
--keyword |
District/business area/community name |
--min-price / --max-price |
Monthly rent range |
--limit |
Number of results (default 20) |
apartments-cli (United States)
# 搜索
apartments-cli search --location new-york-ny --min-beds 2 --max-price 3000 --limit 10
apartments-cli search --location san-francisco-ca --min-beds 1 --max-beds 2 --min-price 1500 --max-price 2500 --limit 10
apartments-cli search --location chicago-il --page 2 --limit 10
# 详情
apartments-cli detail --url "https://www.apartments.com/xxx/yyy/"
| Parameter | Description |
|---|---|
--location |
City slug (format: city-name-state, e.g. new-york-ny, los-angeles-ca, seattle-wa) |
--min-beds / --max-beds |
Number of bedrooms |
--min-price / --max-price |
Monthly rent range (USD) |
--limit |
Number of results (default 20) |
--page |
Page turning |
Common location slugs: new-york-ny, los-angeles-ca, san-francisco-ca, chicago-il, seattle-wa, boston-ma, washington-dc, austin-tx, denver-co, miami-fl, san-diego-ca, portland-or
rightmove-cli (United Kingdom)
# 搜索
rightmove-cli search --location London --min-beds 2 --max-price 2000 --limit 10
rightmove-cli search --location Manchester --min-beds 1 --max-beds 2 --limit 10
# 详情
rightmove-cli detail --url "https://www.rightmove.co.uk/properties/xxxxx"
| Parameter | Description |
|---|---|
--location |
City name (London, Manchester, Birmingham, Edinburgh, Bristol, Leeds, Liverpool, Glasgow, Cambridge, Oxford) |
--min-beds / --max-beds |
Number of bedrooms |
--min-price / --max-price |
Monthly rent range (GBP) |
--limit |
Number of results (default 20) |
--page |
Page turning |
idealista-cli (Western Europe)
# 搜索
idealista-cli search --country spain --city madrid-madrid --limit 10
idealista-cli search --country italy --city roma --limit 10
idealista-cli search --country portugal --city lisboa --limit 10
# 详情
idealista-cli detail --country spain --url "https://www.idealista.com/inmueble/xxxxx/"
| Parameters | Description |
|---|---|
--country |
spain / italy / portugal |
--city |
City slug (spain: madrid-madrid, barcelona-barcelona, valencia, sevilla; italy: roma, milano, firenze; portugal: lisboa, porto) |
--limit |
Number of results to return (default 20) |
Price/number-of-rooms filtering is not yet implemented (idealista uses path-based filtering, which needs to be encoded separately per country). If filtering is needed, first fetch everything and then filter on the caller side.
xiaohongshu-cli (auxiliary)
xiaohongshu-cli search "上海租房避坑" --limit 10
xiaohongshu-cli search "纽约租房攻略" --limit 10
xiaohongshu-cli view <note_id> <xsec_token>
Workflow
Renting in Chinese cities
# 1. 两个平台同时搜(对比房源和价格)
58-cli search --city sz --keyword 南山 --min-price 3000 --max-price 5000 --limit 10
anjuke-cli search --city sz --keyword 南山 --min-price 3000 --max-price 5000 --limit 10
# 2. 看中的房源查详情
58-cli detail --url "https://sz.58.com/zufang/xxxxx.shtml"
anjuke-cli detail --city sz --id 123456789
# 3. 搜避坑经验
xiaohongshu-cli search "深圳南山租房避坑" --limit 5
Renting in the United States
# 1. 搜索房源
apartments-cli search --location new-york-ny --min-beds 1 --max-price 2500 --limit 10
# 2. 查详情(含户型定价表、设施、图片)
apartments-cli detail --url "https://www.apartments.com/xxx/yyy/"
# 3. 搜攻略
xiaohongshu-cli search "纽约租房经验" --limit 5
Renting in the United Kingdom / Europe
# 英国
rightmove-cli search --location London --min-beds 1 --max-price 1800 --limit 10
rightmove-cli detail --url "https://www.rightmove.co.uk/properties/xxxxx"
# 西班牙
idealista-cli search --country spain --city barcelona-barcelona --limit 10
idealista-cli detail --country spain --url "https://www.idealista.com/inmueble/xxxxx/"
House-hunting considerations
After finding listings, help the user analyze and be reminded from the following angles:
Commute
- Ask clearly where the user works/goes to school, and estimate the commute time
- A direct subway ride of ≤30min is the comfort zone; if it exceeds 45min or requires more than 2 transfers, remind the user to weigh the trade-offs
- In the United States, look at driving commutes and watch out for rush-hour traffic; in the United Kingdom/Europe, look at public transportation
Value for money
- Search several listings in the same area to compare and get a feel for the local rent level
- China: prices on 58 and Anjuke may differ; the actual price shall prevail
- United States: prices listed on apartments.com are usually a range; the actual move-in price is in the unit pricing in the details
- Be wary of listings priced noticeably below the average for the same area—they may be fake listings
Property condition
- Give priority to listings with photos on the detail page; pay attention to how new the renovation is, natural light, and furniture provision
- China: pay attention to orientation (south-facing preferred), floor (avoid the first floor and top floor), and whether there is a private bathroom
- United Kingdom: pay attention to the EPC energy efficiency rating, whether council tax is included, and bills included
- United States: pay attention to the sqft area, whether utilities are included, and parking spaces
Safety and environment
- China: gated communities > open ones, with property management > without, self-contained units > mixed shared housing
- You can use
xiaohongshu-cli search "{小区名} 避坑"to search for real feedback - United States: pay attention to the surrounding neighborhood safety; you can remind the user to check a crime map
- United Kingdom: pay attention to the council area; safety varies greatly from area to area
Agents and contracts
- China: direct rental from the landlord > formal agency > sublessor; be wary of contradictory information
- Pay attention to the deposit/payment method: one month's deposit and one month's rent is the most flexible; with two months' deposit and three months' rent paid upfront / six months paid upfront, consider the risk
- United Kingdom: pay attention to agency fees and the deposit protection scheme
- United States: pay attention to the application fee, security deposit, and lease break penalty
- Western Europe: note that fianza (deposit) is usually 1-2 months
Contract flexibility
- Length of the initial lease term, whether early termination is possible, and how much the penalty is
- For short-term rental needs (<6 months), prioritize listings that explicitly support short-term rentals
- International students should check whether the contract term matches their visa/semester
Information authenticity
- Price too low, photos overly retouched, reposted across multiple platforms → may be a bait fake listing
- Contact information only leaves WeChat and no phone number → may be a sublessor
- Listed for a long time and still not rented out → there may be hidden problems; it is worth asking why
CAPTCHA and rate limiting
| Platform | CAPTCHA risk | Handling method |
|---|---|---|
| 58.com | Low | Just use it normally |
| Anjuke | Low | Normal use is fine |
| Apartments.com | Low | Occasionally triggered; retry after completing verification in Chrome |
| Rightmove | Low | Normal use is fine |
| Idealista | Low-Medium | May be triggered by high-frequency access; control the request interval |
Tips
- Output must include links: When compiling a housing list, each item must include the original URL (the url field in search results), so users can directly open it to view and make contact
- Search two platforms at once for Chinese cities: 58 and Anjuke listings do not fully overlap; searching both shows more options
- Search first, then view details: After search returns the list, pick the interesting ones and then use detail, to avoid wasting requests
- xiaohongshu is a good helper: Searching "{city} rental pitfalls" can provide real tenant feedback to help with judgment
- Pay attention to currency units: China = RMB, United States = USD, United Kingdom = GBP, Western Europe = EUR
- Rental CLIs do not require login: The 5 rental CLIs can be used directly, no account needed
- WebBridge must be running: All CLIs depend on the kimi-webbridge daemon (port 10086)