# Goofish Xianyu Scraper | Category & Seller Listings (`genial_candlestand/goofish-xianyu-listings-scraper`) Actor

Get Goofish / Xianyu (闲鱼) second-hand listings: title, price in CNY, city, want count, images and masked seller nick. Sources: 15 category channels, the home feed, channel URLs, seller shops and item URLs. Optional details: description, views, condition, brand, seller rating. No login.

- **URL**: https://apify.com/genial_candlestand/goofish-xianyu-listings-scraper.md
- **Developed by:** [Flowo](https://apify.com/genial_candlestand) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 10 total users, 1 monthly users, 93.8% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.53 / 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 | Category & Seller Listings

![Goofish Xianyu Scraper | Category & Seller Listings](https://api.apify.com/v2/key-value-stores/Ll7RrWtDkZYOrBvfE/records/goofish-com-product-search-category-listings-banner-61e076ad.png)

Get second-hand listings from Goofish / Xianyu (闲鱼), Alibaba's flea market: listing title, asking price in yuan, city, how many users want it, image links and the seller's masked nickname, one row per listing. Sources are 15 home-page category channels, the recommended home feed, channel page URLs, seller shops and single item URLs. An optional details add-on adds the full description, view and favourite counts, publish time, condition, brand and the seller's rating, reply rate and sold count. No login, cookies or account.

### What does Goofish Xianyu Scraper do?

You pick category channels (for example 摄影摄像 Cameras or 手机数码 Phones & electronics), paste Goofish channel, seller or item URLs, or give numeric seller IDs. The actor pages through each source and saves every listing as a flat row with its source, rank and page. It is made for cross-border resellers and price researchers who watch Chinese second-hand prices, for analysts who track a seller's shop, and for AI agents that need Xianyu listings by category or by seller.

**Keyword search is not offered.** Since 2026-11-12, Goofish answers every search without a login with a login wall. This actor uses only sources that work without an account, and a `/search?q=` URL is rejected with a clear input error.

### How to scrape Goofish (Xianyu) listings

![How Goofish Xianyu Scraper works: Opens an anonymous Goofish API session, without login or cookies; Pages category channels 100 and seller shops 20 listings per request; On a block, retries with a new](https://api.apify.com/v2/key-value-stores/Ll7RrWtDkZYOrBvfE/records/goofish-com-product-search-category-listings-how-4423ceb0.png)

1. Open the actor in Apify Console and go to the **Input** tab.
2. Choose one or more **Category channels**, or add **Start URLs** (channel, seller or item pages), or **Seller IDs**. At least one source is needed.
3. Set **Max listings per source** (default 100, up to 1,000) and, if you like, **Max listings in total**.
4. Optional: tick **Include listing details** and set a **Min price** / **Max price** in CNY.
5. Click **Start**. When the run ends, download the dataset as JSON, CSV, Excel or HTML, or read it through the API.

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

Price per event by Apify plan:

| Event | Free | Bronze | Silver | Gold and above |
|---|---|---|---|---|
| Listing | $1.80 per 1,000 | $1.71 per 1,000 | $1.62 per 1,000 | $1.53 per 1,000 |
| Listing details | $1.50 per 1,000 | $1.425 per 1,000 | $1.35 per 1,000 | $1.275 per 1,000 |
| Actor start | $0.00005 | $0.00005 | $0.00005 | $0.00005 |

A test run with the API example input below returned 200 rows in 14 s.

You pay per listing saved to the dataset (the **Listing** event). The **Listing details** event is an add-on charged only for listings that got details: when you tick Include listing details, and always for item URLs. Duplicates, listings removed by your price filter and listings whose detail request failed (for the details event) are not charged. On top of that there is a small **Actor start** event once per run.

Example costs on the Free plan, the start fee included:

| Scenario | Events | Cost |
|---|---|---|
| Default input: 2 channels × 100 card rows | 200 Listing + 1 start | ≈ $0.36 |
| One channel, 1,000 card rows | 1,000 Listing + 1 start | ≈ $1.80 |
| 2 channels × 50 rows with details | 100 Listing + 100 Listing details + 1 start | ≈ $0.33 |
| A seller shop, ≈ 380 listings with details | 380 Listing + 380 Listing details + 1 start | ≈ $1.25 |

### Input

![Goofish Xianyu Scraper input example: Category channels, Max listings per source, Include listing details](https://api.apify.com/v2/key-value-stores/Ll7RrWtDkZYOrBvfE/records/goofish-com-product-search-category-listings-input-cc062988.png)

| Field | What it does |
|---|---|
| `categories` | Home-page category channels: Phones & electronics (手机数码), Cameras & photography (摄影摄像), Women's fashion (女装穿搭), Brand beauty (大牌美妆), Wardrobe deals (衣橱捡漏), Personal second-hand (个人闲置), Home goods (居家好物), Anime & ACG (二次元), Guitars & instruments (吉他乐器), Motorbikes (机车), Fishing (垂钓), Billiards (台球), Coin collecting (钱币收藏), BJD dolls (BJD娃娃), Vouchers & coupons (省钱卡券), and `home`, the recommended home feed (猜你喜欢, random, about 400 listings at most). |
| `startUrls` | Goofish URLs on www.goofish.com: a channel page `https://www.goofish.com/mach-feeds?machId=166630&publishTimes=2` (`publishTimes` may be left out, the actor looks it up), a seller page `https://www.goofish.com/personal?userId=2216091943263` (lists the shop) or a listing `https://www.goofish.com/item?id=932721428212` (one row, always with details). Search URLs are rejected. |
| `sellerIds` | Numeric seller (user) IDs, e.g. `2216091943263`, the `userId` in a personal URL. The URL itself is accepted too. |
| `maxItemsPerSource` | Limit per channel, channel URL or seller shop, 1–1,000, default 100. No effect on a single item URL. |
| `maxItems` | Limit for the whole run. Empty = no total limit. |
| `includeDetails` | Opens every listing (one extra request each) and adds the detail fields. Default off. |
| `minPrice` / `maxPrice` | Price range in CNY, applied to channel and seller-shop listings, not to item URLs. Min must not be above max. |
| `proxyConfiguration` | Default: Apify datacenter proxy. On a block the actor switches to a new IP and then once to a residential proxy. |

Example input:

```json
{
  "categories": ["163816_1", "164460_1"],
  "maxItemsPerSource": 50,
  "minPrice": 1000,
  "maxPrice": 3000,
  "includeDetails": true
}
```

### What data can you extract from Goofish?

![Goofish Xianyu Scraper output example: Image, Title, Price (CNY), City, Wants](https://api.apify.com/v2/key-value-stores/Ll7RrWtDkZYOrBvfE/records/goofish-com-product-search-category-listings-output-7388464c.png)

| Field | Meaning |
|---|---|
| `id`, `url` | Listing ID and its page on goofish.com |
| `title` | Listing title as the seller wrote it |
| `price`, `originalPrice`, `currency` | Asking price and the original (new) price the seller quotes, in yuan; `currency` is always `CNY` |
| `imageUrl`, `images` | Main image and all image URLs (alicdn, often `.heic` or `.jpg`) |
| `wantCount` | How many users clicked "I want" (人想要) |
| `categoryId` | Numeric Goofish category ID |
| `tags` | Card labels such as brand or condition |
| `freeShipping`, `isAuction`, `hasVideo` | Free shipping (包邮), auction listing, has a video |
| `city` | City of the listing |
| `sellerNick`, `sellerId`, `sellerUrl` | Seller nickname (masked by Goofish), seller ID and seller page |
| `sourceType`, `sourceId`, `channelTitle` | Where the row came from: `channel`, `seller` or `item`, the channel/seller/item ID, and the Chinese channel title |
| `position`, `page` | 1-based rank in the source stream and the request number |
| `scrapedAt` | When the row was extracted |

**Detail fields** (with Include listing details, and on item-URL rows): `description`, `viewCount`, `favoriteCount`, `publishedAt`, `condition` (e.g. 全新), `brand`, `model`, `specs` (all item properties as name → value), `status` (e.g. 在线), `shippingFee`, `quantity`, `sellerId`, `sellerCity`, `sellerGoodRate` (percent), `sellerReplyRate24h` (percent), `sellerReplyTime`, `sellerItemCount`, `sellerSoldCount`, `sellerRegisteredAt`, `sellerZhimaLevel` (Sesame credit text) and `sellerLastSeen`.

A real row from the Cameras channel without details (2 of 3 image URLs left out; the detail fields are all `null` and shortened here):

```json
{
  "id": "928992009346",
  "url": "https://www.goofish.com/item?id=928992009346",
  "title": "佳能5d2，配两块电池，一块cf存储卡，一个50mm，1.4 的镜头，功能完好",
  "price": 1680,
  "originalPrice": null,
  "currency": "CNY",
  "imageUrl": "http://img.alicdn.com/bao/uploaded/i4/O1CN01KtZAUK1ESLgInxsMV_!!4611686018427382350-0-fleamarket.jpg",
  "images": ["http://img.alicdn.com/bao/uploaded/i4/O1CN01KtZAUK1ESLgInxsMV_!!4611686018427382350-0-fleamarket.jpg"],
  "wantCount": 5,
  "categoryId": 50025387,
  "tags": [],
  "freeShipping": true,
  "isAuction": false,
  "hasVideo": false,
  "city": "广州",
  "sellerNick": "8***x",
  "sellerId": null,
  "sellerUrl": null,
  "sourceType": "channel",
  "sourceId": "164460_1",
  "channelTitle": "摄影摄像",
  "position": 1,
  "page": 1,
  "description": null,
  "viewCount": null,
  "sellerGoodRate": null,
  "scrapedAt": "2026-11-13T00:29:58.132Z"
}
```

### Use cases

- **Category price watch:** pull 300 listings from the Cameras channel and compare asking prices, original prices and want counts.
- **Price band research:** collect phones or cameras priced ¥1,000–3,000 with condition, brand, model and view counts.
- **Seller shop export:** save the newest listings of one seller with the seller's rating, reply rate and sold count.
- **Item lookup:** get the full details of a few listings you already have links for.
- **Promotional channels:** list the items of a Goofish campaign or banner channel page by its `mach-feeds` URL.

### Limitations

- **No keyword search**, and no sort, region or publish-date filters: on Goofish they exist only in the search that needs a login.
- **Channels are curated recommendation streams**, not full category catalogues. A channel gives up to about 1,000 different listings; order and content change between runs. The home feed is random, about 400 listings at most.
- **Seller shops** show at most about 19 pages of 20, i.e. the ≈ 380 newest listings, whatever the shop size.
- **Seller nicknames are masked** by Goofish (e.g. `8***x`). The seller ID comes only on seller-shop rows or with details.
- **No province, district, category name or item sold count**: the source does not give them without login. You get `categoryId` and the seller's `sellerSoldCount`.
- **Fields that can be empty (`null`):** `price`, `originalPrice`, `imageUrl`, `wantCount`, `categoryId`, `freeShipping`, `isAuction` (always on item-URL rows), `hasVideo`, `city`, `sellerNick`, `sellerId`, `sellerUrl`, `channelTitle` (seller and item rows, unknown or banner channels) and every detail field when details were not fetched or the source has no value. `images` and `tags` can be empty lists; `tags` is often empty and always empty on seller and item rows.
- On seller-shop rows without details, `city` and `sellerNick` are `null`.

### Tips and troubleshooting

- **More listings:** raise Max listings per source (up to 1,000) and add more channels or sellers. Each listing is saved once per run, even if two sources show it.
- **Details only when needed:** card rows are cheaper. Item URLs always come with details and are always charged with the Listing details event.
- **0 rows?** Check the log: an unknown channel, seller or deleted item is reported as not found, and a price range can remove every listing. A row without a price is dropped when a price filter is set.
- **Input errors:** an empty input, a non-Goofish URL, a search URL, a non-numeric seller ID or Min price above Max price stop the run before any request, with the reason in the message.
- **Proxy:** keep the default datacenter proxy. The actor also works without a proxy, but then a block cannot be retried with a new IP.

### API, MCP and integrations

Run the actor from your code with the same JSON input as in Console. Your API token is in [Console → Settings → API & Integrations](https://console.apify.com/settings/integrations).

**Python** (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("genial_candlestand/goofish-xianyu-listings-scraper").call(run_input={"categories": ["164460_1", "164106_1"]})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

**Node.js** (`npm install apify-client`):

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

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('genial_candlestand/goofish-xianyu-listings-scraper').call({"categories": ["164460_1", "164106_1"]});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

**HTTP** — one request runs the actor and returns the results (runs up to 5 minutes; longer ones: [run asynchronously](https://docs.apify.com/api/v2/act-runs-post)):

```bash
curl -X POST "https://api.apify.com/v2/acts/genial_candlestand~goofish-xianyu-listings-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"categories":["164460_1","164106_1"]}'
```

**AI agents (MCP).** Add the actor as a tool of the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp). Claude Code:

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

Claude Desktop, Cursor or VS Code: `{"mcpServers": {"apify": {"url": "https://mcp.apify.com?tools=genial_candlestand/goofish-xianyu-listings-scraper"}}}`. Then ask, for example:

- "Get 300 camera listings from the Xianyu 摄影摄像 channel with price, city and want count"
- "List the newest listings of Goofish seller 2216091943263 with seller rating and sold count"
- "Find Xianyu phone listings priced 1000 to 3000 yuan with description, condition and brand"

**Integrations.** Run it on a schedule with [Apify Schedules](https://docs.apify.com/platform/schedules) and send the results to Google Sheets, Slack, Zapier, Make, n8n or your webhook — see [Apify integrations](https://docs.apify.com/platform/integrations).

### FAQ

**Can it search Goofish by keyword?**<br>
No. Goofish put its search behind a login on 2026-11-12, and this actor does not log in or use account cookies. Use category channels, channel URLs, seller shops or item URLs instead.

**Do I need a Goofish or Taobao account?**<br>
No. The actor uses only public pages that work without login, cookies or captcha solving.

**What currency are the prices in?**<br>
Chinese yuan (CNY), as numbers, e.g. `1680`. `shippingFee` is in yuan too, `0` means free shipping.

**How is it different from other Goofish actors?**<br>
It works without an account by category channel, channel URL, seller shop and item URL, while keyword search on Goofish now needs a login. Detail fields such as description, views, favourites, seller ID and seller registration date are an optional add-on, so you pay for them only when you need them.

**Is it legal to scrape Goofish?**<br>
The actor collects only listing data that Goofish shows publicly to any visitor, and seller nicknames stay masked as on the site. You are responsible for how you use the data, including copyright, privacy laws such as GDPR or PIPL, and Goofish's terms. If in doubt, ask a lawyer.

### Also useful

- [AliExpress Product Scraper](https://apify.com/genial_candlestand/aliexpress-product-details-scraper) — compare with new prices on AliExpress: variants, shipping cost, store rating and sold count
- [eBay Sold Listings Scraper](https://apify.com/genial_candlestand/ebay-sold-listings-scraper) — check what the same used items really sell for on eBay: sold price, date and shipping
- [eBay Search Scraper](https://apify.com/genial_candlestand/ebay-search-scraper-listings-prices) — compare asking prices of active eBay listings by keyword, with condition and seller feedback
- [Etsy Search Scraper](https://apify.com/genial_candlestand/etsy-search-scraper) — find the same collectibles or handmade goods on Etsy with prices, shops and ratings

# Actor input Schema

## `categories` (type: `array`):

Goofish (闲鱼) home-page category channels to list, e.g. 摄影摄像 Cameras (164460_1) or 手机数码 Phones & electronics (163816_1). Each channel gives up to ~1,000 different listings; 'home' is the random recommended feed (~400 max). Keyword search is not offered: Goofish requires a login for it. Give at least one of Category channels, Start URLs or Seller IDs.

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

Goofish URLs on www.goofish.com: a channel page https://www.goofish.com/mach-feeds?machId=166630\&publishTimes=2 (publishTimes may be left out, the actor looks it up), a seller page https://www.goofish.com/personal?userId=2216091943263 (lists the shop), or a listing https://www.goofish.com/item?id=932721428212 (one row, always with details). Search URLs (/search?q=) are rejected: search needs a login.

## `sellerIds` (type: `array`):

Numeric Goofish seller (user) IDs whose shop listings to scrape, e.g. 2216091943263 — the userId in https://www.goofish.com/personal?userId=… (the URL itself is accepted too). Goofish shows at most ~19 pages (≈380 newest listings) of a shop.

## `maxItemsPerSource` (type: `integer`):

Stop each channel, channel URL or seller shop after this many listings (1–1,000). No effect on a single item URL. Channels give up to ~1,000 different listings, seller shops ~380, the home feed ~400.

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

Stop the whole run after this many listings (all sources together). Empty = no total limit; each source is still capped by Max listings per source.

## `includeDetails` (type: `boolean`):

Open every listing (one extra request each) and add description, views, favourites, publish time, condition, brand, model, specs, status, shipping fee, quantity and the seller's ID, city, rating, reply rate, sold count and registration date. Charged as an extra 'Listing details' event per listing that got them.

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

Keep only listings priced at least this much in Chinese yuan. Applied to channel and seller-shop listings (not to item URLs); filtered-out listings are free.

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

Keep only listings priced at most this much in Chinese yuan. Must not be below Min price. Applied to channel and seller-shop listings (not to item URLs).

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

Proxy for the Goofish API. The default Apify datacenter proxy works; on a block the actor switches to a new IP and then once to a residential proxy.

## Actor input object example

```json
{
  "categories": [
    "164460_1",
    "164106_1"
  ],
  "maxItemsPerSource": 100,
  "includeDetails": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

Dataset with all scraped listings

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

Listings in the overview table view

# 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 = {
    "categories": [
        "164460_1",
        "164106_1"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("genial_candlestand/goofish-xianyu-listings-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 = { "categories": [
        "164460_1",
        "164106_1",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("genial_candlestand/goofish-xianyu-listings-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 '{
  "categories": [
    "164460_1",
    "164106_1"
  ]
}' |
apify call genial_candlestand/goofish-xianyu-listings-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,genial_candlestand/goofish-xianyu-listings-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/yBhRJqcaLgpuHhOBy/builds/B2mGhdfb1GQEVJFXd/openapi.json
