imgUrlstringobrigatório
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 ou GIF · máximo de 20 MiB
Sua saída aparecerá aqui
Preencha as entradas e clique em Executar.
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.
Comece a construir
Endpoint da API da plataforma com autenticação unificada e rastreamento de uso.
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
}'Defina sua chave da API SandBase no ambiente do seu servidor. As requisições usam autenticação Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Mantenha sua chave no servidor. Não a exponha em código do navegador.
imgUrlstringobrigatórioImage URL or image reference returned by Image Conversion. Convert external images for the selected search target before searching.
languagestringOutput language.
Padrão: "en"
Valores possíveis: en, zh, ru, th, pt, es, tr, vi, ja, ko
pageintegerPage number, starting at 1.
Padrão: 1
pageSizeintegerNumber of items requested per page. The returned count may differ.
Padrão: 20
sortstringProduct sort order.
Padrão: "default"
Valores possíveis: 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.
Resposta de exemplo salva para esta API; nenhuma requisição ao vivo é feita ao visualizá-la.
Nenhuma resposta salva foi publicada. Execute a API no Playground para inspecionar a resposta.
Explorar mais
| API | Preço | Resposta |
|---|---|---|
1688 Cross-border Image SearchEsta API 1688 | $0.014286 por chamada | JSON |
1688 | $0.014286 por chamada | JSON |
1688 | $0.014286 por chamada | JSON |
1688 | $0.014286 por chamada | JSON |
1688 | $0.014286 por chamada | JSON |
1688 | $0.014286 por chamada | JSON |
Perguntas
Envie uma solicitação POST para https://api.sandbase.ai/v1/api/1688/search/cross-border-by-image com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.
$0.014286 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.
Obrigatórios: imgUrl (string). Opcionais: language (um de en, zh, ru, th, pt, es, tr, vi, ja, ko), page (integer), pageSize (integer), sort (um de default, sales, price_up, price_down), priceStart (string) e priceEnd (string) e mais 5. A tabela de Parâmetros e o Playground nesta página listam todos os campos.
Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.
Não. 1688 Cross-border Image Search funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do 1688 separadamente.