imgUrlstring必填
Image URL or image reference returned by Image Conversion. Convert external images for the selected search target before searching.
https://api.sandbase.ai/v1/api/1688/search/by-imageFind 1688 wholesale products that match an image URL, with prices, minimum order quantity and supplier info. Sort and filter by price, MOQ, factory, verified supplier and shipping.
PNG、JPEG、WebP 或 GIF · 最多 20 MiB
您的輸出會顯示在這裡
完成輸入後,點擊執行。
Returns 1688 wholesale products that look like a given image. It needs an image URL in imgUrl. Each result has the minimum order quantity, sales counts and shop details.
curl -X POST "https://api.sandbase.ai/v1/api/1688/search/by-image" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"imgUrl": "https://cbu01.alicdn.com/img/ibank/O1CN01dVDdAa1g2z0YPmnXe_!!2218348464085-0-cib.jpg"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
imgUrl | string | Yes | Image URL or image reference returned by Image Conversion. Convert external images for the selected search target before searching. |
freeShipping | boolean | No | Filter for free shipping. |
isFactory | boolean | No | Filter by factory status. |
moq | integer | No | Minimum order quantity filter. |
newArrival | boolean | No | Filter for new products. |
page | integer | No | Page number, starting at 1. |
pageSize | integer | No | Number of items requested per page. The returned count may differ. |
priceEnd | string | No | Maximum price filter in CNY. |
priceStart | string | No | Minimum price filter in CNY. |
sort | string | No | Product sort order. |
supportDropshipping | boolean | No | Filter for support for dropshipping. |
verifiedSupplier | boolean | No | Filter for verified sellers. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"cat_id": null,
"filters": {},
"has_next_page": true,
"items": [
{
"category_path": [
"1036898"
],
"delivery_info": {
"area_from": [
"江苏"
]
},
"goods_score": null,
"img": "https://cbu01.alicdn.com/img/ibank/O1CN01izT11Z1IAizOygYsq_!!934370853-0-cib.jpg",
"is_ad": true,
"item_id": 1056868355487,
"item_repurchase_rate": "79%",
"moq": 1,
"price": "22.8",
"price_info": {
"origin_price": null,
"sale_price": "22.8"
},
"product_url": "https://detail.1688.com/offer/1056868355487.html",
"quantity_begin": 1
}
],
"keyword": "",
"page": 1,
"page_size": 20,
"sort": "default",
"total_count": 700
}
| Field | Meaning |
|---|---|
items[].item_id / items[].product_url | The 1688 offer ID and the link to the product page. The ID is also the number at the end of the URL. |
items[].title / items[].img | Product title and main image URL. The title is in Chinese. |
items[].moq / items[].quantity_begin | Minimum order quantity for the product. |
items[].sale_info.orders_count | Number of orders for the product. |
items[].sale_info.sale_quantity_int | Units sold as an integer. sale_quantity holds the same count as a string. |
items[].item_repurchase_rate | Repurchase rate shown as a percent string, for example 79%. |
items[].shop_info.company_name / items[].shop_info.member_id | Name of the selling company and its member ID. |
items[].shop_info.is_factory / items[].shop_info.is_super_factory / items[].shop_info.factory_inspection | Flags that show whether the shop is marked as a factory, a super factory, or has a factory inspection. |
items[].is_ad | true when the result is an ad placement. |
Image Search uses imgUrl, not a keyword. Follow the current reference's supported image URL or converted image-reference requirements; the current README instructs you to convert external images first. Do not infer that every publicly accessible product photo works directly. Keyword Search and Image Search use different factory-related filters. A visual match is a candidate for specification checks, not proof of the same item or a verified supplier.
For keyword and known-link examples, see the 1688 sourcing guide. Its Python code does not execute Image Conversion or Image Search.
page and pageSize to page through results. Read has_next_page to see if more pages exist, and total_count for the total number of matches.imgUrl should be an image URL or a reference from Image Conversion. Convert external images first.items[].category_path is a list of category IDs as strings.item_id to 1688 Product Details.$0.014286 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
開始建置
具備統一驗證與用量追蹤的平台 API 端點。
curl -X POST "https://api.sandbase.ai/v1/api/1688/search/by-image" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"page": 1,
"sort": "default",
"imgUrl": "https://cbu01.alicdn.com/img/ibank/O1CN01Z5b6Ax1Bs2nVv6E3n_!!2216226597326-0-cib.jpg",
"pageSize": 20
}'請將您的 SandBase API 金鑰設定在伺服器環境中。請求使用 Bearer 驗證。
export SANDBASE_API_KEY="YOUR_API_KEY"請將金鑰保留在伺服器端,不要在瀏覽器程式碼中公開。
imgUrlstring必填Image URL or image reference returned by Image Conversion. Convert external images for the selected search target before searching.
pageintegerPage number, starting at 1.
預設:1
pageSizeintegerNumber of items requested per page. The returned count may differ.
預設:20
sortstringProduct sort order.
預設:"default"
可能值:default, sales, price_up, price_down
moqintegerMinimum order quantity filter.
priceStartstringMinimum price filter in CNY.
priceEndstringMaximum price filter in CNY.
supportDropshippingbooleanFilter for support for dropshipping.
isFactorybooleanFilter by factory status.
verifiedSupplierbooleanFilter for verified sellers.
freeShippingbooleanFilter for free shipping.
newArrivalbooleanFilter for new products.
這是此 API 的已儲存範例回應;檢視時不會發出即時請求。
尚未發布已儲存回應。請在 Playground 中執行 API 以檢視其回應。
探索更多
| API | 價格 | 回應 |
|---|---|---|
1688 Image Search此 API 1688 | 每次呼叫 $0.014286 | JSON |
1688 | 每次呼叫 $0.014286 | JSON |
1688 | 每次呼叫 $0.014286 | JSON |
1688 | 每次呼叫 $0.014286 | JSON |
1688 | 每次呼叫 $0.014286 | JSON |
1688 | 每次呼叫 $0.014286 | JSON |
問題
使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/1688/search/by-image。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。
每次 $0.014286,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。
必要:imgUrl (string)。 選填:page (integer), pageSize (integer), sort(default, sales, price_up, price_down 之一), moq (integer), priceStart (string) 和 priceEnd (string),以及另外 5 個。 本頁的 Parameters 表格與 Playground 會列出每個欄位。
在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。
不需要。1688 Image Search 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 1688 API 存取權。