Discover/Anjuke API
live

Anjuke APIbeijing.anjuke.com

Access Beijing property data via the Anjuke API: rental listings, second-hand homes, price index, community search, and agent profiles across Beijing districts.

Endpoint health
verified 4d ago
search_rental_listings
search_agents
get_beijing_house_price_index
search_listings_by_community
4/4 passing latest checkself-healing
Endpoints
6
Updated
26d ago

What is the Anjuke API?

This API exposes 6 endpoints covering Beijing real estate data from Anjuke, including second-hand property listings, rental listings, a city-wide house price index, community autocomplete search, listing detail pages, and agent profiles. The get_beijing_house_price_index endpoint alone returns current average price per square meter alongside daily, weekly, and monthly price history arrays, making it useful for tracking market movement over time.

Try it
Page number
District filter path segment
api.parse.bot/scraper/cb9bb724-0512-4ccb-aef4-2615cefb5873/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/cb9bb724-0512-4ccb-aef4-2615cefb5873/search_second_hand_listings?page=1&district=chaoyang' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace beijing-anjuke-com-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

"""Walkthrough: Anjuke Beijing Real Estate SDK — bounded, re-runnable."""
from parse_apis.anjuke_beijing_real_estate_api import (
    Anjuke, CommunityType, CommunityNotFound
)

client = Anjuke()

# Get Beijing market price overview — singleton fetch, typed nested access.
index = client.priceindexes.get()
print(f"Market: {index.data.name}, price: ¥{index.data.price_info.price}/m²")
print(f"  Monthly change: {index.data.price_info.month_change}%")
print(f"  New housing: ¥{index.data.xinfang_price_info.price}/m²")

# Browse daily price trends (nested List[PriceTrend] → List[PricePoint]).
for trend in index.data.price_trend:
    points = trend.city[:3]
    for pt in points:
        print(f"  [{trend.trend_type}] {pt.date}: ¥{pt.price}")

# Search communities by name — uses CommunityType enum for filtering.
for result in client.communityresults.search(query="朝阳", limit=5):
    print(f"  {result.name} (type={result.type}) price={result.price}")
    if result.type == CommunityType.COMMUNITY:
        print(f"    address: {result.address}")

# List rental properties across Beijing — capped iteration.
for rental in client.rentallistings.list(limit=3):
    print(f"  {rental.title} | {rental.price} | {rental.community}")
    print(f"    specs={rental.specs}, tags={rental.tags}")

# Typed error handling: catch CommunityNotFound on a bad query.
try:
    results = client.communityresults.search(query="不存在的地方xyz", limit=1)
    first = results.first()
    if first:
        print(f"Found: {first.name}")
except CommunityNotFound as exc:
    print(f"Community not found: {exc.query}")

# List agents with company info.
for agent in client.agents.list(limit=3):
    print(f"  {agent.name} @ {agent.company}, tags={agent.tags}")

print("exercised: priceindexes.get / communityresults.search / rentallistings.list / agents.list")
All endpoints · 6 totalmissing one? ·

Search second-hand property listings in Beijing.

Input
ParamTypeDescription
pageintegerPage number
districtstringDistrict filter path segment
Response
{
  "type": "object",
  "fields": {
    "page": "string",
    "listings": "array"
  },
  "sample": {
    "data": {
      "page": "1",
      "listings": []
    },
    "status": "success"
  }
}

About the Anjuke API

Listings and Rentals

The search_second_hand_listings endpoint accepts an optional page integer and a district path segment to filter results by area. The search_rental_listings endpoint returns up to 60 objects per page, each carrying an id, title, specs (rooms, area, floor), community, address, tags, price, and a direct url. District filtering uses pinyin strings such as chaoyang, haidian, or changping. Note that district-filtered requests and pagination beyond page 1 can encounter antibot restrictions.

Price Index and Listing Detail

get_beijing_house_price_index takes no inputs and returns a data object containing priceInfo (current average price per square meter, monthly and yearly change percentages), priceTrend arrays for daily, weekly, and monthly history, xinfangPriceInfo for new housing, and evaluateInfo. A status field of '0' indicates a successful response. To retrieve specifics for a known property, get_second_hand_listing_detail accepts a listing id (e.g. S717424612) and returns full listing detail.

Community Search and Agents

search_listings_by_community accepts a Chinese-character query string and returns an array of results, each with id, name, type (1=district, 2=sub-area, 3=subway station, 4=community), areaId, areaName, price (average per square meter), and address. This endpoint doubles as an autocomplete for community names. The search_agents endpoint returns a list of agent objects with name, company, tags, and url — no input parameters required.

Reliability & maintenanceVerified

The Anjuke API is a managed, monitored endpoint for beijing.anjuke.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when beijing.anjuke.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official beijing.anjuke.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
4d ago
Latest check
4/4 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Track Beijing's average housing price per square meter over time using daily and monthly arrays from the price index endpoint.
  • Build a district-level rental listing feed for Chaoyang or Haidian using the district filter in search_rental_listings.
  • Look up a specific second-hand property by ID to retrieve full listing details for a property comparison tool.
  • Autocomplete community name input in a property search UI using search_listings_by_community with Chinese-character queries.
  • Display agent directories with company affiliations and specialty tags pulled from the search_agents endpoint.
  • Monitor new housing vs. second-hand price divergence using xinfangPriceInfo alongside priceInfo from the price index.
  • Filter second-hand listings by Beijing sub-district and paginate results for a market analysis pipeline.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does Anjuke have an official developer API?+
Anjuke does not publish a public developer API or documentation for third-party access. This Parse API provides structured access to Beijing property data from the platform.
What does search_listings_by_community return, and how does the type field work?+
The endpoint returns an array of matching results, each with an id, name, price (average per square meter), address, areaId, and areaName. The type field distinguishes result categories: 1 is a district area, 2 is a sub-area, 3 is a subway station, and 4 is a specific residential community. The query input must be in Chinese characters.
Are there known limitations with district filtering or pagination on rental listings?+
Yes. The search_rental_listings endpoint notes that district-filtered requests and requests for pages beyond page 1 may be subject to antibot restrictions, which can result in incomplete or blocked responses. Testing with citywide (no district) requests on page 1 is the most reliable path.
Does the API cover new-construction (xinfang) property listings, not just second-hand and rentals?+
New-construction listing pages are not currently covered. The API returns xinfangPriceInfo (new housing price data) inside the price index endpoint, but there is no endpoint for browsing individual new-construction listings. You can fork this API on Parse and revise it to add a new-construction listing search endpoint.
Can I retrieve price history for a specific community rather than the whole Beijing market?+
Community-level price history is not currently returned. The get_beijing_house_price_index endpoint covers the citywide market, and search_listings_by_community returns a community's current average price per square meter but no historical trend arrays. You can fork this API on Parse and revise it to add a community-level price trend endpoint.
Page content last updated . Spec covers 6 endpoints from beijing.anjuke.com.
Related APIs in Real EstateSee all →
sh.centanet.com API
Search and browse Shanghai real estate listings across second-hand homes, rentals, and new developments with detailed community information and geographic filtering. Access comprehensive property details, community profiles, and neighborhood data to find your ideal home in Shanghai.
58.com Housing API
Access real-time housing market data from 58.com (58同城), China's largest classifieds platform. Search house price trends across 31+ major Chinese cities at city, district, and neighborhood levels, and browse hot new property developments with prices, floor plans, and location details.
inberlinwohnen.de API
Search and browse affordable apartment listings from Berlin's state-owned housing companies, view detailed property information, and access company profiles and tenant guides. Find your next home in Berlin with comprehensive data on available rentals and housing provider information in one place.
rew.ca API
Search rental and for-sale properties across Canada, get detailed listing information, explore neighbourhoods, and find real estate agents in your area. Access property details, agent profiles, and neighbourhood data all in one place.
zh.airbnb.com API
Search for Airbnb accommodations and retrieve detailed information including property descriptions, guest reviews, availability calendars, and experience listings from the Chinese Airbnb platform. View comprehensive stay options with real-time availability data and verified guest feedback to help plan your next booking.
housing.com API
Search and retrieve real estate listings on Housing.com. Browse properties for sale, rent, plots, and commercial spaces across major Indian cities with filtering by locality and property type.
batdongsan.com.vn API
Search and browse property listings for sale or rent across Vietnam's largest real estate marketplace, view detailed property information, explore development projects, and stay updated with the latest real estate news. Access comprehensive real estate data including property specifics, project details, and market insights all in one place.
realestateview.com.au API
Search and explore rental property listings across Australia with detailed information including photos, property types, agent details, and nearby listings. Find available rentals by location, compare properties, and discover similar listings in your area of interest.