# Goofish Xianyu Scraper (`nghianguyen2/goofish-xianyu-scraper`) Actor

⚡ From $0.10/1K — No-Login Goofish (Xianyu / 闲鱼) Mobile H5 MTOP Scraper (9-in-1): Working Keyword Search (bypasses PC search block), 28-Field Item & Seller Credit Intel, Buyer Comments & Price Comps. MCP-ready. Zero cookies.

- **URL**: https://apify.com/nghianguyen2/goofish-xianyu-scraper.md
- **Developed by:** [Nghia Nguyen](https://apify.com/nghianguyen2) (community)
- **Categories:** E-commerce, Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.10 / 1,000 standard dataset results

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: Keyword Search, 28-Field Product Detail, Buyer Comments & Seller Credit Intel | $0.10 / 1K

Extract real-time second-hand marketplace listings, **working keyword search results**, **28-field product & seller credit profiles**, **buyer comments & Q\&A**, **similar price comps**, **vertical category feeds (Smartphones, Luxury, Collectibles, Bargains)**, and **trending search keywords** from **Goofish / Xianyu (`goofish.com` / `h5.m.goofish.com` / `2.taobao.com`)** at **$0.10 per 1,000 results** (**35x cheaper** than the $3.50/1K Store average).

***

### 🚀 Why This Goofish / Xianyu Scraper Works When Legacy PC Scrapers Fail

On **November 12, 2026**, Goofish locked its legacy desktop web endpoints (`mtop.taobao.idlemtopsearch.pc.search` and `mtop.taobao.idle.pc.detail`) behind a strict login wall (`RGV587_ERROR::SM`), causing legacy web scrapers to return empty results or require manual links.

This Actor is built on **Goofish's public Mobile H5 MTOP architecture (`h5api.m.goofish.com` — 18+ verified public endpoints)** with automatic `_m_h5_tk` session bootstrapping and MD5 request signing:

- ✅ **100% Zero-Cookie & Logged-Out**: No Goofish/Taobao account, no cookies, and no browser automation required.
- ✅ **Working Keyword Search (`search_keywords`)**: Search items and community listings by keyword (`iphone`, `相机`, `switch`, `显卡`, `rolex`, `手办`) with automatic 28-field product & seller enrichment.
- ✅ **28-Field Deep Product & Seller Credit Intel (`product_detail`)**: Extracts full descriptions, HD image galleries, **Views (`browseCount`)**, **Wants (`wantCount`)**, **Favorites (`collectCount`)**, **Seller Total Sold (`sellerTotalSold`)**, **Seller Positive Rating % (`sellerGoodRate`)**, **Seller Account Age in Days (`sellerRegDays`)**, **24h Reply Rate (`sellerReplyRatio24h`)**, **Average Reply Minutes (`sellerAvgReplyMinutes`)**, and **Zhima / IdleFish Credit Level (`sellerCreditLevel`)**.
- ✅ **Buyer Comments & Public Q\&A (`item_comments`)**: Exclusive support for both marketplace product comments (`mtop.taobao.idle.comment.list v5.0`) and community post comments (`mtop.taobao.idle.fun.comment.list v1.0`).
- ✅ **Similar Listings & Price Comps (`similar_recommendations`)**: Extracts comparable listings and price comps (`flowData` + category comps) to benchmark second-hand market value.

***

### 📊 9 Extraction Modes Compared

| # | Mode (`mode`) | Primary Public H5 MTOP Endpoints Used | Key Data Extracted |
| :--- | :--- | :--- | :--- |
| **1** | `auto_start_urls` | Auto-Router (`awesome.detail` + `post.search` + `webpc.feed`) | Accepts any `goofish.com` / `2.taobao.com` item URL, search URL, or raw ID |
| **2** | `search_keywords` | `mtop.taobao.idle.fun.post.search (v1.0)` + `awesome.detail (v1.0)` | Keyword search listings enriched with full price, images, views, wants & seller credit |
| **3** | `product_detail` | `mtop.taobao.idle.awesome.detail (v1.0)` + `awesome.detail.unit (v1.0)` | Complete 28-field item metadata, HD photos, logistics & seller Zhima credit metrics |
| **4** | `item_comments` | `mtop.taobao.idle.comment.list (v5.0)` + `fun.comment.list (v1.0)` | Public buyer comments, price inquiries, masked author nick, region & timestamps |
| **5** | `similar_recommendations` | `awesome.detail flowData` + `playboy.recommend (v1.0)` + `tabdetail` | Comparable second-hand listings, price delta vs. target item & seller stats |
| **6** | `category_tab_feed` | `mtop.taobao.idlehome.home.tabentry (v1.0)` + `tabdetail (v1.0)` | Official vertical feeds: Smartphones (`7996221`), Luxury (`7996255`), Bargains (`7996254`), Figures (`7996243`), Beauty (`7996248`), Toys (`7996246`) |
| **7** | `home_feed` | `webpc.feed (v1.0)` + `nextfresh (v4.0)` + `firstdata (v6.0)` | Paginated marketplace discovery feed with `recentSoldTime` velocity tags |
| **8** | `trending_hot_searches` | `item.search.activate (v2.0)` + `search.shade (v3.0)` + `suggest (v2.0)` | Real-time trending search keywords, hot search rank & search bar shade terms |
| **9** | `interest_circles` | `mtop.taobao.idlehome.home.circle.list (v1.0)` + `firstdata (v6.0)` | 27+ official Goofish vertical interest circles (`circleId`, `title`, `bizCode`, URLs) |

***

### 📥 Input Example

```json
{
  "mode": "search_keywords",
  "keywords": ["iphone", "相机"],
  "enrichFullDetail": true,
  "maxItems": 15
}
```

***

### 📤 Output Example (`product_detail` / `search_keywords`)

```json
{
  "mode": "product_detail",
  "recordType": "product_listing",
  "itemId": "868544846048",
  "title": "滑雪背包 可挂板滑雪包 滑雪鞋包 干湿分离雪鞋包单板鞋包雪具",
  "description": "滑雪背包 可挂板滑雪包 滑雪鞋包 干湿分离雪鞋包单板鞋包雪具包板包 55升大容量双肩背包...",
  "priceCny": 165.0,
  "originalPriceCny": 185.0,
  "priceUsdApprox": 22.76,
  "freeShipping": true,
  "browseCount": 4350,
  "wantCount": 184,
  "collectCount": 62,
  "commentCount": 1,
  "city": "抚顺",
  "categoryId": "50016727",
  "categoryName": "Outdoor & Sports Equipment",
  "mainImageUrl": "https://img.alicdn.com/bao/uploaded/i4/O1CN01...",
  "images": [
    "https://img.alicdn.com/bao/uploaded/i4/O1CN01..."
  ],
  "itemUrl": "https://www.goofish.com/item?id=868544846048",
  "sellerId": "463742161",
  "sellerNickMasked": "神***8",
  "sellerTotalSold": 17653,
  "sellerGoodRate": "97%",
  "sellerRegDays": 2386,
  "sellerReplyRatio24h": "90%",
  "sellerAvgReplyMinutes": 46,
  "sellerCreditLevel": "Level 5 (Zhima Verified)",
  "sellerSignature": "只卖对的，不卖贵的！因为专注，所以专业！",
  "recentSoldTag": "Active Listing",
  "scrapedAt": "2026-11-25T05:05:00Z"
}
```

***

### ⚖️ Legal, GDPR & Ethical Scraping Disclaimer

1. **Publicly Accessible Catalog Data Only (100% Logged-Out)**: This Actor interacts exclusively with publicly accessible mobile web (`h5api.m.goofish.com`) catalog endpoints available to unauthenticated visitors. It does **not** bypass authentication walls, login screens, or CAPTCHA challenges.
2. **Strict PII & GDPR Privacy Filtering**: All outputs are automatically sanitized to exclude Personally Identifiable Information (PII). User nicknames are masked by default (e.g., `神***8`), and any phone numbers, email addresses, or private contact strings are automatically redacted from text descriptions.
3. **Independent Tool**: This Actor is an independent e-commerce market research tool and is not affiliated with, endorsed by, or sponsored by Goofish, Xianyu, Taobao, or Alibaba Group. Users are responsible for complying with applicable data protection laws in their jurisdiction.

### Use Cases

- **Find resale and arbitrage deals** on Goofish / Xianyu (闲鱼 / Idlefish) China second-hand luxury, electronics, and collectible markets.
- **Get deal and restock alerts** on newly posted underpriced listings with real-time price comparison comps.
- **Collect reviews and ratings** & buyer Q\&A comments alongside seller Sesame Credit reputation metrics.

***

### AI Agents, MCP Server & Automation Integrations

- **Native MCP Server Ready**: Connect directly as a remote tool in **Claude Desktop**, **Cursor IDE**, **ChatGPT**, **LangChain**, and **CrewAI** via Apify MCP (`https://mcp.apify.com`) — **No Login & No Cookies required**.
- **No-Code Workflows**: Plug straight into **n8n**, **Make (Integromat)**, **Zapier**, and webhooks for automated 24/7 price monitoring, deal & restock alerts, and competitor intelligence.

### High-Volume Enterprise API & Custom Scrapers

Need **unlimited throughput**, dedicated raw REST endpoints (zero platform overhead), custom anti-bot scrapers, or private data pipelines for your e-commerce / trading team?

- **Direct Telegram (Fastest — Same-Day Response)**: [**@WinJ_sui**](https://t.me/WinJ_sui) (for dedicated high-speed API keys, custom scrapers, bulk volume discounts & USDT/Bank invoicing)
- Or click **"Message Creator"** on our Apify profile (`nghianguyen2`).

# Actor input Schema

## `mode` (type: `string`):

Select which Goofish / Xianyu intelligence mode to run.

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

Paste any Goofish / Xianyu URLs (e.g., https://www.goofish.com/item?id=868544846048, https://h5.m.goofish.com/item?id=712310496482, https://2.taobao.com/item.htm?id=868544846048) or search links.

## `keywords` (type: `array`):

Keywords to search on Goofish / Xianyu (e.g., 'iphone', '相机', 'switch', '显卡', 'rolex', '手办'). Used in 'search_keywords' and 'trending_hot_searches' modes.

## `itemIds` (type: `array`):

Specific Goofish itemId or postId values to inspect in 'product_detail', 'item_comments', or 'similar_recommendations' modes. If left empty, live active items are automatically discovered.

## `categoryTabId` (type: `string`):

Choose an official Goofish vertical category tab to extract listings from.

## `enrichFullDetail` (type: `boolean`):

Automatically query mtop.taobao.idle.awesome.detail (v1.0) to enrich listings with full description, browseCount, wantCount, sellerTotalSold, sellerGoodRate, sellerRegDays, sellerReplyRatio24h, and Zhima credit level.

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

Maximum number of records to extract.

## Actor input object example

```json
{
  "mode": "search_keywords",
  "startUrls": [
    {
      "url": "https://www.goofish.com/item?id=868544846048"
    },
    {
      "url": "https://h5.m.goofish.com/item?id=712310496482"
    }
  ],
  "keywords": [
    "iphone",
    "相机"
  ],
  "itemIds": [
    "868544846048",
    "712310496482"
  ],
  "categoryTabId": "7996221",
  "enrichFullDetail": true,
  "maxItems": 15
}
```

# Actor output Schema

## `results` (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 = {
    "mode": "search_keywords",
    "startUrls": [
        {
            "url": "https://www.goofish.com/item?id=868544846048"
        },
        {
            "url": "https://h5.m.goofish.com/item?id=712310496482"
        }
    ],
    "keywords": [
        "iphone",
        "相机"
    ],
    "itemIds": [
        "868544846048",
        "712310496482"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("nghianguyen2/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 = {
    "mode": "search_keywords",
    "startUrls": [
        { "url": "https://www.goofish.com/item?id=868544846048" },
        { "url": "https://h5.m.goofish.com/item?id=712310496482" },
    ],
    "keywords": [
        "iphone",
        "相机",
    ],
    "itemIds": [
        "868544846048",
        "712310496482",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("nghianguyen2/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 '{
  "mode": "search_keywords",
  "startUrls": [
    {
      "url": "https://www.goofish.com/item?id=868544846048"
    },
    {
      "url": "https://h5.m.goofish.com/item?id=712310496482"
    }
  ],
  "keywords": [
    "iphone",
    "相机"
  ],
  "itemIds": [
    "868544846048",
    "712310496482"
  ]
}' |
apify call nghianguyen2/goofish-xianyu-scraper --silent --output-dataset

```

## MCP server setup

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