# SMZDM Deals Scraper (什么值得买) (`perceptive_city_af7/smzdm-deals-scraper`) Actor

Collect public SMZDM (什么值得买) featured deals, including listed price, merchant, deal link, and source historical-low badge when present.

- **URL**: https://apify.com/perceptive_city_af7/smzdm-deals-scraper.md
- **Developed by:** [fall Rainy](https://apify.com/perceptive_city_af7) (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 $3.75 / 1,000 featured deals

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

## SMZDM Deals Scraper (什么值得买)

Collect public featured deals (精选好价) from SMZDM / 什么值得买. Each record contains the listed deal price (到手价), merchant (商城), and canonical SMZDM deal link. Source labels such as historical low (历史低价) appear when the deal card has one.

The Actor reads anonymous public lists and uses deal IDs to deduplicate results within a run. Output excludes account and comment data. The same fields are available to API and MCP callers.

The featured landing page may include deals repeated on the numbered pages. Increase `maxPages` to read farther when collecting a larger set.

### Input

| Field | Default | Description |
| --- | --- | --- |
| `maxItems` | `10` | Maximum distinct deals to save, from 1 to 200. |
| `maxPages` | `2` | Maximum featured-deal pages to read, from 1 to 10. The Actor stops when it reaches the item limit or the source stops serving subsequent pages. |

### Dataset fields

| Field | Description |
| --- | --- |
| `deal_id` | Unique SMZDM deal ID. |
| `title` | Deal card title. |
| `price_text` | Listed price text with any displayed qualifiers included by the price field. |
| `merchant` | Merchant named by the deal card. |
| `url` | Canonical public SMZDM deal link. |
| `source_page` | Featured-deal page number. |
| `history_low_label` | Exact historical-low badge when shown by SMZDM, otherwise `null`. |

Treat historical-low badges as source labels. The listing provides a snapshot of those labels and the displayed deal prices.

Start with `{}` for up to 10 deals or use `{"maxItems":3,"maxPages":1}` to check only the first featured page.

#### Sample output

This saved deal shows the source price qualifiers and a null historical-low badge.

```json
{
  "deal_id": "186672342",
  "title": "34天新低 闪迪 TF内存卡适用大疆pocket3 运动相机无人机 256GB 读速190M/S",
  "price_text": "¥302 需用券 原价 ¥399",
  "merchant": "京东",
  "url": "https://www.smzdm.com/p/186672342/",
  "source_page": 1,
  "history_low_label": null
}
```

### Pay-per-event pricing

- $0.00005 per Actor start.
- $0.005 per saved deal ($5 per 1,000 deals).

The listed per-record rate applies to the Free plan. Starter, Scale and Business save 5%, 15% and 25% on saved records. The start fee is the same on all plans. [Apify pricing](https://apify.com/perceptive_city_af7/smzdm-deals-scraper/pricing)

### 中文说明

采集什么值得买（SMZDM）的公开精选好价，返回商品标题、页面标价、商城、原始链接和可识别的历史低价标签。默认最多保存 10 条，最多读取 2 页。同一次运行按站内好价 ID 去重。价格和标签以采集时的页面为准。

# Actor input Schema

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

Maximum number of distinct deals to save.

## `maxPages` (type: `integer`):

Maximum number of public featured-deal pages to read. The Actor stops earlier when maxItems is reached or no next page is available.

## Actor input object example

```json
{
  "maxItems": 10,
  "maxPages": 2
}
```

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

// Run the Actor and wait for it to finish
const run = await client.actor("perceptive_city_af7/smzdm-deals-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("perceptive_city_af7/smzdm-deals-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 perceptive_city_af7/smzdm-deals-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,perceptive_city_af7/smzdm-deals-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/81GXKlIURUAlYAKtO/builds/lF8quWhcrEbx2s65k/openapi.json
