# Pinduoduo (拼多多) product feed (`data_dino/pinduoduo-products-scraper`) Actor

Collect structured Pinduoduo product cards from the public anonymous recommendation feed: id, title, URL, images, price fields, discount percent, demand signals, and a target-price verdict (BUY_SIGNAL / WATCH / MONITOR).

- **URL**: https://apify.com/data_dino/pinduoduo-products-scraper.md
- **Developed by:** [Data Dino](https://apify.com/data_dino) (community)
- **Features:** Limited permissions
- **Stats:** 23 total users, 10 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## Pinduoduo (拼多多) product feed

Collects structured product cards from Pinduoduo's **public anonymous recommendation
feed** — no login required. For each product you get: id, title, URL, images, price
fields (group / listed / market), discount percent, sales & demand signals, and a
target-price opportunity verdict.

### What you can do with it

- **Source products** — walk the feed and pull structured cards (id, title, URL,
  prices, discounts, demand signals).
- **Find opportunities** — set a target price in CNY; items at or below it get a
  `BUY_SIGNAL` verdict, items within +15% (or on a price drop) get `WATCH`, the rest
  `MONITOR`.
- **Track price changes** — feed a previous run's rows back in as a snapshot to get
  per-product price deltas across runs.
- **Filter locally** — by title keyword, min/max price, and sort by price, discount,
  demand, or price delta.

### Input

| Field | Type | Default | What it does |
|---|---|---|---|
| `maxItems` | integer | 10 | Stop after this many product rows. |
| `targetPriceCny` | number | — | Procurement target → `BUY_SIGNAL` / `WATCH` / `MONITOR`. |
| `keywordContains` | string | — | Keep only titles containing this text. |
| `minPriceCny` / `maxPriceCny` | number | — | Price range filter. |
| `sortBy` | select | feed | `feed` / `price` / `price-desc` / `discount` / `demand` / `price-delta`. |
| `source` | select | api | `api` (feed) / `ssr` (home HTML) / `auto`. |
| `useProxy` | boolean | true | Use the bundled managed residential proxy for deeper coverage. |
| `delay` | number | 0.4 | Seconds between requests. |
| `listId` | string | — | Pin the feed permutation seed. |
| `startOffset` | integer | 0 | Start position in the feed. |
| `staleLimit` | integer | 3 | Consecutive barren passes that stop the walk. |
| `maxSeconds` | integer | 240 | Wall-clock budget for the run. |
| `previousSnapshot` | array | — | Prior result rows for price-delta tracking. |

### Output

One dataset item per product. Each item includes the card's `action` verdict, price
fields, discount, demand signals, and source/rank metadata. A `MARKET_SUMMARY`
(median price, action counts, top opportunities) is reported on the run log.

### Notes

- The feed is a **per-exit permutation** of a ~90–110 product catalogue, so a run
  may return fewer than `maxItems` even after walking every offset — that is the
  honest ceiling of the public feed (same caveat as the reference extractor).
- Keyword search and full product detail endpoints are signed by PDD's client-side
  JS and are not accessible anonymously; rows are **cards**, not detail pages.
- The public feed needs **no login or cookie** — the bundled proxy is for catalogue
  depth, not access.

# Actor input Schema

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

Stop after this many product rows. Note: the feed is a per-exit permutation of a ~90-110 product catalogue, so the walk may exhaust below this number; it stops when consecutive passes add no new products.

## `targetPriceCny` (type: `number`):

Procurement target price. Items at or below this get a BUY_SIGNAL verdict; within +15% (or showing a price drop) get WATCH; otherwise MONITOR.

## `keywordContains` (type: `string`):

Only keep products whose title contains this text (e.g. 耳机). Applied locally after the crawl — the feed has no server-side search.

## `minPriceCny` (type: `number`):

Only keep products priced at or above this amount.

## `maxPriceCny` (type: `number`):

Only keep products priced at or below this amount.

## `sortBy` (type: `string`):

Row order: feed (as served), price ascending/descending, biggest discount first, demand (sales), or price delta (biggest drop).

## `source` (type: `string`):

api = recommendation feed API (default); ssr = home-page HTML only; auto = api then ssr fallback.

## `useProxy` (type: `boolean`):

Route through the bundled rotating residential proxy for deeper catalogue coverage. Disable for fewer products but no proxy dependency.

## `delay` (type: `number`):

Seconds between feed requests.

## `listId` (type: `string`):

Pin the feed permutation seed. Leave blank to use a random seed per pass.

## `startOffset` (type: `integer`):

Start position within the feed.

## `staleLimit` (type: `integer`):

Consecutive passes that add fewer than 2 new products end the walk.

## `maxSeconds` (type: `integer`):

Wall-clock budget for the whole run.

## `previousSnapshot` (type: `array`):

Optional array of prior result rows to diff prices against (priceDelta / WATCH on drops). Leave empty for a first run.

## Actor input object example

```json
{
  "maxItems": 10,
  "sortBy": "feed",
  "source": "api",
  "useProxy": true,
  "delay": 0.4,
  "startOffset": 0,
  "staleLimit": 3,
  "maxSeconds": 240
}
```

# Actor output Schema

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

All scraped Pinduoduo product cards, one item per row.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("data_dino/pinduoduo-products-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("data_dino/pinduoduo-products-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 '{}' |
apify call data_dino/pinduoduo-products-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,data_dino/pinduoduo-products-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/5WuysISIwPUkNAFlo/builds/Gex0Dssxmtg3ucmaU/openapi.json
