urlstringobrigatório
1688 product URL.
https://api.sandbase.ai/v1/api/1688/item/detail-by-urlGet 1688 product details from a product URL: prices by quantity, SKUs, MOQ and supplier, in the chosen language.
Sua saída aparecerá aqui
Preencha as entradas e clique em Executar.
Returns details for one 1688 product, including tiered prices, SKUs with stock, MOQ, shipping data and shop info. It needs a 1688 product URL as url. Text can come back in one of ten languages set by language.
curl -X POST "https://api.sandbase.ai/v1/api/1688/item/detail-by-url" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://detail.1688.com/offer/857511694718.html"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | 1688 product URL. |
language | string | No | Output language. |
optimizeTitle | boolean | No | Optimize Chinese titles by removing non-core words. |
scene | string | No | Optional dropshipping pricing scene. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"category_id": 1042207,
"created_at": 1732704529000,
"currency": "CNY",
"delivery_info": {
"delivery_fee": 2.0,
"location": "广东省广州市",
"location_code": "13809818",
"template_id": "11544552",
"unit_weight": 0.04
},
"detail_url": "https://itemcdn.tmall.com/1688offer/icoss694521994b36ec8ef41ad9e",
"is_sold_out": false,
"item_id": 857511694718,
"main_imgs": [
"https://cbu01.alicdn.com/img/ibank/O1CN01EGEQPZ2MG03xYboHU_!!3534549799-0-cib.jp…"
],
"mixed_batch": {
"mix_amount": 5,
"mix_begin": 0,
"mix_num": 2
},
"moq": 1,
"offer_unit": "个",
"price_info": {
"discount_price": "",
"origin_price_max": "1.60",
"origin_price_min": "1.20",
"price": "1.20",
"price_max": "1.60",
"price_min": "1.20"
}
}
| Field | Meaning |
|---|---|
title | Product title. Its language follows the language parameter. |
item_id / product_url | Numeric 1688 product ID and the canonical product page URL. |
moq | Minimum order quantity for the product. |
tiered_price_info.prices[].beginAmount / tiered_price_info.prices[].price | Price per unit (in currency) that applies once the order reaches this quantity. In the sample, the price falls from 1.60 at 1 unit to 1.20 at 2000 units. |
price_info.price_min / price_info.price_max | Lowest and highest listed unit price for the product. |
skus[].props_names / skus[].skuid | Variant name (such as color and model) and the SKU ID for each variant. |
skus[].sale_price / skus[].stock | Unit price and stock count for that SKU. |
skus[].package_info | Length, width, height, weight and volume of the packaged SKU. |
sku_props[].prop_name / sku_props[].values[].name | Variant dimensions (such as color or model) and the option values listed under each. |
shop_info.shop_name / shop_info.shop_url | Supplier shop name and the link to its shop page. |
delivery_info.delivery_fee / delivery_info.location | Shipping fee and the dispatch location of the seller. |
sale_info.sale_quantity_year | Quantity sold over the year. sale_quantity_90days can be null. |
Need candidate listings first? Search by keyword, then manually inspect the product you intend to query. Follow the Python URL lookup example for this endpoint's url and optional language fields. This request is not interchangeable with Product Details by item ID.
url from a 1688 product page, in the form https://detail.1688.com/offer/<item_id>.html.created_at and the promotion start_time values are Unix timestamps in milliseconds.sku_price_range, sale_count and discount_price can be empty, so read tiered prices from tiered_price_info.$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/item/detail-by-url" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://detail.1688.com/offer/857511694718.html",
"language": "zh",
"optimizeTitle": false
}'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.
urlstringobrigatório1688 product URL.
scenestringOptional dropshipping pricing scene.
Valores possíveis: drop_shipping
optimizeTitlebooleanOptimize Chinese titles by removing non-core words.
Padrão: false
languagestringOutput language.
Padrão: "zh"
Valores possíveis: en, zh, ru, th, pt, es, tr, vi, ja, ko
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 Product Details by URLEsta 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/item/detail-by-url 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: url (string). Opcionais: scene (um de drop_shipping), optimizeTitle (boolean) e language (um de en, zh, ru, th, pt, es, tr, vi, ja, ko). 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 Product Details by URL 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.
Este endpoint exige a url string de uma página de produto 1688, normalmente https://detail.1688.com/offer/<item_id>.html. Ele é diferente de Product Details por item ID. Não envie um ID no lugar de uma URL nem copie os campos de request do outro endpoint para este.
O parâmetro language opcional aceita os códigos listados no schema atual, como en e zh. Ele solicita texto de saída nesse idioma; não converte preços em CNY para outra moeda nem verifica de forma independente a tradução de uma especificação. optimizeTitle é uma entrada boolean separada. Siga o schema deste endpoint em vez de reutilizar filtros de busca por palavra-chave.
Não. A referência descreve preços no nível do anúncio, condições por faixa e dados de SKU, mas os campos podem estar ausentes ou vazios. Confirme o SKU pretendido, a quantidade do pedido, a moeda e os termos atuais do fornecedor. Um preço listado ou campo de frete não é um custo internacional posto completo, e uma request de detalhes não faz um pedido nem aprova um fornecedor.