urlstringจำเป็น
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.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
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.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
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
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
urlstringจำเป็น1688 product URL.
scenestringOptional dropshipping pricing scene.
ค่าที่เป็นไปได้: drop_shipping
optimizeTitlebooleanOptimize Chinese titles by removing non-core words.
ค่าเริ่มต้น: false
languagestringOutput language.
ค่าเริ่มต้น: "zh"
ค่าที่เป็นไปได้: en, zh, ru, th, pt, es, tr, vi, ja, ko
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
1688 Product Details by URLAPI นี้ 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/item/detail-by-url โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.014286 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: url (string). ตัวเลือก: scene (หนึ่งใน drop_shipping), optimizeTitle (boolean) และ language (หนึ่งใน en, zh, ru, th, pt, es, tr, vi, ja, ko). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น 1688 Product Details by URL ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง 1688 API แยกต่างหาก
เอ็นด์พอยต์นี้ต้องใช้ url แบบสตริงสำหรับหน้าสินค้า 1688 โดยปกติคือ https://detail.1688.com/offer/<item_id>.html มันต่างจาก Product Details ที่ใช้ item ID อย่าส่ง ID แทน URL หรือคัดลอกฟิลด์คำขอของเอ็นด์พอยต์อื่นมาใส่ที่นี่
พารามิเตอร์ language แบบเลือกได้รองรับรหัสที่ระบุใน schema ปัจจุบัน เช่น en และ zh มันขอให้แสดงข้อความผลลัพธ์ในภาษานั้น; ไม่ได้แปลงราคา CNY เป็นสกุลเงินอื่น หรือยืนยันความถูกต้องของการแปลสเปกโดยอัตโนมัติ optimizeTitle เป็นอินพุต boolean แยกต่างหาก ปฏิบัติตาม schema ของเอ็นด์พอยต์นี้แทนการนำฟิลเตอร์ของ keyword-search มาใช้ซ้ำ
ไม่ได้ เอกสารอ้างอิงอธิบายราคาระดับ listing เงื่อนไขตามขั้น และข้อมูล SKU แต่ฟิลด์อาจหายไปหรือว่างเปล่าได้ ตรวจสอบ SKU ที่ตั้งใจ จำนวนสั่งซื้อ สกุลเงิน และเงื่อนไขปัจจุบันของซัพพลายเออร์ ราคาที่แสดงหรือฟิลด์การจัดส่งไม่ใช่ landed cost ระหว่างประเทศแบบครบถ้วน และการขอรายละเอียดไม่ได้เป็นการสั่งซื้อหรืออนุมัติซัพพลายเออร์