Skip to content

nexscope-ai/nexscope-ecommerce-skills / ecommerce-1688-search-by-image

ecommerce-1688-search-by-image

Verified

Perform image-based product search on the 1688 platform. Use an image URL to find visually similar supplier products, returning title, price, minimum order quantity, monthly sales, repurchase rate, trade score, and seller identity. Triggered when users mention 1688 image search, 1688 visual search, find supplier by image, reverse image search 1688, 1688 product sourcing by image, or Alibaba 1688 image search. Even if the user does not explicitly mention "image search," this skill should be triggered whenever a user provides an image URL and wants to find matching or similar products on the 1688 wholesale platform.

FileKindSize
SKILL.mdskill md11.9 KB
manifest.jsonconfig391 B
references/api.mdmarkdown11.3 KB
scripts/alibaba1688_image_search.pyscript9.4 KB
scripts/upload_image.pyscript10.0 KB

references/api.md

View on GitHub
# 1688 Image Search API Reference

## API Specification

- **Endpoint**: `${NEXSCOPE_PROXY_BASE}/api/v1/tools/research/alibaba1688/imageSearch`
- **HTTP Method**: POST, Content-Type: application/json
- **Authentication**: Header `Authorization: Bearer <api_key>`; api_key is read from the `NEXSCOPE_API_KEY` environment variable (if unset, follow authentication guidance in SKILL.md)
- **Timeout**: 120s

`NEXSCOPE_PROXY_BASE` defaults to `https://api.nexscope.ai`. Invoking this Skill consumes credits. HTTP 401 means Nexscope authentication failed; HTTP 402 means insufficient credits. Do not substitute another buyer/store after marketplace authorization failure or automatically retry paid requests.

## Request Parameters

POST Body(JSON):

| Parameter | Type | Required | Default | Description |
|------|------|------|--------|------|
| imageUrl | string | Conditionally required | - | Image URL; ensure it is valid and publicly accessible. Maximum length: 1000. Only png/jpg/jpeg are supported; webp/gif and other formats are not supported. Exactly one of imageUrl/imageBase64/imageId is required |
| imageBase64 | string | Conditionally required | - | Raw Base64-encoded image string without the `data:image/jpeg;base64,` prefix. Only png/jpg/jpeg are supported (used when imageUrl is empty) |
| imageId | string | Conditionally required | - | Image ID (1688 image ID), also returned in image search results. Include imageId when requesting page>1 to speed up responses |
| page | int | No | 1 | Page number, starting from 1 |
| pageSize | int | No | 20 | Products returned per page, maximum 50 |
| priceStart | string | No | - | Minimum price filter (CNY), e.g. 10 |
| priceEnd | string | No | - | Maximum price filter (CNY), e.g. 100 |
| filter | string | No | - | Filters, separated by commas. See Supported Filters below for valid values |
| sort | string | No | {"monthSold":"desc"} | Sort criteria in JSON format {sortField: sortOrder}. Valid fields: price, rePurchaseRate, monthSold; orders: asc/desc |
| keyword | string | No | - | Keyword to search within results |
| productCollectionId | string | No | - | Product collection ID; select one. See Supported Product Collection IDs below for valid values |

### Supported Filters

Separate multiple filters with commas, for example `1688Selection,totalEpScoreLv1,qrr0`.

| Value | Description |
|----|------|
| 1688Selection | 1688 Select |
| certifiedFactory | Certified factory |
| totalEpScoreLv1 | 5-star overall experience score |
| totalEpScoreLv2 | 4-star overall experience score |
| totalEpScoreLv3 | 3-star overall experience score |
| totalEpScoreLv4 | 2-star overall experience score |
| qrr0 | No quality-related refunds |
| qrr1 | Quality-related refund rate <1% |
| qrr5 | Quality-related refund rate <5% |
| qrr10 | Quality-related refund rate <10% |
| shipInToday | Same-day dispatch |
| shipIn24Hours | Dispatch within 24 hours |
| shipIn48Hours | Dispatch within 48 hours |
| noReason7DReturn | 7-day no-reason returns |
| isOnePsale | Single-item dropshipping |
| isOnePsaleFreePost | Single-item dropshipping with free shipping |
| new7 | New within 7 days |
| new30 | New within 30 days |
| isQqyx | Global Select |
| JPFL | Japan shipping route |
| USFL | United States shipping route |
| KRFL | South Korea shipping route |
| VNFL | Vietnam shipping route |
| SAFL | Saudi Arabia shipping route |
| RUFL | Russia shipping route |
| KZFL | Kazakhstan shipping route |
| HKFL | Hong Kong shipping route |
| MOFL | Macao shipping route |
| TWFL | Taiwan shipping route |

### Supported Sort Fields

| Field | Description |
|------|------|
| price | Price |
| monthSold | Monthly units sold |
| rePurchaseRate | Repurchase rate |

Sort order: `asc` (ascending), `desc` (descending). The body field is a JSON-encoded string: `{"sort":"{\"price\":\"asc\"}"}`; do not send an object.

### Supported Product Collection IDs

| ID | Description |
|----|------|
| 262105288 | Cross-border product collection |
| 262105286 | Cross-border product collection |
| 262105253 | Cross-border product collection |
| 262105281 | Cross-border product collection |
| 262105280 | Cross-border product collection |
| 262105277 | Cross-border product collection |
| 262105276 | Cross-border product collection |
| 262105274 | Cross-border product collection |
| 262105269 | Cross-border product collection |
| 262185282 | Cross-border product collection |

## Nexscope response envelope

These research endpoints return a platform object with numeric `code`, nullable `msg`, and business `data`. Only outer `code: 0` means success; `200`, string codes, missing codes, and HTTP 200 alone do not. A nonzero code is a platform error: show `msg` and do not interpret the payload as a successful result.

`msg` preserves the upstream message when available; Chinese messages are translated to English by Nexscope. A successful response without a message has `msg: null`. Do not infer success or retry behavior from the message text. On both success and failure, the direct fields `code`, `errcode`, `errorCode`, `msg`, `errmsg`, `message`, and `errorMsg` are removed from public `data`. Read the message only from outer `msg`; deeper business fields are preserved, including nested `code` and `status`.

Business field tables and abbreviated business examples below describe `data`, unless explicitly labeled as a complete platform response. For example, a business `products` field is at HTTP `data.products`, and a business `data` array is at HTTP `data.data`. The research endpoints already had this outer envelope; no additional wrapper is added.

```json
{"code":0,"msg":null,"data":{}}
```

Metadata includes string `ts` (epoch milliseconds), string `cost` (elapsed milliseconds, not credits), `time`, and nullable `traceId`. Handle network/HTTP failures before the platform code; gateway failures may not be platform JSON. Keep the existing billing-header guidance separate from elapsed time.

## Response Structure

| Field | Type | Description |
|------|------|------|
| imageId | string | Uploaded image ID (send it back in pagination requests for faster responses) |
| total | integer | Product count on this page |
| totalPage | integer | Total pages |
| sourceType | string | Source type (fixed value "1688") |
| type | string | Render style (fixed value "productWorkbenches") |
| columns | array | Render column definitions |
| costToken | integer | Tokens consumed |
| products | array | Product list (see product fields below) |

### Product Fields

| Field | Type | Description |
|------|------|------|
| offerId | string | Product ID |
| asin | string | Product number (same as offerId) |
| imageUrl | string | Product image |
| title | string | Product title |
| price | number | Wholesale price (yuan) |
| consignPrice | number | Single-item dropship price (yuan) |
| salesQuantity | integer | Monthly units sold |
| estimatedSalesAmount | number | Estimated sales revenue |
| asinUrl | string | Product URL |
| isOnePsale | string | Whether single-item dropshipping is supported (provider-localized value; display as Yes or No in English) |
| isJxhy | string | Whether this is a selected sourcing product (provider-localized value; display as Yes or No in English) |
| sellerIdentities | string | Seller identity (provider-localized value; English labels: Super Factory, Power Seller, or TrustPass member) |
| offerIdentities | string | Product tag (provider-localized value; display the tag as Select in English) |
| repurchaseRate | string | Repurchase rate |
| tradeScore | string | Product transaction score |
| compositeServiceScore | string | Overall service experience score |
| sendGoodsAddressText | string | Shipping origin |
| deliveryTime | string | Dispatch time (24/48 hours) |
| quantityBegin | integer | Minimum order quantity |
| hasPromotion | string | Whether a promotion is available (provider-localized value; display as Yes or No in English) |
| promotionType | string | Promotion type |
| isPatentProduct | string | Whether this is a patented product (provider-localized value; display as Yes or No in English) |
| isSelect | string | Cross-border Select product collection indicator |
| currency | string | Currency (fixed value "¥") |
| sourceType | string | Source type (fixed value "1688") |
| sourceTool | string | Provider-localized source label for 1688 image search; display as "1688 Image Search" |
| dataType | string | Data type (fixed value "monthlyData") |

## Error Codes

HTTP 200 does not prove business success. Read only the numeric outer platform `code`: `0` succeeds and any other value fails. Show outer `msg`; never test removed provider codes or nested business `code` as the platform status. Authentication, permissions, balance, and validation failures may be platform errors even with HTTP 200; also handle non-2xx HTTP and non-JSON responses.

### Recovery guidance

| Condition | Action |
|---|---|
| Authentication failed | HTTP 401 or authorized error: follow authentication guidance in SKILL.md. |
| Insufficient credits | HTTP 402: follow authentication guidance in SKILL.md. |

## curl Examples

### Basic Image Search

```bash
curl -X POST ${NEXSCOPE_PROXY_BASE:-https://api.nexscope.ai}/api/v1/tools/research/alibaba1688/imageSearch \
  -H "Authorization: Bearer $NEXSCOPE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "User-Agent: Nexscope-Skill/2.0" \
  -d '{
    "imageUrl": "https://m.media-amazon.com/images/I/719mRAn2VrL._AC_SL1500_.jpg",
    "page": 1,
    "pageSize": 20
  }'
```

### With Filters and Sorting

```bash
curl -X POST ${NEXSCOPE_PROXY_BASE:-https://api.nexscope.ai}/api/v1/tools/research/alibaba1688/imageSearch \
  -H "Authorization: Bearer $NEXSCOPE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "User-Agent: Nexscope-Skill/2.0" \
  -d '{
    "imageUrl": "https://m.media-amazon.com/images/I/719mRAn2VrL._AC_SL1500_.jpg",
    "page": 1,
    "pageSize": 20,
    "filter": "1688Selection,totalEpScoreLv1,qrr0",
    "sort": "{\"price\":\"desc\"}"
  }'
```

### Pagination (Using imageId)

```bash
curl -X POST ${NEXSCOPE_PROXY_BASE:-https://api.nexscope.ai}/api/v1/tools/research/alibaba1688/imageSearch \
  -H "Authorization: Bearer $NEXSCOPE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "User-Agent: Nexscope-Skill/2.0" \
  -d '{
    "imageId": "abc123456",
    "page": 2,
    "pageSize": 20
  }'
```

### Price Range Filter

```bash
curl -X POST ${NEXSCOPE_PROXY_BASE:-https://api.nexscope.ai}/api/v1/tools/research/alibaba1688/imageSearch \
  -H "Authorization: Bearer $NEXSCOPE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "User-Agent: Nexscope-Skill/2.0" \
  -d '{
    "imageUrl": "https://m.media-amazon.com/images/I/719mRAn2VrL._AC_SL1500_.jpg",
    "page": 1,
    "pageSize": 20,
    "priceStart": "10",
    "priceEnd": "100"
  }'
```

---

## API Key request rate and retries

All API Keys of one Nexscope user share the public API execution request-rate allowance, measured in any rolling 1-second window. The allowed RPS depends on that user's entitlements; it is not a universal 1 RPS. One Skill operation may issue multiple public API requests, each of which uses the allowance.

HTTP 429 with Nexscope outer code `13012` means request-rate exhaustion: honor the response's `Retry-After`. Outer code `13013` means concurrent-request exhaustion, not rate exhaustion; honor `Retry-After` when supplied. Check the HTTP status and outer JSON code separately. Do not automatically replay writes or requests with uncertain outcomes; first reconcile the operation's state.
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexUnverifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall