# Goofish Xianyu Scraper (Item & Seller Links) (`automation-lab/goofish-xianyu-scraper`) Actor

Turn Goofish (Xianyu, 闲鱼) item and seller links into listing rows: price in CNY, condition, want and view counts, location, seller metrics and photos. No keyword search. Pay per listing.

- **URL**: https://apify.com/automation-lab/goofish-xianyu-scraper.md
- **Developed by:** [Automation Lab](https://apify.com/automation-lab) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 0 monthly users, 56.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.15 / 1,000 listings

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

## Goofish Xianyu Scraper

Turn **Goofish (闲鱼, Xianyu, Idlefish) item and seller links** into a clean table: one row per listing with the asking and original price in yuan, condition, want, view and saved counts, status, listing date, city and province, category, specs, every photo, and the seller's public profile metrics.

This Actor works from links you already have. **There is no keyword search.** Use it to watch known items and known sellers.

| | |
|---|---|
| **Input** | Goofish item links or IDs, and seller profile links or IDs |
| **Output** | One row per listing, plus a free note row for any dead or invalid link |
| **Modes** | Full listing rows, or a cheaper shelf-only mode for seller links |
| **Account or cookies** | None |
| **Limit** | Up to 5,000 listings per run |

### 🔍 What does Goofish Xianyu Scraper do?

Goofish is Alibaba's second-hand marketplace in China, also known as Xianyu or Idlefish. Listings there change price and sell out quickly, and the site has no export.

Paste item links and seller links. For each item you get a full listing row. For each seller, the Actor walks the shelf and returns every listing up to your limits, either with full detail or as cheaper shelf cards.

A real seller ID comes back on every full row, so you can start from one item and go on to follow that seller.

### 👥 Who is it for?

- **Resale analysts** tracking the asking price and interest on specific items each day.
- **Sourcing teams** following suppliers and their shelves on Xianyu.
- **Price-monitoring teams** comparing second-hand prices against new retail.
- **Brand protection teams** reviewing known sellers' listings and descriptions.
- **Developers** who need Goofish data as JSON in their own pipeline.

If you need to discover items by keyword, this is not the right tool: it only reads the links you give it.

### ✅ Why use it?

- **No login, no cookies.** Nothing to renew and no account at risk.
- **Two depths, two prices.** Pay for full detail only when you need it. Shelf-only rows cost less.
- **Real seller IDs on full rows**, along with the seller's public metrics.
- **Honest failure handling.** A deleted item or unknown seller gives a free note row instead of a silent gap, which matters when you monitor the same links daily.
- **Note rows are free.** Filtered listings are free when the shelf card rules them out. A listing that has to be opened to check a filter is a small Filter check if the filter rejects it.

### 📋 What data can you extract?

| Group | Fields |
|---|---|
| Listing | `itemId`, `url`, `title`, `description`, `status`, `isOnline`, `listedAt` |
| Price | `price`, `originalPrice`, `currency`, `shippingFee`, `freeShipping` |
| Condition | `condition`, `conditionLevel` (10-point scale) |
| Interest | `wantCount`, `viewCount`, `collectCount`, `soldCount`, `quantity` |
| Location | `city`, `province` |
| Catalog | `categoryId`, `category`, `brand`, `specs` |
| Photos | `imageUrls`, `imageCount` |
| Seller | `sellerId`, `sellerUrl`, `sellerNick`, `sellerGoodReviewRate`, `sellerReplyRate24h`, `sellerReplyTime`, `sellerLastSeen`, `sellerSince`, `sellerRegisteredDays`, `sellerItemCount`, `sellerSoldCount`, `sellerGoodReviews`, `sellerBadReviews`, `sellerZhimaVerified` |
| Seller profile | `sellerDisplayName`, `sellerIpProvince`, `sellerLevel`, `sellerPraiseRate`, `sellerReviewCount`, `sellerFollowers`, `sellerProfileItemCount`, `sellerCreditLabel`, `sellerRealNameVerified` |
| Run info | `rowType`, `foundViaSeller`, `scrapedAt`, and on notes `noteKind`, `input`, `message` |

Shelf rows carry `title`, `price`, `originalPrice`, `wantCount`, `freeShipping`, `status`, `categoryId`, photos and the seller's profile metrics. They have no description, views, condition, location or listing date, because Goofish does not put those on shelf cards.

`province` is the seller's IP province from the public profile, so it describes the seller rather than the item.

### How much does it cost to scrape Goofish listings?

Pay per event. You are charged for listings delivered and for listings opened to check a filter that rejects them.

| Event | Free | Starter | Scale | Business |
|---|---|---|---|---|
| Start, once per run | $0.01 | $0.01 | $0.01 | $0.01 |
| Full listing | $0.002691 | $0.002691 | $0.00242 | $0.00215 |
| Shelf listing | $0.001323 | $0.001323 | $0.00119 | $0.00106 |
| Filter check, one listing opened and rejected by any filter | $0.001917 | $0.001917 | $0.00173 | $0.00153 |

Examples on the Free plan:

- Watching 100 items daily: about **$0.28 per day**.
- Reading 1,000 full listings: about **$2.70**.
- Reading 1,000 shelf listings from known sellers: about **$1.33**.

Free of charge: note rows, duplicates, listings a filter rules out from the shelf card, and a run that reads no shelf and delivers nothing. Item links have no shelf card, so every filter there, price included, opens the listing and charges a Filter check if it rejects. A filtered seller scan that matches nothing pays the start fee, plus any filter checks. On very long seller lists, each 25 shelf pages past the first 300 in a filtered run also count as one filter check. Set **Maximum charge per run** in the run options to cap your spend.

### 🚀 How to scrape Goofish listings

1. Open [Goofish Xianyu Scraper](https://apify.com/automation-lab/goofish-xianyu-scraper) and click **Try for free**.
2. Paste **Item links**, **Seller links**, or both, one per line.
3. Set **Maximum listings**, and optionally **Maximum listings per seller**.
4. Turn on **Shelf-only mode** if shelf cards are enough for seller links.
5. Add filters if you want a narrower set.
6. Click **Start**, then download the dataset as JSON, CSV or Excel.

### ⚙️ Input

| Field | Default | Description |
|---|---|---|
| `itemUrls` | none | Listing links or bare item IDs. Each one returns a full row. |
| `sellerUrls` | none | Seller profile links or bare user IDs. The shelf is read up to the limits. |
| `sellerShelfOnly` | `false` | Seller links return shelf cards only. Item links always stay full. |
| `maxItems` | `100` | Maximum listings in the whole run, from 1 to 5,000. Item links are read first. Notes do not count. |
| `maxItemsPerSeller` | none | Optional cap for each seller link. |
| `includeDescription` | `true` | Keep the seller's full listing text. |
| `includeSellerProfile` | `true` | Add public name, IP province, level and followers. One extra request per seller. |
| `minPrice`, `maxPrice` | none | Keep listings in this yuan price band. Seller cards clearly outside it are free. Item links, cards close to the lowest price and shortened prices are opened, and each rejected one is a filter check. |
| `listedWithinDays` | none | Full rows only. Keep listings created within this many days. Older listings are skipped for free where the item ID shows their age. |
| `minCondition` | none | Full rows only. Keep listings at or above this condition, 1 to 10. Every listing has to be opened, so each rejected one is a filter check. |
| `freeShippingOnly` | `false` | Keep only listings marked as shipped free. On seller links, cards showing no free shipping are skipped for free, and cards marked "free shipping or pickup" are opened, so a rejected one is a filter check. Shelf-only mode opens nothing, so it leaves those cards out (about 12% of free-shipping listings in our test). |

```json
{
  "itemUrls": ["https://www.goofish.com/item?id=765700733044", "731288704252"],
  "sellerUrls": ["https://www.goofish.com/personal?userId=666798512"],
  "maxItems": 100,
  "maxItemsPerSeller": 50,
  "includeDescription": true
}
```

### 📦 Output example

A full listing row, shortened:

```json
{
  "rowType": "listing",
  "itemId": "765700733044",
  "url": "https://www.goofish.com/item?id=765700733044",
  "title": "迪奥桀骜男士活力眼部精华15ml",
  "price": 340,
  "originalPrice": null,
  "currency": "CNY",
  "shippingFee": 7,
  "freeShipping": false,
  "condition": "全新未拆封",
  "conditionLevel": 10,
  "wantCount": 2,
  "viewCount": 202,
  "collectCount": 2,
  "status": "online",
  "listedAt": "2024-01-29T08:01:35.000Z",
  "city": "深圳",
  "province": "广东省",
  "category": "男士眼部精华",
  "brand": "Dior/迪奥",
  "specs": { "品牌": "Dior/迪奥", "成色": "全新未拆封" },
  "imageCount": 7,
  "sellerId": "666798512",
  "sellerUrl": "https://www.goofish.com/personal?userId=666798512",
  "sellerGoodReviewRate": 100,
  "sellerLevel": "L4",
  "sellerFollowers": 132,
  "scrapedAt": "2026-11-08T07:25:03.087Z"
}
```

A free note row:

```json
{
  "rowType": "note",
  "noteKind": "not_found",
  "input": "100000000000",
  "itemId": "100000000000",
  "sellerId": null,
  "message": "您要看的宝贝不存在或已被删除啦!",
  "scrapedAt": "2026-11-08T07:26:12.000Z"
}
```

### 💡 Tips and limits

- **Filter on `rowType`** in your pipeline: `listing` and `shelf_listing` are data, `note` is a message.
- Item links are read first, then sellers in the order you give them, until **Maximum listings** is reached.
- Price filters on seller links are checked on the shelf card for free when it is clearly out of band. Item links have no card, so they are opened. A shortened price such as `1.2万`, or a card within 20% below your lowest price, is opened too and checked at its exact value. Each opened listing the filter rejects is a filter check.
- Free shipping is read from the shelf card. In 242 listings from 2013 to 2026 checked against the listing page, a card showing no free shipping was never a free-shipping listing (0 of 110). Cards marked "free shipping or pickup" were only sometimes free, so those are opened. Shelf-only mode cannot open a listing, so it leaves those cards out with no note: 12 of the 97 free-shipping listings in that test, about 12%. Use full mode if you need them.
- Date filters use item IDs, which rise with listing time, so most old listings are ruled out for free. Condition filters must open every listing, so they cost the most.
- Shelf rows show the price from the card. At 10,000 yuan and up Goofish rounds it there, for example `1.2万` becomes `12000`, and a group-bargain listing (小刀价) can show up to 15% below its asking price. Full rows have the exact asking price. Goofish shows at most 1,000 listings per seller shelf; a free `shelf_limit` note says when a seller has more.
- With filters on, several sellers are read at once, so a daily watch of a seller list finishes quickly.
- A seller scan stops after many non-matching listings and leaves a `filter_scan_limit` note, so a filter that matches nothing cannot run on.
- Goofish counts such as wants and views change often. Schedule a daily run to follow them.
- Short share links (`m.tb.cn`) are not supported. Use the full listing link or the item ID.

### 🔗 Integrations

- **Google Sheets or Excel**: a daily schedule and a sheet of tracked prices per `itemId`.
- **Slack or email via Make, Zapier or n8n**: alert when `price` falls or `status` changes.
- **Webhooks**: pass finished runs into your warehouse.
- **Scheduled seller watch**: run shelf-only mode daily, then compare `itemId` sets to spot new listings.

### 🧑‍💻 Using the API

#### cURL

```bash
curl -X POST "https://api.apify.com/v2/acts/automation-lab~goofish-xianyu-scraper/run-sync-get-dataset-items?token=<YOUR_API_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"itemUrls":["765700733044"],"maxItems":10}'
```

#### JavaScript

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_API_TOKEN>' });
const run = await client.actor('automation-lab/goofish-xianyu-scraper').call({
    sellerUrls: ['https://www.goofish.com/personal?userId=666798512'],
    sellerShelfOnly: true,
    maxItems: 100,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient('<YOUR_API_TOKEN>')
run = client.actor('automation-lab/goofish-xianyu-scraper').call(run_input={
    'itemUrls': ['765700733044'],
    'maxItems': 10,
})
for item in client.dataset(run['defaultDatasetId']).iterate_items():
    print(item)
```

### 🤖 Use with AI agents via MCP

Claude Code:

```bash
claude mcp add --transport http apify \
  "https://mcp.apify.com?tools=automation-lab/goofish-xianyu-scraper"
```

#### Claude Desktop / VS Code / Cursor setup

Add this to your MCP config (Claude Desktop on macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`):

```json
{
  "mcpServers": {
    "apify": {
      "url": "https://mcp.apify.com?tools=automation-lab/goofish-xianyu-scraper"
    }
  }
}
```

Example prompts:

- "Get the current price and want count for these Goofish item links."
- "List this Xianyu seller's shelf and show the 20 listings with the most wants."

Selecting this Actor also adds the run and dataset tools. Start one run, follow that same run until it finishes, then read the dataset with an explicit `limit`, `offset` and `fields`.

### ⚖️ Is it legal to scrape Goofish?

This Actor reads pages and data that Goofish shows to any visitor without a login. It does not log in or read private messages.

You are responsible for using the data lawfully. Listings and profiles can contain personal data, so laws such as China's PIPL and the GDPR may apply to what you store and how you use it. The Actor leaves out seller introductions, avatars and map coordinates to limit personal data. Check Goofish's terms for your use case. This Actor is not affiliated with Goofish, Xianyu or Alibaba.

### 🛟 Error reporting

Failed operations report sanitized diagnostic input, actor/build/run IDs and exceptions to our private GlitchTip service. Secret fields and URL query strings are removed. Reports are kept for 30 days.

### ❓ FAQ

**Can it search by keyword?**
No. Goofish does not let guests use its search, so this Actor only reads item and seller links.

**Why is `sellerNick` different from `sellerDisplayName` sometimes?**
With **Include seller profile metrics** off, `sellerNick` is the masked name Goofish shows on a listing. With it on, both show the public profile name.

**Why is `originalPrice` often empty?**
Sellers only sometimes set a "was" price. When Goofish shows none, the field is null.

**Why did I get a `fetch_failed` note?**
Goofish blocked every retry for that link. The note is free. Run again for that link. If many links fail, lower the volume and try again later.

**Why are there fewer rows than I asked for?**
The status message says why. Usually the seller's shelf ended, filters removed listings, or the spending limit was reached.

**Does it handle sold items?**
A listing Goofish still shows comes back with its `status`. A deleted listing returns a free `not_found` note.

### 🔁 Related Actors

- [1688 Scraper](https://apify.com/automation-lab/1688-scraper) for wholesale product prices from China.
- [Taobao Overseas Public Catalogue](https://apify.com/automation-lab/taobao-overseas-public-catalogue-products-and-prices) for new-goods prices from the same ecosystem.

### 📝 Changelog

See the **Changelog** tab.

# Changelog

This Actor's version history is a separate document: https://apify.com/automation-lab/goofish-xianyu-scraper/changelog.md

# Actor input Schema

## `itemUrls` (type: `array`):

Goofish listing links or bare item IDs, one per line, like https://www.goofish.com/item?id=1080166744321. Each one returns a full listing row. There is no keyword search: this Actor only reads links you already have.

## `sellerUrls` (type: `array`):

Goofish seller profile links or bare user IDs, one per line, like https://www.goofish.com/personal?userId=666798512. Every listing on the seller's shelf is read, up to the limits below.

## `sellerShelfOnly` (type: `boolean`):

Faster and cheaper. Seller links return shelf cards only: title, price, original price, want count, free shipping and photos, without description, views, location, condition or listing date. Item links always return full rows.

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

Stop after this many listings in the whole run. Item links are read first, then sellers. Free note rows do not count.

## `maxItemsPerSeller` (type: `integer`):

Optional cap per seller link, so one large shelf cannot use the whole run.

## `includeDescription` (type: `boolean`):

Keep the seller's full listing text. Turn off for a narrower table.

## `includeSellerProfile` (type: `boolean`):

Add the seller's public name, IP province, level, praise rate, review count and followers. One extra request per seller.

## `minPrice` (type: `number`):

Optional. Keep listings asking at least this much. On seller links, cards clearly below it are skipped for free. Item links, and cards close to the limit or with a shortened price such as 1.2万, must be opened, so each one rejected is a Filter check.

## `maxPrice` (type: `number`):

Optional. Keep listings asking at most this much. Charged the same way as Lowest price.

## `listedWithinDays` (type: `integer`):

Optional. Needs full rows, because shelf cards carry no listing date. Older listings are skipped for free where the item ID shows their age. Seller scans stop after many non-matching listings and say so in a free note.

## `minCondition` (type: `number`):

Optional, full rows only. 10 is brand new (全新), 9.5 is almost new (几乎全新). Listings with no condition, or wording with no grade such as 轻微使用痕迹, are left out.

## `freeShippingOnly` (type: `boolean`):

Optional. Keep only listings Goofish marks as shipped free (包邮). On seller links, cards that show no free shipping are skipped for free. Cards marked "free shipping or pickup" must be opened, so each one rejected is a Filter check. Shelf-only mode opens nothing, so it leaves those cards out: about 12% of free-shipping listings in our test (12 of 97). Item links are always opened.

## Actor input object example

```json
{
  "itemUrls": [
    "https://www.goofish.com/item?id=765700733044"
  ],
  "sellerShelfOnly": false,
  "maxItems": 20,
  "includeDescription": true,
  "includeSellerProfile": true,
  "freeShippingOnly": false
}
```

# Actor output Schema

## `overview` (type: `string`):

Dataset of listing rows: price, condition, want and view counts, location and seller metrics, with free note rows.

# 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 = {
    "itemUrls": [
        "https://www.goofish.com/item?id=765700733044"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("automation-lab/goofish-xianyu-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 = {
    "itemUrls": ["https://www.goofish.com/item?id=765700733044"],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("automation-lab/goofish-xianyu-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 '{
  "itemUrls": [
    "https://www.goofish.com/item?id=765700733044"
  ],
  "maxItems": 20
}' |
apify call automation-lab/goofish-xianyu-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,automation-lab/goofish-xianyu-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/HnKCHDQAF24Xg6ELC/builds/1TTYKWf434SIUUtBw/openapi.json
