# Goofish (Xianyu) Scraper: Items, Sellers & Price Monitor (`kizukidata/goofish-scraper`) Actor

Extract Goofish (闲鱼 / Xianyu) item details and seller catalogs from URLs or IDs, with price-drop and sold-out monitoring. Returns prices, wants, views, SKUs, and seller credit without login. No keyword search. Unofficial, not affiliated with Goofish or Alibaba. Failed rows cost $0.

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

## Pricing

from $1.60 / 1,000 listing rows

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/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

Enter Goofish (闲鱼 / Xianyu / Idlefish) item URLs, item IDs, or seller profile URLs/IDs to extract full listing records and seller catalogs without login or cookies: asking price and original price in CNY, shipping fee and free-shipping flag, 10-point condition grade, want/view/collect counts, stock, SKU variants, B2C inspection reports, rental/skill/auction metadata, full photo galleries, and seller reputation (Zhima credit, good-review rate, 24h reply rate, reply interval, registration date, and other listings).

Enable `onlyNewItems` or `onlyChanges` on scheduled runs to track newly listed items, price drops, and sold-out or delisted transitions while paying $0 for unchanged rows. Failed, deleted, blocked, or invalid rows are pushed with `charged: false` so you only pay for delivered listings. This is an unofficial Actor, not affiliated with Goofish (Xianyu) or Alibaba.

### What goes in, what comes back

- Input: Item URLs or numeric IDs (`itemUrls`, `itemIds`), seller profile URLs or user IDs (`sellerUrls`, `sellerIds`), or mixed links (`startUrls`), including `goofish.com/item?id=...`, `h5.m.goofish.com`, `goofish.com/personal?userId=...`, and `m.tb.cn` share links. An input that names no target (`{}`, or settings only) returns a built-in sample, two items and one seller: at most 5 rows, marked `isSample`, with no result charged (the run start fee still applies). The sample runs on the default settings and the default proxy: your other settings are not applied to it (a lower `maxItems` is).
- Output: One JSON or CSV row per listing containing both flat analytics fields (`itemId`, `url`, `title`, `description`, `price`, `originalPrice`, `soldPrice`, `discountPercent`, `currency`, `shippingFee`, `freeShipping`, `status`, `statusLabel`, `listedAt`, `conditionLevel`, `conditionText`, `wantCount`, `viewCount`, `collectCount`, `soldCount`, `quantity`, `city`, `province`, `district`, `categoryId`, `categoryName`, `brand`, `model`, `specs`, `images`, `imageCount`, `sellerId`, `sellerNick`, `sellerUrl`, `sellerGoodReviewRate`, `sellerReplyRate24h`, `sellerReplyTime`, `sellerLastSeen`, `sellerItemCount`, `sellerSoldCount`, `sellerZhimaCredit`, `sellerVerified`, `sellerSince`, `sellerOtherItems`, `foundViaSeller`, `changeType`, `changedFields`, `previousValues`, `priceDropAmount`, `priceDropPercent`) and rich nested blocks (`seller`, `stats`, `flags`, `categoryIds`, `categoryLabels`, `specsList`, `imageDetails`, `detailImages`, `video`, `variants`, `auction`, `inspection`, `inspectionReport`, `logistics`, `b2cPromotion`, `seckill`, `rentalHouse`, `skillService`, `jobInfo`).

### Use cases

- Price-drop and sold-out monitoring: Schedule runs with `onlyChanges: true` on watched `itemUrls` / `itemIds` to receive alerts when prices drop (`price_drop` with `priceDropAmount` and `priceDropPercent`), items sell (`sold`), or watched listings are taken down (`delisted` / `deleted`). On `sellerUrls`, `onlyChanges` tracks new listings and price/status changes among items currently shown on the seller's catalog.
- Seller catalog tracking: Pass seller profile links (`goofish.com/personal?userId=...`) with `onlyNewItems: true` to collect only newly posted items on each run while skipping previously delivered listings for $0.
- Second-hand market and B2C resale analysis: Compare demand signals (`wantCount`, `viewCount`, `collectCount`), SKU variant pricing, and official B2C inspection reports across C2C and verified merchant listings.
- AI agents and workflow automation: Trigger runs over REST API, n8n, or the Apify MCP server.

### Input options

| Field | Default | Description |
|---|---|---|
| `itemUrls` | `[]` | Goofish item links (`goofish.com/item?id=...`, `h5.m.goofish.com`, `m.tb.cn`) or bare numeric item IDs. |
| `itemIds` | `[]` | Numeric Goofish item IDs (also accepts `productIds`). |
| `sellerUrls` | `[]` | Seller profile links (`goofish.com/personal?userId=...`) or numeric seller user IDs. |
| `sellerIds` | `[]` | Numeric seller user IDs (also accepts `userIds`). |
| `startUrls` | `[]` | Mixed item URLs, seller URLs, `m.tb.cn` links, or numeric item IDs (auto-detected). |
| `maxItems` | `20` | Maximum billable listing rows per run (`1` to `5000`). The built-in sample (no target named) returns at most 5 free rows. |
| `onlyNewItems` | `false` | Skip listings already delivered in an earlier run for the same input (`isNew: true` on new rows; skipped items cost $0). |
| `onlyChanges` | `false` | Emit a row only when a listing is new or changed (price drop, price increase, sold, delisted, stock, shipping, or title). Unchanged listings cost $0. |
| `monitoringKey` | `null` | Optional state namespace for separating schedules that use the same inputs. |
| `minPrice` / `maxPrice` | `null` | Price range filter in CNY. Filtered-out listings cost $0. |
| `listedWithinDays` | `null` | Keep only listings posted within the last N days (`1` to `3650`). |
| `minCondition` | `null` | Keep only listings at or above this 10-point condition grade (`1` to `10`). |
| `freeShippingOnly` | `false` | Keep only listings marked with free shipping (包邮). |
| `onlineOnly` | `false` | Keep only currently online listings (`status: "online"`). Leave `false` when tracking sold-out transitions. |
| `includeDescription` | `true` | Include the full listing description text. |
| `includeRichFields` | `true` | Include nested objects (`seller`, `imageDetails`, `inspectionReport`, `rentalHouse`, `skillService`, `categoryLabels`, `specsList`). |
| `proxyConfiguration` | Apify Proxy | Proxy settings. Leave the default. |

#### Example input

```json
{
  "itemUrls": [
    "https://www.goofish.com/item?id=957067883917"
  ],
  "sellerUrls": [
    "https://www.goofish.com/personal?userId=605970805"
  ],
  "onlyChanges": true,
  "maxItems": 50
}
```

### Output example

```json
{
  "id": "goofish:957067883917",
  "source": "Goofish",
  "rowStatus": "ok",
  "charged": true,
  "error": null,
  "errorCode": null,
  "itemId": "957067883917",
  "url": "https://www.goofish.com/item?id=957067883917",
  "title": "成都市下水道疏通 马桶疏通 管道疏通 通下水道 疏通下水道",
  "price": 30,
  "originalPrice": 80,
  "soldPrice": 30,
  "currency": "CNY",
  "shippingFee": 0,
  "freeShipping": true,
  "discountPercent": 62.5,
  "status": "online",
  "statusCode": 0,
  "statusLabel": "在线",
  "itemType": "detailCommonBuy",
  "isB2C": false,
  "listedAt": "2025-07-27T09:52:16.000Z",
  "wantCount": 1269,
  "viewCount": 4316,
  "collectCount": 19,
  "soldCount": 0,
  "quantity": 973,
  "city": "成都",
  "categoryId": "50023914",
  "categoryName": "管道疏通/马桶疏通",
  "specs": {
    "服务时长": "1天内",
    "计价方式": "元/次"
  },
  "tags": ["包邮"],
  "imageCount": 1,
  "sellerId": "605970805",
  "sellerNick": "安***通",
  "sellerUrl": "https://www.goofish.com/personal?userId=605970805",
  "sellerGoodReviewRate": "98%",
  "sellerReplyRate24h": "98%",
  "sellerReplyTime": "1分钟",
  "sellerLastSeen": "18分钟前来过",
  "sellerItemCount": 498,
  "sellerSoldCount": 3629,
  "sellerZhimaCredit": "信用极好",
  "sellerVerified": true,
  "sellerSince": "2016-10-29T00:19:34.000Z",
  "foundViaSeller": null,
  "changeType": "new",
  "changedFields": ["price", "originalPrice", "status", "statusLabel", "quantity", "soldCount", "title", "shippingFee", "freeShipping"],
  "scrapedAt": "2026-11-19T03:15:00.000Z"
}
```

### Limits and what is not returned

- No keyword search: Goofish keyword search requires login verification, so search URLs and keyword queries return an uncharged `unsupported_mode` status row (`charged: false`) instead of guessing results. Pass item links/IDs or seller profile links/IDs.
- Seller-profile deletion tracking: `deleted` change alerts apply to explicitly watched `itemUrls` / `itemIds` that return `not_found`. Listings that disappear from a seller's public `sellerUrls` feed are not emitted as `deleted`.
- C2C field availability: On standard C2C listings, Goofish's public detail API frequently omits `province`, `district`, `conditionLevel`, and individual auction bid histories, so those fields remain `null` rather than guessed (B2C listings include `province`, `city`, and `district` from `logistics`). Because `minCondition` filters out rows where `conditionLevel` is `null`, setting `minCondition` excludes most C2C listings.
- No translation or currency conversion: Titles, descriptions, locations, and Chinese labels are returned as published by Goofish, with prices in CNY.
- Seller nicknames are returned in Goofish's masked format (for example `安***通`) where Goofish masks them.
- Category-specific blocks (`inspectionReport`, `variants`, `rentalHouse`, `skillService`, `auction`, `logistics`) are populated when Goofish publishes them for that listing type and are `null` otherwise.

### Pricing

Launch pricing. Pay-per-event (`item`), charged once per delivered listing row (`rowStatus: "ok"`, `charged: true`, `error: null`). Deleted, unavailable, blocked, invalid, filtered-out, `onlyNewItems`/`onlyChanges` unchanged rows, and zero-result runs cost $0. Platform run-start fee stays at Apify's default ($0.00005).

| Apify plan | Price per 1,000 listings |
|---|---:|
| Free | $2.50 |
| Bronze | $2.20 |
| Silver | $1.90 |
| Gold and above | $1.60 |

- Apify Free plan ($5 monthly platform credit): about 2,000 listings a month.

### API and MCP integration

Run via REST API using a Bearer token header:

```bash
curl -X POST "https://api.apify.com/v2/acts/kizukidata~goofish-scraper/runs?waitForFinish=120" \
  -H "Authorization: Bearer <YOUR_API_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"itemUrls":["https://www.goofish.com/item?id=957067883917"],"sellerUrls":["https://www.goofish.com/personal?userId=605970805"],"maxItems":20}'
```

Connect this Actor in Claude Desktop, Cursor, or n8n via Apify's MCP server:

```text
https://mcp.apify.com?tools=fetch-actor-details,kizukidata/goofish-scraper
```

Claude / Cursor MCP config:

```json
{
  "mcpServers": {
    "apify": {
      "type": "http",
      "url": "https://mcp.apify.com?tools=fetch-actor-details,kizukidata/goofish-scraper"
    }
  }
}
```

Related Kizuki Actors: [Taobao Product Scraper](https://apify.com/kizukidata/taobao-product-scraper), [1688 Product Scraper](https://apify.com/kizukidata/1688-product-scraper), [AliExpress Product Scraper](https://apify.com/kizukidata/aliexpress-product-scraper), [TikTok Shop Products Scraper](https://apify.com/kizukidata/tiktok-shop-products-scraper).

# Actor input Schema

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

Goofish listing links (https://www.goofish.com/item?id=957067883917, h5.m.goofish.com, m.tb.cn) or numeric item IDs. Naming no target (empty or settings only) reads 2 items and 1 seller and returns a free sample of at most 5 rows (marked isSample).

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

Numeric Goofish item IDs (for example 957067883917). Also accepts productIds.

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

Goofish seller profile links (https://www.goofish.com/personal?userId=605970805) or numeric seller user IDs. Walks every public listing on each profile up to maxItems.

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

Numeric Goofish seller user IDs (for example 605970805). Also accepts userIds.

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

Mixed Goofish item URLs, seller profile URLs, m.tb.cn share links, or numeric item IDs. Type is auto-detected.

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

Maximum billable listing rows to output per run (1 to 5000, default 20). Item links are processed before seller catalogs. Failed, deleted, blocked, and filtered-out rows are never charged.

## `onlyNewItems` (type: `boolean`):

Skip listings already delivered in an earlier run for the same inputs and return only newly discovered listings. Skipped listings cost $0. Also accepts onlyNew.

## `onlyChanges` (type: `boolean`):

Compare each listing against the previous run and emit only new listings, price drops, price increases, sold-out or delisted items, or stock/title changes. Unchanged listings are skipped for $0.

## `monitoringKey` (type: `string`):

Optional namespace to separate change-monitoring state across schedules that share the same inputs.

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

Optional. Keep only listings priced at or above this amount in CNY. Filtered-out listings cost $0.

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

Optional. Keep only listings priced at or below this amount in CNY.

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

Optional. Keep only listings created within the last N days (1 to 3650).

## `minCondition` (type: `integer`):

Optional. Keep only listings at or above this 10-point condition grade (10 = brand new). Most C2C listings omit conditionLevel (null) and are excluded when this filter is set.

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

Keep only listings marked with free shipping (包邮).

## `onlineOnly` (type: `boolean`):

Keep only currently online listings (excludes sold or delisted items). Leave off when using onlyChanges to track sold-out transitions.

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

Include the seller's full listing description text in each row.

## `includeRichFields` (type: `boolean`):

Include nested seller profile, image metadata, spec/category label arrays, B2C inspection reports, rental/skill/job blocks, and seller other items.

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

Apify Proxy settings. The default works for most runs; set a country or your own proxy URLs here.

## Actor input object example

```json
{
  "itemUrls": [],
  "itemIds": [],
  "sellerUrls": [],
  "sellerIds": [],
  "startUrls": [],
  "maxItems": 20,
  "onlyNewItems": false,
  "onlyChanges": false,
  "freeShippingOnly": false,
  "onlineOnly": false,
  "includeDescription": true,
  "includeRichFields": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

No description

## `output` (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 = {
    "itemUrls": [],
    "itemIds": [],
    "sellerUrls": [],
    "sellerIds": [],
    "startUrls": [],
    "maxItems": 20,
    "onlyNewItems": false,
    "onlyChanges": false,
    "freeShippingOnly": false,
    "onlineOnly": false,
    "includeDescription": true,
    "includeRichFields": true,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("kizukidata/goofish-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": [],
    "itemIds": [],
    "sellerUrls": [],
    "sellerIds": [],
    "startUrls": [],
    "maxItems": 20,
    "onlyNewItems": False,
    "onlyChanges": False,
    "freeShippingOnly": False,
    "onlineOnly": False,
    "includeDescription": True,
    "includeRichFields": True,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("kizukidata/goofish-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": [],
  "itemIds": [],
  "sellerUrls": [],
  "sellerIds": [],
  "startUrls": [],
  "maxItems": 20,
  "onlyNewItems": false,
  "onlyChanges": false,
  "freeShippingOnly": false,
  "onlineOnly": false,
  "includeDescription": true,
  "includeRichFields": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call kizukidata/goofish-scraper --silent --output-dataset

```

## MCP server setup

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