开发人员A开发了软件A,开发人员B正在开发软件B,A想用B的部分成果或功能辅助开发B软件,但不想完整输入A的软件,怎么办?于是A将软件打包成一个函数,放在B软件中,这个函数就是API。
如果没有API,B就必须把A软件的流程整个走一遍,耗费大量的时间精力,但如果是接口接入部分功能,轻松便捷,想用就用,想拔出就拔出。
有一杯密封果汁叫做数据库;果汁上面插着吸管,叫做API。如果你想喝到杯子里的果汁,由于它是密封的,你只能依靠吸管插入,否则你就喝不到果汁。
公共参数
请求地址: https://api-gw.onebound.cn/lazada/item_review
名称 | 类型 | 必须 | 描述 |
---|---|---|---|
key | String | 是 | 调用key(必须以GET方式拼接在URL中) |
secret | String | 是 | 调用密钥 |
api_name | String | 是 | API接口名称(包括在请求地址中)[item_search,item_get,item_search_shop等] |
cache | String | 否 | [yes,no]默认yes,将调用缓存的数据,速度比较快 |
result_type | String | 否 | [json,jsonu,xml,serialize,var_export]返回数据格式,默认为json,jsonu输出的内容中文可以直接阅读 |
lang | String | 否 | [cn,en,ru]翻译语言,默认cn简体中文 |
version | String | 否 | API版本 |
请求参数
请求参数:num_iid=267690734&data=&page=1&nation=co.th
参数说明:num_iid:lazada商品ID(是对应国家不同国家的ID不能通用)
page:分页
nation:国家
国家域名后缀可选值如下:co.id、com.my、com.ph、sg、co.th、vn
响应参数
Version: Date:
名称 | 类型 | 必须 | 示例值 | 描述 |
---|---|---|---|---|
rate_content | String | 0 | 衣服面料很好 穿起来很舒服 衣服挺合适的! | 评论内容 |
rate_date | Date | 0 | 2019-03-16 12:10:24 | 评论日期 |
pic | MIX | 0 | ["//img.alicdn.com/bao/uploaded/i4/O1CN01Zmq4QI1dqwnpBIxmX_!!0-rate.jpg"] | 评论图片 |
display_user_nick | String | 0 | 李***0 | 买家昵称 |
head_pic | String | 0 | 0 | 买家头像 |
auction_sku | String | 0 | 颜色:白色(加绒);尺码:2XL | 评论商品属性 |
rating | String | 0 | ||
video_id | String | 0 | 视频id | |
video_cover_url | String | 0 | 视频地址 |
{
"items": {
"total_results": "4080",
"real_total_results": "4080",
"page": "1",
"page_size": 40,
"language": "th",
"currency_code": "THB",
"item": [
{
"title": "Gambol รองเท้าแตะแบบหนีบ รุ่น GM11267 ไซส์ 36-46",
"pic_url": "https://th-live-01.slatic.net/p/401d5af43f5e4e61adcf5f3c1e8fd85b.jpg",
"promotion_price": "195.00",
"price": "195.00",
"originalPrice": "199.00",
"sales": "3270",
"num_iid": "2003430977",
"seller_nick": "I am shoes.",
"post_fee": "",
"area": "สมุทรสาคร",
"detail_url": "//www.lazada.co.th/products/gambol-gm11267-36-46-i2003430977.html"
},
{
"title": "รองเท้าผ้าใบ UV (CHANGE COLOUR)พร้อมกล่อง มีอุปกรณ์ครบ ไซส์ 36-45(เผื่อหนึ่งไซส์ค่ะ) รองเท้าผ้าใบผู้หญิง ผู้ชาย",
"pic_url": "https://filebroker-cdn.lazada.co.th/kf/S21c66b768d4d41ebbd16e420eb3d4adcw.jpg",
"promotion_price": "590.00",
"price": "590.00",
"originalPrice": "590.00",
"sales": "747",
"num_iid": "3338178846",
"seller_nick": "A_sneacker",
"post_fee": "",
"area": "สระแก้ว",
"detail_url": "//www.lazada.co.th/products/uv-change-colour-36-45-i3338178846.html"
},
{
"title": "รองเท้าแตะ ทูโทน Kito AH81 ไซส์ 36-45 แท้!",
"pic_url": "https://th-live.slatic.net/p/e2c7d2453c48402f3c9b47707f569d0b.jpg",
"promotion_price": "169",
"price": "169",
"originalPrice": "299.00",
"sales": "3400",
"num_iid": "1630612370",
"seller_nick": "Shoesvillage",
"post_fee": "",
"area": "กรุงเทพมหานคร",
"detail_url": "//www.lazada.co.th/products/kito-ah81-36-45-i1630612370.html"
},
{
"title": "รองเท้า วินเทจ รองเท้าแตะผู้ชาย KEEN กีฬากลางแจ้งรองเท้าชายหาดแห้งเร็วผู้ชายรองเท้าสบาย ๆ ระบายอากาศเบาสบายผู้ชาย รองเท้า ผู้ชาย 2022",
"pic_url": "https://th-live-01.slatic.net/p/a5af3c53f7c32caf851e01f945fe0481.jpg",
"promotion_price": "139.00",
"price": "139.00",
"originalPrice": "288.00",
"sales": "1658",
"num_iid": "2586394038",
"seller_nick": "Malling Fashion",
"post_fee": "",
"area": "Overseas",
"detail_url": "//www.lazada.co.th/products/keen-2022-i2586394038.html"
},
{
"title": "Kito รองเท้าแตะ รุ่น AH133 Size 36-45",
"pic_url": "https://sg-live-01.slatic.net/p/888da07ea6ed8f965f61ebb04f5c1b29.jpg",
"promotion_price": "199",
"price": "199",
"originalPrice": "328.00",
"sales": "282",
"num_iid": "3410105266",
"seller_nick": "Kito",
"post_fee": "",
"area": "กรุงเทพมหานคร",
"detail_url": "//www.lazada.co.th/products/kito-ah133-size-36-45-i3410105266.html"
},
{
"title": "ส่งฟรี ถูกสุด!! ออกบิลได้ รองเท้านักเรียนทรงนันยาง รองเท้านักเรียน รองเท้าพละ รองเท้าลูกเสือ รองเท้าผ้าใบนักเรียนราคาถูกที่สุดMashare M205",
"pic_url": "https://th-live-01.slatic.net/p/939e633ac85d8bc17c34d24eb3523b60.jpg",
"promotion_price": "145.00",
"price": "145.00",
"originalPrice": "195.00",
"sales": "2112",
"num_iid": "895290632",
"seller_nick": "story_shoes",
"post_fee": "",
"area": "นนทบุรี",
"detail_url": "//www.lazada.co.th/products/mashare-m205-i895290632.html"
},
{
"title": "Posee tiktok hot 38° รองเท้าแตะลําลอง พื้นนุ่มมาก กันลื่น สีลูกกวาด สําหรับสตรี เหมาะกับฤดูร้อน PS3715",
"pic_url": "https://my-live-02.slatic.net/p/ac0e251ec719314cf99fdd485e19d55d.jpg",
"promotion_price": "314",
"price": "314",
"originalPrice": "650.00",
"sales": "3516",
"num_iid": "2756557693",
"seller_nick": "POSEE Slippers",
"post_fee": "",
"area": "สมุทรปราการ",
"detail_url": "//www.lazada.co.th/products/posee-tiktok-hot-38-ps3715-i2756557693.html"
},
{
"title": "QiaoYiLuo ยี่ห้อ Crocs รองเท้าแตะส้นแบนและรองเท้าแตะซึ่งรองเท้าสำหรับคู่รักและชายและพร้อมพรมเช็ดเท้าโฟมและพื้นรองเท้ากันลื่น",
"pic_url": "https://th-live-01.slatic.net/p/1f2fdc4a497110ecd305495fc17b46f3.jpg",
"promotion_price": "254.00",
"price": "254.00",
"originalPrice": "300.00",
"sales": "972",
"num_iid": "3759971853",
"seller_nick": "Amandad Store",
"post_fee": "",
"area": "Overseas",
"detail_url": "//www.lazada.co.th/products/qiaoyiluo-crocs-i3759971853.html"
},
{
"title": "Under Armour UA Unisex Flow FUTR X Basketball Shoes",
"pic_url": "https://th-live-01.slatic.net/p/18e12c29c5785239f8371a386bbc7326.jpg",
"promotion_price": "2574",
"price": "2574",
"originalPrice": "4290.00",
"sales": "7",
"num_iid": "2914083782",
"seller_nick": "Under Armour",
"post_fee": "",
"area": "สมุทรปราการ",
"detail_url": "//www.lazada.co.th/products/under-armour-ua-unisex-flow-futr-x-basketball-shoes-i2914083782.html"
},
{
"title": "Zeus Sports รองเท้าแตะ รองเท้าแตะชาย รองเท้าแตะผู้ชาย รองเท้าแตะกลางแจ้ง กันลื่นกลางแจ้ง รองเท้าแตะชายหาด รองเท้าไทย กันลื่น แนวโน้ม 2022",
"pic_url": "https://th-live-01.slatic.net/p/c9d375c35f86f65b181f4c823fdd9003.jpg",
"promotion_price": "89.00",
"price": "89.00",
"originalPrice": "168.00",
"sales": "625",
"num_iid": "3532780449",
"seller_nick": "Mr Zeus",
"post_fee": "",
"area": "Overseas",
"detail_url": "//www.lazada.co.th/products/zeus-sports-2022-i3532780449.html"
},
{
"title": "รองเท้าแตะtitflopรองเท้าแตะผู้ชาย ผู้หญิงรองเท้าเพื่อสุขภาพรองเท้าแตะแบบสวมตรงปก 100% ส่งของทุกวัน",
"pic_url": "https://th-live.slatic.net/p/f8941e76f4f4d3e94df71ae6bdbb0a06.jpg",
"promotion_price": "262.00",
"price": "262.00",
"originalPrice": "759.00",
"sales": "777",
"num_iid": "2982344873",
"seller_nick": "Free Order Shop",
"post_fee": "",
"area": "สระแก้ว",
"detail_url": "//www.lazada.co.th/products/titflop-100-i2982344873.html"
},
{
"title": "ORNGMALL Men and Women Shoes รองเท้ายาง รองเท้าคัชชูส้นเตี้ย รองเท้ายางเยาวชน, รองเท้าพลาสติกเต็มรูปแบบรองเท้ากันน้ำระบายอากาศกันลื่นผู้ชายและผู้หญิงสามารถสวมใส่รองเท้าลื่นรองเท้ากลางแจ้งรองเท้าลำลอง JEFFERSON WNC Native Waterproof Beach Sandals",
"pic_url": "https://th-live-02.slatic.net/p/de07c57db9d21361dee9dfc6a8c1e628.jpg",
"promotion_price": "179.00",
"price": "179.00",
"originalPrice": "400.00",
"sales": "1297",
"num_iid": "356720617",
"seller_nick": "ORNGMALL",
"post_fee": "",
"area": "ฉะเชิงเทรา",
"detail_url": "//www.lazada.co.th/products/orngmall-men-and-women-shoes-jefferson-wnc-native-waterproof-beach-sandals-i356720617.html"
},
{
"title": "รองเท้า รองเท้าแตะ รองเท้าแฟชั่น ใส่นุ่มสบาย พร้อมส่งในไทย",
"pic_url": "https://th-live.slatic.net/p/af9e3ca443405cd78c785d0c14a397a5.jpg",
"promotion_price": "54",
"price": "54",
"originalPrice": "199.00",
"sales": "734",
"num_iid": "2755845469",
"seller_nick": "Huang.shopping",
"post_fee": "",
"area": "กรุงเทพมหานคร",
"detail_url": "//www.lazada.co.th/products/-i2755845469.html"
},
{
"title": "FITFLOP SLING รองเท้าแตะแบบหูหนีบผู้ชาย รุ่น H06",
"pic_url": "https://th-live-01.slatic.net/p/56304a7f2128b2c0604dab4cd562e5c5.png",
"promotion_price": "3990.00",
"price": "3990.00",
"originalPrice": "3990.00",
"sales": "84",
"num_iid": "789976957",
"seller_nick": "Fitflop",
"post_fee": "",
"area": "สมุทรปราการ",
"detail_url": "//www.lazada.co.th/products/fitflop-sling-h06-i789976957.html"
},
{
"title": "รองเท้าผ้าใบทรงสลิปออน 14สี เนื้อผ้า เบานุ่ม ใส่สบาย เบอร์35-40 รองเท้าหุ้มส้นผู้หญิง ร ISS937",
"pic_url": "https://my-live-02.slatic.net/p/7643ea5a863065dbf97bae38e6146d83.jpg",
"promotion_price": "89.00",
"price": "89.00",
"originalPrice": "160.00",
"sales": "1557",
"num_iid": "3440889571",
"seller_nick": "I Shoes Store",
"post_fee": "",
"area": "Overseas",
"detail_url": "//www.lazada.co.th/products/14-35-40-iss937-i3440889571.html"
},
{
"title": "Hush Puppies รองเท้าผู้ชาย รุ่น Grayson PT Oxford HP IHDFB3881A - สีดำ รองเท้าหนังแท้ รองเท้าทางการ รองเท้าอ็อกซ์ฟอร์ด",
"pic_url": "https://th-live-01.slatic.net/p/e324d74d4e0d416e85ed216db97c4b18.png",
"promotion_price": "2793",
"price": "2793",
"originalPrice": "3990.00",
"sales": "5",
"num_iid": "2935071585",
"seller_nick": "Hush Puppies",
"post_fee": "",
"area": "สมุทรปราการ",
"detail_url": "//www.lazada.co.th/products/hush-puppies-grayson-pt-oxford-hp-ihdfb3881a-i2935071585.html"
},
{
"title": "[ลิขสิทธิ์แท้] Baoji Clog Fruit Platform [W] NEA รองเท้า แตะ หัวโต เสริมส้น บาโอจิ แท้ BO37-112",
"pic_url": "https://th-live.slatic.net/p/7f2eef3f93a7272017bb625ee00e2dda.jpg",
"promotion_price": "195.00",
"price": "195.00",
"originalPrice": "599.00",
"sales": "642",
"num_iid": "3283932820",
"seller_nick": "NEA Shoe Shop",
"post_fee": "",
"area": "ชลบุรี",
"detail_url": "//www.lazada.co.th/products/baoji-clog-fruit-platform-w-nea-bo37-112-i3283932820.html"
},
{
"title": "NDDshop ✨🖤รองเท้าผ้าใบแนวสตรีท พร้อมลวดลายสุดเท่ 🧑🏼🦱เอาใจหนุ่มสายลุย สีดำ ขาว คลาสสิคสุดๆเลยน๊าาา",
"pic_url": "https://th-live-01.slatic.net/p/f72730ae2859c73e96b7757ccdb927ec.jpg",
"promotion_price": "64.74",
"price": "64.74",
"originalPrice": "279.00",
"sales": "1521",
"num_iid": "2901049347",
"seller_nick": "NDDshop",
"post_fee": "",
"area": "กรุงเทพมหานคร",
"detail_url": "//www.lazada.co.th/products/nddshop-i2901049347.html"
}
]
},
"error": "",
"reason": "",
"error_code": "0000",
"cache": 0,
"api_info": "today:33 max:10100 all[82=33+24+25];expires:2030-12-31",
"execution_time": "0.604",
"server_time": "Beijing/2022-11-02 09:54:10",
"client_ip": "106.6.39.250",
"call_args": {
"q": "shoe",
"page": "1",
"cat": "40",
"discount_only": "co.th",
"nation": "co.th",
"language": "co.th"
},
"api_type": "lazada",
"translate_language": "co.th",
"translate_engine": "baidu",
"server_memory": "3.42MB",
"request_id": "gw-1.6361cdc1b2ca5",
"last_id": "1328374920"
}