# Goofish Xianyu Scraper (`jistudio/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/jistudio/goofish-xianyu-scraper.md
- **Developed by:** [Ji Studio](https://apify.com/jistudio) (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.

***

### How to Scrape Goofish (Xianyu / 闲鱼)

#### Step-by-Step in Apify Console

1. Open **goofish-xianyu-scraper** in Apify Console and select your desired mode (`mode` or `action`).
2. Enter your search keywords, product URLs, or target IDs (or use the prefilled example input to test immediately).
3. Click **Start** — runs typically complete in **5 to 25 seconds** at just **256 MB** memory.
4. Preview structured records in the **Output** tab and export to **JSON, CSV, Excel, or XML**.

#### Programmatic API & SDK Integration

##### Python (`apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")

run_input = {
  "mode": "search_keywords",
  "keywords": [
    "iphone 15 pro",
    "sony a7m4"
  ],
  "maxItems": 20
}

run = client.actor("jistudio/goofish-xianyu-scraper").call(run_input=run_input)
items = list(client.dataset(run["defaultDatasetId"]).iterate_items())
print(f"Extracted {len(items)} items")
```

##### JavaScript / Node.js (`apify-client`)

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

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });

const run = await client.actor('jistudio/goofish-xianyu-scraper').call({
  "mode": "search_keywords",
  "keywords": [
    "iphone 15 pro",
    "sony a7m4"
  ],
  "maxItems": 20
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(`Extracted ${items.length} items`);
```

### Input Parameters Reference

All inputs below match the Actor's live schema (`input_schema.json`) and require **zero login cookies**:

| Parameter | Type | Default | Description |
| :--- | :---: | :---: | :--- |
| `mode` | `string` | `"search_keywords"` | Select which Goofish / Xianyu intelligence mode to run. |
| `startUrls` | `array` | — | Paste any Goofish / Xianyu URLs (e.g., https://www.goofish.com/item?id=868544846048, https://h5.m.goofish.com/item?id... |
| `keywords` | `array` | `["iphone", "相机"]` | Keywords to search on Goofish / Xianyu (e.g., 'iphone', '相机', 'switch', '显卡', 'rolex', '手办'). Used in 'search_keyword... |
| `itemIds` | `array` | `["868544846048", "712310496482"]` | Specific Goofish itemId or postId values to inspect in 'product_detail', 'item_comments', or 'similar_recommendations... |
| `categoryTabId` | `string` | `"7996221"` | Choose an official Goofish vertical category tab to extract listings from. |
| `enrichFullDetail` | `boolean` | `true` | Automatically query mtop.taobao.idle.awesome.detail (v1.0) to enrich listings with full description, browseCount, wan... |
| `maxItems` | `integer` | `15` | Maximum number of records to extract. |

#### Quick-Start JSON Input

```json
{
  "mode": "search_keywords",
  "keywords": [
    "iphone 15 pro",
    "sony a7m4"
  ],
  "maxItems": 20
}
```

### Output Fields Reference

Every run writes clean, normalized records to your default Apify Dataset (`overview` view):

| Field | Label | Format |
| :--- | :--- | :---: |
| `mode` | Mode | `text` |
| `recordType` | Type | `text` |
| `itemId` | Item ID | `text` |
| `title` | Title | `text` |
| `priceCny` | Price (¥ CNY) | `number` |
| `priceUsdApprox` | Price ($ USD) | `number` |
| `wantCount` | Wants | `number` |
| `browseCount` | Views | `number` |
| `city` | City | `text` |
| `sellerTotalSold` | Seller Sold | `number` |
| `sellerGoodRate` | Good Rate | `text` |
| `sellerCreditLevel` | Credit Level | `text` |
| `itemUrl` | Item URL | `link` |
| `mainImageUrl` | Image | `image` |

#### Verified Sample Dataset Record

```json
{
  "mode": "search_keywords",
  "itemId": "561171719993",
  "title": "iPhone 15 Pro 256GB Natural Titanium 99% New",
  "priceCny": 5699.0,
  "priceUsdApprox": 791.5,
  "sellerNick": "verified_tech_seller",
  "city": "Shanghai",
  "wantCount": 142,
  "url": "https://www.goofish.com/item?id=561171719993"
}
```

### How Much Does It Cost to Scrape Goofish (Xianyu / 闲鱼)?

This Actor uses transparent **Pay-Per-Event (PPE)** pricing with **no hidden proxy surcharges** and a minimal **256 MB** default memory footprint:

| Event | Price | Example Cost (1,000 Items) |
| :--- | :---: | :---: |
| **Actor Start** (`apify-actor-start`) | `$0.02` / run | `$0.02` |
| **Standard Dataset Result** (`apify-default-dataset-item`) | `$0.0001` (`$0.10 / 1K`) | `$0.10` |
| **Total for 1,000 Standard Results** | — | **`$0.12` total** |

#### Subscription Tier Discounts

Paid Apify plans (**Bronze, Silver, Gold, Platinum, Diamond**) automatically receive volume discounts on enriched add-on events (deep SKU detail, verified reviews, affiliate intelligence). With Apify's **$5.00/month Free plan credit**, you can extract **40,000+ standard records per month** for free.

### Performance & Architecture

- **Zero Headless Browser Overhead**: Direct protocol calls eliminate Chromium boot time, reducing memory usage to **256 MB** and run duration to **5–25 seconds**.
- **Limited Permissions Security**: Runs strictly under Apify's **Limited Permissions** model — accessing only its own run storages.
- **Automated Quality & Fail-Safe**: Built-in error handling ensures clean status reporting if an upstream target temporarily rate-limits or returns empty results.

### FAQ

#### Do I need a Goofish, Taobao, or Chinese phone account?

No. This Actor queries public Goofish catalog endpoints directly with zero login, zero cookies, and zero Chinese SMS verification.

#### Can I search using English keywords or Chinese characters?

Yes. Both English terms (such as `iphone 15 pro`, `rolex`, `rtx 4090`) and Chinese terms (`相机`, `苹果手机`) work seamlessly.

#### How fast is Goofish Xianyu Scraper compared to browser scrapers?

Because it skips Chromium rendering and connects directly to mobile endpoints, a 15-item search finishes in ~15–25 seconds using only 256 MB RAM.

#### Are CNY prices automatically converted to USD?

Yes. Each listing returns exact `priceCny` along with `priceUsdApprox` for cross-border resale comparison.

#### How can I connect Goofish data to n8n, Make, or AI agents?

Use Apify's native REST API, Python/Node SDKs, webhooks, or connect directly via Apify MCP (`https://mcp.apify.com`) from Claude Desktop and Cursor.

### More Scrapers by JiStudio

Explore our full suite of direct-protocol, zero-browser data extraction Actors on Apify Store:

| Actor | Target Platform | Best For |
| :--- | :--- | :--- |
| [Shopee Scraper](https://apify.com/jistudio/shopee-scraper) | Shopee (8 Countries) | Exact unrounded sold counts, prices, vouchers, Shopee Live bags |
| [TikTok Shop Scraper](https://apify.com/jistudio/tiktok-shop-scraper) | TikTok & TikTok Shop (22+ Regions) | Trending feeds, HD no-watermark MP4, SKUs, KOL affiliates |
| [TikTok Transcript Scraper](https://apify.com/jistudio/tiktok-transcript-scraper) | TikTok Audio / Captions | Verbatim speech transcripts & WebVTT subtitles for LLM RAG |
| [Lazada Scraper](https://apify.com/jistudio/lazada-scraper) | Lazada (6 SEA Countries) | Search listings, LazMall bestsellers, verified buyer reviews |
| [Goofish Xianyu Scraper](https://apify.com/jistudio/goofish-xianyu-scraper) | Goofish / Xianyu (闲鱼) | China C2C resale arbitrage, seller credit & price comps |
| [AliExpress Scraper](https://apify.com/jistudio/aliexpress-scraper) | AliExpress Global | Dropshipping SKUs, localized shipping, verified buyer reviews |
| [1688 Wholesale Scraper](https://apify.com/jistudio/1688-wholesale-scraper) | 1688.com Factories | Direct Chinese factory pricing, MOQ tiers & SKU matrices |
| [Twitter Scraper](https://apify.com/jistudio/twitter-scraper) | X (Twitter) & Crypto | Single tweets, threads, HD videos & Solana/Base token X-intel |

### Support & Legal Compliance

#### Support & Feature Requests

Need help with a specific URL, custom field mapping, or edge case? Open a ticket on the **Issues** tab of this Actor on Apify Console — we actively monitor and ship patches rapidly.

#### Legal & Ethical Scraping Notice

This Actor accesses **only publicly available data** visible to unauthenticated visitors and does not bypass login screens or extract private personal data (PII). You are responsible for ensuring your data collection and usage comply with applicable laws (including GDPR/CCPA) and target website terms.

# 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 (1 - 5,000, supports automatic pagination).

## 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("jistudio/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("jistudio/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 jistudio/goofish-xianyu-scraper --silent --output-dataset

```

## MCP server setup

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