# Goofish Scraper (`deepmine/goofish-scraper`) Actor

Scrape public listings and seller inventories from Goofish (Xianyu), with price filters and optional change tracking.

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

## Pricing

from $0.99 / 1,000 goofish 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 Scraper

Scrape public Goofish (Xianyu, 闲鱼) item listings and full seller inventories. Paste item or seller links, or their numeric IDs, and get one clean row per listing with price, condition, location, images, listing date, status, and seller profile details.

### What you can scrape

- **Item links**: `https://www.goofish.com/item?id=...`, `https://h5.m.goofish.com/item?id=...`, or just the numeric item ID.
- **Seller inventories**: `https://www.goofish.com/personal?userId=...`, or just the numeric seller ID. The scraper pages through the seller's listings until it reaches your maximum.

Direct item links are processed first, then seller inventories. Results are unique by item ID, and **Maximum listings** applies across all inputs combined.

### Filters

- **Minimum and maximum price** in CNY.
- **Listed within days** keeps listings first posted in the last N days.
- **Minimum condition** from 1 to 10, using the condition the seller stated.
- **Free shipping only** keeps listings marked as shipping free.

When a filter is on, listings that leave the filtered field blank are excluded.

### Output

Each row includes the item ID and URL, title, description, price and original price in CNY, shipping fee, condition, want, view and favorite counts, city and province, category, status (such as `active`, `sold`, `offline` or `deleted`), listing date, brand and model, specs, images, variants, and seller details such as nickname, good review rate, items sold, reply rate, and verification. The raw item and detail records are included for advanced use. Fields Goofish does not provide are left empty.

**Lite mode** skips the detail lookup for faster, smaller runs. Engagement counts and some seller fields may then be empty. If Goofish limits detail requests during a run, the affected listings are still saved with their basic details. Turning off **Include descriptions** removes descriptions from the rows and from the raw records.

### Track price and status changes

Turn on **Track price and status changes** and reuse the same **Tracking key** across runs. Each saved listing is then marked `new`, `changed` or `unchanged`, with the changed fields and the previous price and status. Use a separate key for each independent job, and do not run two jobs with the same key at the same time. A listing that is missing from a run is not counted as a change. Without a key, the key is `default`.

### Pricing

You pay per listing saved to the dataset. There is no start fee. Item IDs that do not exist and listings excluded by your filters are never charged. See the Pricing tab for current rates per plan.

### FAQ

#### Can I search Goofish by keyword?

No. This scraper works from item links, seller links, or their numeric IDs. To cover a whole shop, add the seller's personal page link and set **Maximum listings** to the number of listings you need.

#### What happens with a removed or nonexistent item link?

An ID that does not exist is skipped and counted as unavailable in the run summary. You are not charged for it, and a run where every link is dead still finishes successfully with 0 rows. A listing the seller has taken down is still saved, with status `offline` or `deleted`, when Goofish keeps its record, so you can see that it ended.

#### Do I need a Goofish account or cookies?

No. The scraper reads public listing data only and needs no login. Keep the default proxy settings for reliable results.

#### Why are some fields empty?

Goofish does not show every field for every listing. For example, condition, brand or free shipping depend on what the seller filled in. Lite mode also skips the detail lookup, so engagement counts and some seller fields stay empty.

#### How do I monitor price drops on the same listings?

Schedule the scraper with the same inputs, turn on **Track price and status changes**, and keep the **Tracking key** the same. Rows with `changeType` set to `changed` are the listings whose price or status moved since the previous run.

#### What is in the run summary?

The `OUTPUT` record of the run's key-value store shows how many listings were saved, checked, excluded by filters, unavailable (removed or nonexistent), and could not be loaded because Goofish limited requests, plus how many seller pages were read. Listings that could not be loaded are not charged, and a later run can pick them up.

# Actor input Schema

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

Enter goofish.com or h5.m.goofish.com item links, or numeric item IDs.

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

Enter Goofish personal pages with userId, or numeric seller IDs.

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

Maximum number of saved listings across all inputs.

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

Keep listings at or above this price.

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

Keep listings at or below this price.

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

Keep listings first posted in the last N days.

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

Keep listings with stated condition at or above this value, from 1 to 10.

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

Keep only listings marked as offering free shipping.

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

Include descriptions in listing rows and in the raw item fields.

## `liteMode` (type: `boolean`):

Use the item record only. Detail metrics and seller fields may be unavailable.

## `trackChanges` (type: `boolean`):

Compare saved listings with earlier runs that used the same tracking key.

## `trackingKey` (type: `string`):

Use the same key across related runs. If left empty, the key "default" is used.

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

Use Apify Proxy or provide your own HTTP proxy URLs.

## Actor input object example

```json
{
  "itemUrls": [
    "https://www.goofish.com/item?id=1089872772258"
  ],
  "maxItems": 100,
  "freeShippingOnly": false,
  "includeDescription": true,
  "liteMode": false,
  "trackChanges": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

No description

## `summary` (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": [
        "https://www.goofish.com/item?id=1089872772258"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("deepmine/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": ["https://www.goofish.com/item?id=1089872772258"] }

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

```

## MCP server setup

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