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/cross-border-by-imageFind 1688 cross-border products that match an image URL, with translated titles, sorting and sourcing filters such as dropshipping, factory and verified supplier.
PNG、JPEG、WebP 或 GIF · 最大 20 MiB
您的输出将显示在这里
完成输入,然后点击运行。
Returns a list of 1688 cross-border products that match an image, plus the paging and sort values used for the request. It needs an image URL in imgUrl. You can also set the output language, sort order and sourcing filters.
sales to pick a sourcing candidate.curl -X POST "https://api.sandbase.ai/v1/api/1688/search/cross-border-by-image" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"imgUrl": "https://cbu01.alicdn.com/img/ibank/O1CN01Zb1jbH1Bs2wE7Uu3W_!!2215541593486-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. |
language | string | No | Output language. |
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.
{
"filters": {},
"items": [],
"page": 1,
"page_size": 20,
"sort": "default",
"total_count": 0
}
| Field | Meaning |
|---|---|
items[] | List of matching products on the current page. In the sample response it is empty, so no matches were found for that image. |
total_count | Total number of matches reported for the search. The sample response returns 0. |
page | Page number of this result, starting at 1. |
page_size | Number of items requested per page. The number of items actually returned may differ. |
sort | Sort order applied to the results. The sample response shows default. |
filters | Object that holds the filters applied to the search. It is empty when no filters are sent. |
imgUrl is required. Use page and pageSize to move through results.imgUrl accepts an image URL or an image reference returned by Image Conversion. Convert external images before searching.$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/cross-border-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/O1CN01Zb1jbH1Bs2wE7Uu3W_!!2215541593486-0-cib.jpg",
"language": "en",
"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.
languagestringOutput language.
默认值:"en"
可选值:en, zh, ru, th, pt, es, tr, vi, ja, ko
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
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 | $0.014286 每次调用 | JSON |
1688 | $0.014286 每次调用 | JSON |
1688 | $0.014286 每次调用 | JSON |
1688 | $0.014286 每次调用 | JSON |
1688 | $0.014286 每次调用 | JSON |
1688 | $0.014286 每次调用 | JSON |
问题
向 https://api.sandbase.ai/v1/api/1688/search/cross-border-by-image 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。
每次调用 $0.014286,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。
必填:imgUrl (string)。 可选:language(en, zh, ru, th, pt, es, tr, vi, ja, ko 之一), page (integer), pageSize (integer), sort(default, sales, price_up, price_down 之一), priceStart (string) 和 priceEnd (string) 以及另外 5 项。 Parameters 表和本页的 Playground 列出了每个字段。
在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。
不需要。1688 Cross-border Image Search 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 1688 API 访问权限。