# 1688以图搜款 (`affectionate_mound/1688yi-tu-sou-kuan`) Actor

Search the first page of 1688 suppliers from one or more product images.

- **URL**: https://apify.com/affectionate_mound/1688yi-tu-sou-kuan.md
- **Developed by:** [Gon](https://apify.com/affectionate_mound) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 匹配图片图搜

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

## 1688 以图搜同款｜供应商首屏采集

输入一张商品图片或一组商品图片，获取 1688 以图搜同款的首屏供应商列表。适合跨境选品、供应链初筛、竞品找货与图片同款比对。

无需 Amazon ASIN，不打开 1688 商品详情页，也不把列表价伪装成 SKU 核价。

### 适合谁使用

- 跨境卖家：用商品主图快速寻找 1688 同款和供应商候选；
- 采购与选品团队：批量建立候选供应商列表，再人工复核详情规格；
- 自动化工作流：通过 Apify API 把图片 URL 转为结构化 JSON 结果；
- 内容或电商运营：对图片素材进行轻量的同款货源初筛。

这是一个**轻量首屏列表工具**：速度、结构化输出和批量处理优先，不把不确定的列表字段伪装成详情事实。

### 你会得到什么

每张图片会产出一条 Dataset 记录，首屏最多 20 个商品卡。每个商品卡尽可能返回：

- 商品标题、主图、1688 商品链接与商品 ID
- 列表价（`list_price_cny`，仅用于初筛，不是详情 SKU 核价）
- 月销量、供应商名称、省市
- 上架时间、店铺年限、店铺综合分、复购率、预计发货时效
- 未加工的 `raw` 原始商品卡数据，便于二次分析

### 输入方法

单张图片：

```json
{
  "image": "https://example.com/product-image.jpg"
}
```

批量图片（最多 20 张）：

```json
{
  "images": [
    "https://example.com/product-1.jpg",
    "https://example.com/product-2.jpg"
  ],
  "customRegion": "0,500,0,500"
}
```

也支持 `data:image/...;base64,...` 格式。`customRegion` 为裁剪区域，默认值为 `0,500,0,500`。

### 计费说明

- **$0.005 / 张有匹配结果的图片图搜（$5 / 1,000 张）**。
- 当一次运行至少返回一张匹配图片时，另收一次 **$0.01 运行基础费**；批量任务只收一次。
- 只有返回至少一个供应商候选商品卡才计费；正常的“无匹配结果”免费。
- 网络、代理、图片下载或 1688 接口技术失败免费；全批无匹配时不收基础费。
- 批量任务按图片逐张计费；用户可在运行前设置最高消费上限。
- Actor 会使用 Apify Proxy；每张图在同一代理会话内完成下载、上传和搜索，失败时最多换会话重试一次。

示例：单张图片成功匹配时为 `$0.01 + $0.005 = $0.015`；同一次任务内 20 张都成功匹配时为 `$0.01 + 20 × $0.005 = $0.11`。无匹配或技术失败为 `$0.00`。

### 工作方式与限制

1. 下载用户提供的图片；
2. 上传到 1688 图搜接口；
3. 使用指定裁剪区域搜取第一页；
4. 返回最多 20 张商品卡；
5. 不翻页、不抓取详情页、不提供 SKU 详情价。

### 不提供的内容

- 不采集 1688 详情页、SKU 价格、阶梯价、库存或运费；
- 不翻页，不承诺“原厂”“完全同款”或图片相似度结论；
- 不翻译英文标题，不计算落地成本、利润、认证或合规建议；
- 不接受关键词、ASIN 或 offerId 作为检索输入。

这些信息需要在后续人工采购确认或独立详情采集流程中核实。

为避免对服务造成不必要负担，单次最多 20 张图片、单张图片最大 15 MiB，最多 3 张图片并行。

### 使用提醒

请仅提交你拥有权利或已获授权使用的图片，并遵守 1688 与图片来源网站的规则。搜索结果用于供应链初筛；下单前请自行在商品详情页确认规格、起订量、SKU 价格、运费与库存。

# Actor input Schema

## `image` (type: `string`):

http(s) 图片地址，或 data:image/...;base64 图片数据。

## `images` (type: `array`):

最多 20 张；每张可为 http(s) 图片地址或 data:image/...;base64 图片数据。仅返回匹配结果的图片按张计费。

## `customRegion` (type: `string`):

像素裁剪区域，格式 x1,x2,y1,y2；默认 0,500,0,500。

## `proxySettings` (type: `object`):

建议保留 Apify Proxy 默认配置。图片下载、1688 上传及搜索均通过同一代理会话完成。

## Actor input object example

```json
{
  "customRegion": "0,500,0,500",
  "proxySettings": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

按输入图片返回的 1688 首屏供应商候选。

# 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("affectionate_mound/1688yi-tu-sou-kuan").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("affectionate_mound/1688yi-tu-sou-kuan").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 affectionate_mound/1688yi-tu-sou-kuan --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,affectionate_mound/1688yi-tu-sou-kuan"
        }
    }
}
```

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/O47558HcdlSMokfMd/builds/cMzOsnpeJwP5jmNDZ/openapi.json
