# 1688 平台内商品图搜 API (alibaba1688.image_search)

- Canonical page: https://everyinfra.com/alibaba1688-api/image_search
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "alibaba1688", "action": "image_search", "params": {...}}
- Price: $0.005556 per call ($5.56 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, default 5, max 5 per call
- Mode: sync; add "mode": "async" for slow tasks

1688 平台内商品图搜用一张商品图片在 1688 上找相似商品，返回标题、价格、最小起订量、订单数、供应商名称、商品图和匹配顺序。它回答「这件货在 1688 上有没有、谁在卖、什么价」，适合拿着成品图或竞品图反查源头货源、做跨平台比价和寻找替代供应商。

`image_url` 要用一张能公开访问的 HTTPS 图片链接，每次只搜一张图。结果是相似商品的候选，不保证是同一件货，下单前请核对详情；`rank` 只是这次匹配列表里的顺序，不是销量排名。要看完整规格、库存和供应商信息，用结果的 `url` 调 1688 商品详情。

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=alibaba1688&action=image_search

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| image_url | not declared | yes | not declared | 用于 1688 image_search 的单张公开商品图片 HTTPS URL。每次只搜索一张图并返回最多 5 个相似商品；该动作不返回完整 SKU、库存或供应商详情。 |
| limit | integer (1–5) | no | 5 | 这次调用最多返回的条数，整数，1–5；不传按默认值，实际返回可能少于这个数。超过上限会在扣费前返回 422。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| url | 该记录在原平台上的可访问链接。 |
| title | 标题。平台无标题概念时（如纯文本帖）为 null。 |
| price | 价格数值，不含货币符号；币种见 currency。 |
| currency | 价格币种代码（如 CNY、USD）。price 存在但 currency 为 null 时不要假定币种。 |
| min_order_quantity | 最小起订量(MOQ)。**1688 批发场景的第一门槛，采购前先看它**。 |
| order_count | 订单数。 |
| supplier_name | 供应商名称。 |
| image_url | 图片链接。多图能力可能返回 image_urls 数组。 |
| rank | 图搜结果在本次单图匹配列表中的顺序；只表示本次返回顺序，不是平台销量榜。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "alibaba1688",
  "action": "image_search",
  "params": {
    "image_url": "https://cbu01.alicdn.com/img/ibank/15418323391_1847764777.jpg"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "alibaba1688",
        "action": "image_search",
        "params": {
            "image_url": "https://cbu01.alicdn.com/img/ibank/15418323391_1847764777.jpg",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-10-13T04:57:06Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed; the list keeps the first 2 of 5. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "alibaba1688",
  "action": "image_search",
  "results": [
    {
      "id": "•••",
      "url": "https://detail.1688.com/offer/1087685101407.html",
      "title": "pet toy Five pointed star toy TPR Star Relief Molar ring",
      "price": 1.5,
      "currency": "CNY",
      "min_order_quantity": 50,
      "order_count": 0,
      "supplier_name": "徐州经济技术开发区俊飒宠物用品经营部",
      "image_url": "https://cbu01.alicdn.com/img/ibank/O1CN01YZTAXwRx8CF1chua_!!2223051725283-0-cib.jpg",
      "rank": 1,
      "platform": "1688"
    },
    {
      "id": "•••",
      "url": "https://detail.1688.com/offer/1006441717931.html",
      "title": "狗狗玩具宠物发声玩具耐咬小狗幼犬狗狗磨牙洁齿训练搪胶玩具批发",
      "price": 1.5,
      "currency": "CNY",
      "min_order_quantity": 2,
      "order_count": 6771,
      "supplier_name": "东阳市嘉瑞宝宠物用品有限公司",
      "image_url": "https://cbu01.alicdn.com/O1CN01ltOurZ202KnOTWxaR_!!2216996446791-0-cib.jpg",
      "rank": 2,
      "platform": "1688"
    }
  ],
  "count": 5,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### 图片需要满足什么条件？

传一张能公开访问的 HTTPS 图片链接，指向商品图本身，每次只搜一张图；需要登录才能看的图片、网页地址和本地文件都不行。商品主体清晰、背景干净的图片通常更容易匹配到同款。

### `rank` 是销量排名吗？

不是。`rank` 只表示这次单图匹配返回的顺序，不代表平台销量榜，也不保证排在前面的就是同款。判断卖得好不好，请看 `order_count`。

### 搜到之后怎么看供应商详情？

图搜结果不含完整规格、库存和供应商详情。把结果的 `url` 传给 1688 商品详情，就能拿到阶梯价、起订量、规格明细和供应商资料。

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=alibaba1688
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
