imgUrlstringobligatoire
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 ou GIF · 20 MiB maximum
Votre sortie apparaîtra ici
Complétez les entrées, puis cliquez sur Exécuter.
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.
Commencer à construire
Point de terminaison de l'API de la plateforme avec authentification unifiée et suivi de l'utilisation.
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
}'Définissez votre clé API SandBase dans l'environnement de votre serveur. Les requêtes utilisent l'authentification Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conservez votre clé côté serveur. Ne l'exposez pas dans le code du navigateur.
imgUrlstringobligatoireImage URL or image reference returned by Image Conversion. Convert external images for the selected search target before searching.
pageintegerPage number, starting at 1.
Par défaut : 1
pageSizeintegerNumber of items requested per page. The returned count may differ.
Par défaut : 20
sortstringProduct sort order.
Par défaut : "default"
Valeurs possibles : 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.
Exemple de réponse enregistré pour cette API ; aucune requête en direct n'est effectuée lors de l'affichage.
Aucune réponse enregistrée n'a été publiée. Exécutez l'API dans Playground pour inspecter sa réponse.
Explorer plus
| API | Prix | Réponse |
|---|---|---|
1688 Image SearchCette API 1688 | $0.014286 par appel | JSON |
1688 | $0.014286 par appel | JSON |
1688 | $0.014286 par appel | JSON |
1688 | $0.014286 par appel | JSON |
1688 | $0.014286 par appel | JSON |
1688 | $0.014286 par appel | JSON |
Questions
Envoyez une requête POST à https://api.sandbase.ai/v1/api/1688/search/by-image avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.
$0.014286 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.
Obligatoire : imgUrl (string). Facultatif : page (integer), pageSize (integer), sort (l’un de default, sales, price_up, price_down), moq (integer), priceStart (string) et priceEnd (string) et 5 de plus. Le tableau des paramètres et le Playground sur cette page listent tous les champs.
Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.
Non. 1688 Image Search fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API 1688 séparément.