# Xianyu Scraper - Goofish Listing Details by URL or ID (`scrapewise/xianyu-listing-scraper`) Actor

Scrape Xianyu (Goofish, 闲鱼) listings by link or item ID, no login: title, description, price and original price, condition, views, wants, favorites, sold count, category, attributes, tags, location, all photos, variants and dates. Optional English translation. Error rows are free.

- **URL**: https://apify.com/scrapewise/xianyu-listing-scraper.md
- **Developed by:** [Scrapewise Data](https://apify.com/scrapewise) (community)
- **Categories:** E-commerce, Lead generation
- **Features:** Limited permissions
- **Stats:** 14 total users, 13 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.13 / 1,000 listing delivereds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Xianyu Scraper: Goofish listing details, price, views and wants by URL or ID

This Xianyu scraper opens **any Xianyu (Goofish, 闲鱼) listing you give it** and returns its full details as one clean
row, with no account and no login. Paste listing links or item IDs and get the title, description, **price and original
price, condition, views, wants, favorites and sold count**, category, attributes, tags, location, every photo, variants
and dates.

Xianyu is China's largest second-hand marketplace, run by Alibaba. Use this Actor to track the price and status of
listings you follow, check how much interest an item gets (views and "wants"), enrich a list of item IDs you collected
elsewhere, research resale prices for a product, or feed listing data to a sourcing or reselling workflow. An optional
**English translation** (or 11 other languages) is added next to the Chinese text, so you can read and filter listings
without knowing Chinese.

### At a glance

| What | Price |
|---|---|
| Listing delivered | **US$ 1.49 per 1,000 listings** (US$ 0.00149 each) |
| Run start | US$ 0.005 per run |
| Translation, variants | included, no extra charge |

- 100 listings = **US$ 0.15** + US$ 0.005 per run. 1,000 listings = **US$ 1.49**.
- Error rows (invalid link, deleted listing, listing not opened) and duplicates are **never charged**.
- A spending limit set on the run stops it cleanly with everything delivered so far.
- Proxy traffic is included in the price. No Xianyu account, cookie or app needed.

### Quick start

```json
{
  "startUrls": [
    "https://www.goofish.com/item?id=1050621066145",
    "https://www.goofish.com/item?id=1041866825923"
  ]
}
```

With English translation:

```json
{
  "startUrls": ["1050621066145", "1041866825923", "1049219271007"],
  "translateTo": "en"
}
```

Leave the input empty to see 3 example listings.

### Input

| Field | Type | What it does |
|---|---|---|
| `startUrls` | list of strings | Listings to open, one per line. Accepts `goofish.com/item?id=...` links, `h5.m.goofish.com` and `2.taobao.com` item links, share links (`m.tb.cn`) and plain numeric item IDs. Duplicates are opened once. Also reads `urls`, `itemUrls` or `itemIds`. |
| `maxItems` | integer | Cap for the listings found with `discoverListings` (default 20). Links you paste are always all opened. |
| `discoverListings` | boolean | Also returns listings from Xianyu's public recommendation feed, what a new visitor sees on the home page. Good for sampling what is being sold right now. It does not search by keyword. |
| `includeVariants` | boolean | Adds the variants (SKU name, price, stock) when the seller set them. On by default. |
| `translateTo` | string | Adds a translated copy of the Chinese text: `en`, `es`, `pt`, `fr`, `de`, `ru`, `ja`, `ko`, `vi`, `id`, `ar`, `tr`. Empty = off. |
| `proxyConfiguration` | object | Apify Proxy, on by default. No need to change it. |

### Output

One row per listing. Prices are in Chinese yuan (CNY).

| Field | Example | Meaning |
|---|---|---|
| `itemId` | `1050621066145` | Xianyu item ID |
| `url` | `https://www.goofish.com/item?id=1050621066145` | Listing page |
| `title` | `倩碧粉水 倩碧水嫩保湿柔肤水` | Listing title |
| `description` | full text | Seller's description (personal contact details are removed) |
| `price` | `55` | Current price in CNY |
| `originalPrice` | `200` | "Original" price the seller shows, when set |
| `priceMin`, `priceMax` | numbers | Price range when the listing has variants with different prices |
| `isAuction`, `currentBid`, `minimumBid` | `false` | Auction listings and their bids |
| `freeShipping`, `shippingFee` | `false`, `5` | Shipping terms |
| `status`, `statusText` | `online`, `在线` | `online`, `sold`, `offline`, `reserved`, `in_transaction`, `deleted` |
| `conditionLevel`, `condition` | `9`, `like new` | Condition scale from 10 (brand new) down |
| `quantity` | `4` | Units available |
| `soldCount` | `0` | Units sold |
| `views` | `59` | Times the listing was viewed |
| `wants` | `2` | People who tapped "I want" (想要) |
| `favorites` | `1` | Times saved |
| `category`, `categoryId`, `taobaoCategoryId` | `化妆水`, `50025435`, `50011978` | Xianyu category and the matching Taobao category |
| `attributes` | `[{"name": "品牌", "value": "Clinique/倩碧"}]` | Structured attributes (brand, model, size, age...) |
| `tags` | `["包邮"]` | Badges shown on the listing (free shipping, coin discount...) |
| `province`, `city`, `district` | `天津`, `天津`, `河西区` | Where the item is |
| `imageUrls`, `imageCount`, `mainImageUrl` | links | Every photo of the listing (links only) |
| `variants` | `[{"skuId", "name", "price", "quantity"}]` | SKU list when the seller set variants, with `includeVariants` |
| `isResale` | `false` | Item marked as resale |
| `createdAt`, `updatedAt` | ISO 8601, UTC | Posted and last edited |
| `*Translated`, `translatedTo` | `titleTranslated`... | With `translateTo` only |
| `input`, `scrapedAt` | | The line of the input this row came from, and when it was read |
| `errorCode`, `error` | `null` | Filled only on error rows (never charged) |

#### Example row

From a run on 15 Nov 2026 (shortened):

```json
{
  "input": "https://www.goofish.com/item?id=1050621066145",
  "itemId": "1050621066145",
  "url": "https://www.goofish.com/item?id=1050621066145",
  "title": "倩碧粉水 倩碧水嫩保湿柔肤水",
  "description": "倩碧粉水 倩碧水嫩保湿柔肤水\n100ml 一瓶包邮非偏远\n保质期到29年1月 日期新鲜\n400ml 205一瓶包邮非偏远 ...",
  "price": 55,
  "currency": "CNY",
  "freeShipping": false,
  "shippingFee": 5,
  "status": "online",
  "conditionLevel": 9,
  "condition": "like new",
  "quantity": 4,
  "soldCount": 0,
  "views": 59,
  "wants": 2,
  "favorites": 1,
  "category": "化妆水",
  "attributes": [
    {"name": "品牌", "value": "Clinique/倩碧"},
    {"name": "剩余保质期", "value": "1年以上"},
    {"name": "购买渠道", "value": "品牌官网"}
  ],
  "province": "天津",
  "city": "天津",
  "district": "河西区",
  "imageCount": 3,
  "createdAt": "2026-05-14T02:59:39Z",
  "updatedAt": "2026-11-15T04:03:37Z",
  "errorCode": null
}
```

With `translateTo: "en"`, a home repair listing from the same day came back with
`"categoryTranslated": "home repair"` and `"tagsTranslated": ["Free shipping"]` next to the Chinese originals.

### Tracking prices and interest over time

Run the same list of item IDs on a schedule and compare `price`, `status`, `views` and `wants` between runs. A falling
price with rising wants is a listing about to sell; `status` turning `sold` closes it. Each run only charges the
listings it delivers, so a daily check of 200 listings costs about US$ 0.61 per day.

### Errors you may see

Error rows are written to the dataset so you know what happened to each line of your input, and they are **never
charged**.

| `errorCode` | Meaning | What to do |
|---|---|---|
| `INVALID_INPUT` | The line is not a Xianyu listing link or ID | Paste a `goofish.com/item?id=...` link or the numeric ID |
| `NOT_FOUND` | The listing was deleted or never existed | Nothing: the seller removed it |
| `BLOCKED` | Xianyu did not open the listing in this run | Run those IDs again a few minutes later |
| `UNEXPECTED` | Any other problem | Run again; if it repeats, open an issue with the item ID |

### Integrations, scheduling and AI agents

- **Schedule** the same listings daily in [Apify schedules](https://docs.apify.com/platform/schedules) to follow price,
  status and interest.
- **Export** as JSON, CSV, Excel or XML, or read the dataset from the [Apify API](https://docs.apify.com/api/v2).
- **Connect** it to Make, n8n, Zapier or Google Sheets through
  [Apify integrations](https://docs.apify.com/platform/integrations).
- **AI agents:** call it as a tool through the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp)
  in Claude, ChatGPT, Cursor or any MCP client, for example "get these 30 Xianyu listings in English and tell me which
  ones are under 100 yuan and still online".

### FAQ

**Do I need a Xianyu or Taobao account?**
No. The Actor reads public listing pages without logging in.

**Can it search Xianyu by keyword?**
Not at the moment: this Actor opens listings you already have (links or IDs). `discoverListings` adds a sample of the
public recommendation feed, but it does not follow a keyword.

**What about the seller?**
Seller profiles are not part of the output. Phone numbers, e-mails and messaging IDs written in a description are
replaced by `[contact removed]`.

**Why are some photos `.heic` links?**
That is how Xianyu names them. The link itself serves a normal JPEG to browsers and image tools.

**Which currency?**
Chinese yuan (CNY), as shown on Xianyu.

**Can I translate to another language?**
Yes: `en`, `es`, `pt`, `fr`, `de`, `ru`, `ja`, `ko`, `vi`, `id`, `ar` or `tr`. Translation is automatic, so slang and
abbreviations can come out literal; the original Chinese always stays in the row.

### Limitations

- Listings only: no keyword search and no seller profiles.
- Counters (views, wants, favorites) are the numbers Xianyu shows at the moment of the run.
- Some listings hide the location or the condition; those fields come back empty.
- A listing that Xianyu does not open in one run comes back as a free `BLOCKED` row; run it again later.

### Changelog

- **15 Nov 2026**: first version. Listing details by link, share link or ID; variants; optional translation into 12
  languages; discovery from the public recommendation feed.

# Actor input Schema

## `startUrls` (type: `array`):

Xianyu listings to open, one per line: a goofish.com/item?id=... link, an h5.m.goofish.com or 2.taobao.com item link, a share link (m.tb.cn) or just the numeric item ID. Each listing comes back as one row with its full details. Duplicates are opened once. Also accepts 'urls', 'itemUrls' or 'itemIds'. Leave empty to see 3 example listings.

## `maxItems` (type: `integer`):

Maximum number of listings in the run when 'Discover listings' is on. Links and IDs you paste are always all opened. You pay only for listings delivered.

## `discoverListings` (type: `boolean`):

Also returns listings from Xianyu's public recommendation feed (what a new visitor sees on the app's home page), up to 'Max listings'. Useful to sample what is being sold right now. It does not search by keyword.

## `includeVariants` (type: `boolean`):

Adds the listing's variants (SKU name, price and stock) when the seller set them. No extra charge.

## `translateTo` (type: `string`):

Adds an English (or other language) version of the Chinese text next to the original, so you can read and filter Xianyu listings without knowing Chinese. Translated: title, description, category, attribute names and values, tags and variant names. New fields end in 'Translated' (titleTranslated, descriptionTranslated, attributes\[].valueTranslated...) plus translatedTo with the language code; the original Chinese fields are never changed. Machine translation, so slang can come out literal. Free during the launch. Off (default): output and price exactly as without this option. 'targetLanguage' and 'translateToEnglish': true also work.

## `proxyConfiguration` (type: `object`):

Apify Proxy is on by default and the run changes connection by itself when Xianyu slows it down. You do not need to change this.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.goofish.com/item?id=1050621066145",
    "https://www.goofish.com/item?id=1041866825923"
  ],
  "maxItems": 20,
  "discoverListings": false,
  "includeVariants": true,
  "translateTo": "",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

No description

## `resultsCsv` (type: `string`):

No description

# 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 = {
    "startUrls": [
        "https://www.goofish.com/item?id=1050621066145",
        "https://www.goofish.com/item?id=1041866825923"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapewise/xianyu-listing-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 = {
    "startUrls": [
        "https://www.goofish.com/item?id=1050621066145",
        "https://www.goofish.com/item?id=1041866825923",
    ],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("scrapewise/xianyu-listing-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 '{
  "startUrls": [
    "https://www.goofish.com/item?id=1050621066145",
    "https://www.goofish.com/item?id=1041866825923"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call scrapewise/xianyu-listing-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapewise/xianyu-listing-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/a3RkeIssR7GYhSsYO/builds/AA8KXPSHhUvKxspvR/openapi.json
