imgUrlstringwajib
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, atau GIF · maksimum 20 MiB
Output Anda akan muncul di sini
Lengkapi input, lalu klik 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.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
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
}'Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
imgUrlstringwajibImage URL or image reference returned by Image Conversion. Convert external images for the selected search target before searching.
pageintegerPage number, starting at 1.
Default: 1
pageSizeintegerNumber of items requested per page. The returned count may differ.
Default: 20
sortstringProduct sort order.
Default: "default"
Nilai yang mungkin: 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.
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
Belum ada respons tersimpan yang dipublikasikan. Jalankan API di Playground untuk melihat responsnya.
Jelajahi lebih lanjut
| API | Harga | Respons |
|---|---|---|
1688 Image SearchAPI ini 1688 | $0.014286 per panggilan | JSON |
1688 | $0.014286 per panggilan | JSON |
1688 | $0.014286 per panggilan | JSON |
1688 | $0.014286 per panggilan | JSON |
1688 | $0.014286 per panggilan | JSON |
1688 | $0.014286 per panggilan | JSON |
Pertanyaan
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/1688/search/by-image dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.
$0.014286 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.
Wajib: imgUrl (string). Opsional: page (integer), pageSize (integer), sort (salah satu dari default, sales, price_up, price_down), moq (integer), priceStart (string) dan priceEnd (string) dan 5 lainnya. Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.
Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.
Tidak. 1688 Image Search berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API 1688 secara terpisah.