爬虫试用 | 京东商品详情搜索采集助手 – 一键批量采集下载商品详情
API:京东item_get_pro
功能:输入关键词搜索批量采集商品详情内容,如标题、相应的sku、sku对应的价格、主图、详情图、原价、到手价、优惠、店铺名、店铺id、店铺评分、简介等。
公共参数
| 名称 | 类型 | 必须 | 描述 |
|---|---|---|---|
| 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版本 |
请求示例(curl)
-- 请求示例 url 默认请求参数已经URL编码处理
curl -i "https://api-服务器.cn/jd/item_get_pro/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&num_iid=10099255846411"响应示例
"item": {
"num_iid": "10099255846411",
"title": "花田熊DHA高钙小奶棒奶片奶贝儿童营养零食牛初乳糖果高蛋白牛奶棒磨牙 【1桶/25支】原味高钙奶棒",
"desc_short": "",
"price": "23.80",
"total_price": "",
"suggestive_price": "",
"orginal_price": "23.80",
"nick": "花田熊官方旗舰店",
"num": "99",
"min_num": "1",
"detail_url": "https://item.jd.com/10099255846411.html#crumb-wrap",
"pic_url": "//img13.360buyimg.com/n12/jfs/t1/369021/18/31/186606/6917d272F0cd6d243/b86b8f49e4040aae.jpg",
"brand": "花田熊(HUATIANXIONG)",
"brandId": "772653",
"rootCatId": "1319",
"cid": "12191",
"desc": "",
"desc_img": [],
"item_imgs": {
"item_img": [
{
"url": "//img10.360buyimg.com/n1/jfs/t1/369021/18/31/186606/6917d272F0cd6d243/b86b8f49e4040aae.jpg"
},
{
"url": "//img10.360buyimg.com/n1/jfs/t1/312370/28/8819/74736/684a8c31F0a22ca05/bc9f486dd8d70194.jpg"
},
{
"url": "//img10.360buyimg.com/n1/jfs/t1/305563/18/9860/43830/684a8c08F6a467c5f/e633e3c37ddad36e.jpg"
},
{
"url": "//img10.360buyimg.com/n1/jfs/t1/302347/12/14028/76108/684a8c07F95418f40/ca66afc8b77084e9.jpg"
},
{
"url": "//img10.360buyimg.com/n1/jfs/t1/299756/4/15421/39993/684a8c07F5abf01f8/007dd5668e9bf280.jpg"
},
{
"url": "//img10.360buyimg.com/n1/jfs/t1/301285/30/14536/54815/684a8c06F5096ae5b/02c41500f87ddab2.jpg"
},
{
"url": "//img10.360buyimg.com/n1/jfs/t1/345244/28/2790/84322/68c519f1Fda4ac7c9/b24f9f2434e008aa.jpg"
},
{
"url": "//img10.360buyimg.com/n1/jfs/t1/344139/14/2860/100735/68c519efF872cd36e/4f324c0e7695d518.jpg"
},
{
"url": "//img10.360buyimg.com/n1/jfs/t1/337915/14/11795/55566/68ca1fd9F03b59040/c0f2e648fde20ca6.jpg"
},
{
"url": "//img10.360buyimg.com/n1/jfs/t1/337221/2/10401/55920/68c519ecF3c82f5e1/fd08b9cadeeb9785.jpg"
}
]
},
"item_weight": null,
"post_fee": "",
"express_fee": "",
"ems_fee": "",
"video_id": "",
"is_promotion": "",
"props_name": "1:0:容量:【1桶/25支】原味高钙奶棒;1:1:容量:【2桶/50支】添加牛初乳;1:2:容量:【3桶/75支】家庭囤货首选;1:3:容量:【5支尝鲜装】开启美味时刻;1:4:容量:【畅销】原味高钙奶棒*1桶;",
"prop_imgs": {
"prop_img": [
{
"properties": "1:3",
"url": "//img10.360buyimg.com/n1/jfs/t1/308371/4/8960/81463/684a8c2eF58754f32/851cd6aa5817a1c3.jpg"
},
{
"properties": "1:4",
"url": "//img10.360buyimg.com/n1/jfs/t1/312370/28/8819/74736/684a8c31F0a22ca05/bc9f486dd8d70194.jpg"
},
{
"properties": "1:2",
"url": "//img10.360buyimg.com/n1/jfs/t1/320982/22/8622/97293/684a8c2fF0ef77cee/ae07bc0fa7fd5273.jpg"
},
{
"properties": "1:1",
"url": "//img10.360buyimg.com/n1/jfs/t1/286109/16/9739/92820/684a8c30Fbb66f014/1b3c31ced2889b39.jpg"
},
{
"properties": "1:0",
"url": "//img10.360buyimg.com/n1/jfs/t1/312370/28/8819/74736/684a8c31F0a22ca05/bc9f486dd8d70194.jpg"
}
]
},
"property_alias": "1:0:容量:【1桶/25支】原味高钙奶棒;1:1:容量:【2桶/50支】添加牛初乳;1:2:容量:【3桶/75支】家庭囤货首选;1:3:容量:【5支尝鲜装】开启美味时刻;1:4:容量:【畅销】原味高钙奶棒*1桶;1:4:【畅销】原味高钙奶棒*1桶;",
"props": [
{
"name": "保质期",
"value": "10个月"
},
{
"name": "口味",
"value": "原味"
},
{
"name": "包装形式",
"value": "桶装"
},
{
"name": "国产/进口",
"value": "国产"
}
],
"total_sold": "0",
"skus": {
"sku": [
{
"price": "23.80",
"orginal_price": "23.80",
"properties": "1:3",
"properties_name": "1:3:容量:【5支尝鲜装】开启美味时刻",
"quantity": "99",
"sku_id": "10102797122726",
"sku_url": "http://item.jd.com/10102797122726.html"
},
{
"price": "23.80",
"orginal_price": "23.80",
"properties": "1:4",
"properties_name": "1:4:容量:【畅销】原味高钙奶棒*1桶",
"quantity": "99",
"sku_id": "10155281706757",
"sku_url": "http://item.jd.com/10155281706757.html"
},
{
"price": "23.80",
"orginal_price": "23.80",
"properties": "1:2",
"properties_name": "1:2:容量:【3桶/75支】家庭囤货首选",
"quantity": "99",
"sku_id": "10099255846413",
"sku_url": "http://item.jd.com/10099255846413.html"
},
{
"price": "23.80",
"orginal_price": "23.80",
"properties": "1:1",
"properties_name": "1:1:容量:【2桶/50支】添加牛初乳",
"quantity": "99",
"sku_id": "10099255846412",
"sku_url": "http://item.jd.com/10099255846412.html"
},
{
"price": "23.80",
"orginal_price": "23.80",
"properties": "1:0",
"properties_name": "1:0:容量:【1桶/25支】原味高钙奶棒",
"quantity": "99",
"sku_id": "10099255846411",
"sku_url": "http://item.jd.com/10099255846411.html"
}
]
},
"seller_id": "11938918",
"sales": 0,
"shop_id": "11938918",
"props_list": {
"1:0": "容量:【1桶/25支】原味高钙奶棒",
"1:1": "容量:【2桶/50支】添加牛初乳",
"1:2": "容量:【3桶/75支】家庭囤货首选",
"1:3": "容量:【5支尝鲜装】开启美味时刻",
"1:4": "容量:【畅销】原味高钙奶棒*1桶"
},
"seller_info": {
"shop_id": 11938918,
"zhuy": "http://mall.jd.com/index-11938918.html",
"nick": "花田熊官方旗舰店",
"shop_name": "花田熊官方旗舰店"
},
"props_img": [
{
"1:3": "//img10.360buyimg.com/n1/jfs/t1/308371/4/8960/81463/684a8c2eF58754f32/851cd6aa5817a1c3.jpg"
},
{
"1:4": "//img10.360buyimg.com/n1/jfs/t1/312370/28/8819/74736/684a8c31F0a22ca05/bc9f486dd8d70194.jpg"
},
{
"1:2": "//img10.360buyimg.com/n1/jfs/t1/320982/22/8622/97293/684a8c2fF0ef77cee/ae07bc0fa7fd5273.jpg"
},
{
"1:1": "//img10.360buyimg.com/n1/jfs/t1/286109/16/9739/92820/684a8c30Fbb66f014/1b3c31ced2889b39.jpg"
},
{
"1:0": "//img10.360buyimg.com/n1/jfs/t1/312370/28/8819/74736/684a8c31F0a22ca05/bc9f486dd8d70194.jpg"
}
],
"_ddf": "fqx"
},
