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
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก 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.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform 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 key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ 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 นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
1688 Image SearchAPI นี้ 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 ไปที่ https://api.sandbase.ai/v1/api/1688/search/by-image โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน 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 ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น 1688 Image Search ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง 1688 API แยกต่างหาก