# 上海二手房按总价排序: Shanghai Resale Listings Ranked by Price

**Use case:** 

上海二手房按价格排序查询，快速找到最贵或最实惠的房源。This example ranks Shanghai's current resale listings from highest to lowest total price, so the priciest units surface first, with community, total price, unit price and floor area for each. Useful for tracking the top end of the Shanghai resale market or spotting outlier listings without paging through the site.

## Input

```json
{
  "startUrls": [],
  "operation": "resaleHousingList",
  "cityId": "310000",
  "maxPages": 1,
  "maxItems": 10,
  "sortBy": "priceTotal",
  "sortOrder": "desc",
  "monitorMode": "snapshot",
  "includeUnchanged": false,
  "includeOpportunityScore": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

## Output

```json
{
  "listingTitle": {
    "label": "Title",
    "format": "string"
  },
  "communityName": {
    "label": "Community",
    "format": "string"
  },
  "priceTotalDisplay": {
    "label": "Total Price",
    "format": "string"
  },
  "unitPriceDisplay": {
    "label": "Unit Price",
    "format": "string"
  },
  "area": {
    "label": "Area (㎡)",
    "format": "number"
  },
  "bedroomNum": {
    "label": "Beds",
    "format": "number"
  },
  "hallNum": {
    "label": "Halls",
    "format": "number"
  },
  "orientation": {
    "label": "Orientation",
    "format": "string"
  },
  "decoration": {
    "label": "Decoration",
    "format": "string"
  },
  "changeType": {
    "label": "Change",
    "format": "string"
  },
  "opportunityScore": {
    "label": "Opportunity Score",
    "format": "number"
  },
  "listingUrl": {
    "label": "Link",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Lianjia Scraper: Resale Listings, Price, Community](https://apify.com/getascraper/lianjia-real-estate-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/getascraper/lianjia-real-estate-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/getascraper/lianjia-real-estate-scraper.md

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