imgUrlstringbắt buộc
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 hoặc GIF · tối đa 20 MiB
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp Run.
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.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
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
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
imgUrlstringbắt buộcImage URL or image reference returned by Image Conversion. Convert external images for the selected search target before searching.
pageintegerPage number, starting at 1.
Mặc định: 1
pageSizeintegerNumber of items requested per page. The returned count may differ.
Mặc định: 20
sortstringProduct sort order.
Mặc định: "default"
Giá trị có thể dùng: 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.
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
Chưa có phản hồi đã lưu nào được công bố. Chạy API trong Playground để xem phản hồi.
Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
1688 Image SearchAPI này 1688 | $0.014286 mỗi lần gọi | JSON |
1688 | $0.014286 mỗi lần gọi | JSON |
1688 | $0.014286 mỗi lần gọi | JSON |
1688 | $0.014286 mỗi lần gọi | JSON |
1688 | $0.014286 mỗi lần gọi | JSON |
1688 | $0.014286 mỗi lần gọi | JSON |
Hướng dẫn:Best 1688 API in 2026: Pricing Compared
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/1688/search/by-image với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
$0.014286 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.
Bắt buộc: imgUrl (string). Tùy chọn: page (integer), pageSize (integer), sort (một trong số default, sales, price_up, price_down), moq (integer), priceStart (string) và priceEnd (string) và 5 mục khác. Bảng Parameters và Playground trên trang này liệt kê mọi trường.
Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.
Không. 1688 Image Search chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của 1688.