请求参数:q=蓝牙耳机&start_price=0&end_price=0&page=1&cat=0&discount_only=&sort=&seller_info=no&nick=&seller_info=&nick=&ppath=&imgid=&filter=
参数说明:q:搜索关键字,支持url
cat:分类ID
start_price:开始价格
end_price:结束价格
sort:排序[bid,_bid,_sale,_review,_new]
(bid:总价,sale:销量,review评论数,new新品,加_前缀为从大到小排序)<
page:
API测试工具 点击申请试用
响应参数
名称 | 类型 | 是否隐私 | 示例值 | 描述 |
---|---|---|---|---|
items | items[] | 按关键字搜索商品 | ||
num_iid | Bigint | 10021415166448 | 宝贝ID | |
detail_url | String | 俞兆林2件装半高领打底衫女春秋季长袖洋气纯色内搭上衣薄款女士时尚 黑色+浅卡其(80-130斤)【图片 价格 品牌 报价】-京东 | 商品详情页 | |
title | String | 俞兆林2件装半高领打底衫秋冬长袖洋气纯色内衣内搭上衣黑色薄款女士秋衣女春秋保暖内衣女针织衫 黑色+浅卡其(80-130斤) | 商品标题 | |
pic_url | String | //img13.360buyimg.com/n7/jfs/t1/115150/13/17438/307259/5f58be2fE727cfb0d/aa76563060a56420.png | 宝贝图片 | |
price | Float | 188 | 价格 | |
promotion_price | Float | 188 | 优惠价 | |
sales | Int | 销量 | ||
sample_id | Bigint | 商品风格标识ID | ||
post_fee | Float | 物流费用 | ||
area | String | 店铺所在地 | ||
seller | String | 俞兆林YZL旗舰店 | 卖家昵称 |
请求示例
<?php
// 请求示例 url 默认请求参数已经URL编码处理
// 本示例代码未加密secret参数明文传输,若要加密请参考:https://api.onebound.cn/taobao/demo/sdk2020/demo-sign.php
$method = "GET";
$url = "https://api-gw.onebound.cn/jd/item_search/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&q=蓝牙耳机&start_price=0&end_price=0&page=1&cat=0&discount_only=&sort=&seller_info=no&nick=&seller_info=&nick=&ppath=&imgid=&filter=";
$curl = curl_init();
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST,FALSE);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER,FALSE);
curl_setopt($curl, CURLOPT_FAILONERROR, false);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, true);
curl_setopt($curl, CURLOPT_ENCODING, "gzip");
var_dump(curl_exec($curl));
?>
API 返回结果
https://api-gw.onebound.cn/jd/item_search/?key=&
&q=蓝牙耳机&start_price=0&end_price=0&page=1&cat=0&discount_only=&sort=&seller_info=no&nick=&seller_info=&nick=&ppath=&imgid=&filter=&cache=no&&lang=zh-CN&secret=
---------------------------------------
Result Object:
---------------------------------------
{
"items": {
"url": "https://search.jd.com/Search?keyword=蓝牙耳机&enc=utf-8&wq=蓝牙耳机&pvid=33dbb420d9fa4ca483a869f2e4c5625c",
"keyword": "蓝牙耳机",
"page": "",
"real_total_results": 4400,
"total_results": 4400,
"pagecount": 74,
"products_total": "",
"list_count": "",
"page_size": "60",
"item": [
{
"num_iid": "100032329020",
"detail_url": "https://item.jd.com/100032329020.html",
"title": "小米Redmi Buds3青春版 真无线蓝牙耳机入耳式耳机蓝牙耳机小米无线耳机蓝牙5.2 苹果华为手机通用",
"pic_url": "//img10.360buyimg.com/n7/jfs/t1/204000/30/24880/539552/62d137ecE476792ca/0f3dfffb6faccea1.jpg",
"price": 99,
"promotion_price": 99,
"sales": null,
"sample_id": "",
"post_fee": "",
"area": "",
"seller": "小米京东自营旗舰店"
},
{
"num_iid": "10035789319416",
"detail_url": "https://item.jd.com/10035789319416.html",
"title": "【华强北5代顶配版】Air3苹果蓝牙耳机双耳无线降噪适用iphone14/13/12/11入耳维肯 旗舰全功能5代1:1【9月空间音频降噪版】 秒弹窗+指纹触控+改名定位+蓝...",
"pic_url": "//img11.360buyimg.com/n7/jfs/t1/210663/13/24290/235692/62ee3b7bEe6da72b4/e06b87c1ba15396e.jpg",
"price": 229,
"promotion_price": 229,
"sales": null,
"sample_id": "",
"post_fee": "",
"area": "",
"seller": "维肯数码旗舰店"
},
{
"num_iid": "100024212879",
"detail_url": "https://item.jd.com/100024212879.html",
"title": "漫步者(EDIFIER)LolliPods 2022版 真无线蓝牙耳机半入耳蓝牙5.3 音乐耳机通用苹果华为小米手机 白色",
"pic_url": "//img14.360buyimg.com/n7/jfs/t1/144726/25/28970/69204/63070616E8bb8dc9d/9d8e5bd56b53e1ba.jpg",
"price": 178,
"promotion_price": 178,
"sales": null,
"sample_id": "",
"post_fee": "",
"area": "",
"seller": "漫步者京东自营旗舰店"
},
{
"num_iid": "10032573727362",
"detail_url": "https://item.jd.com/10032573727362.html",
"title": "VENIDER 【2022新款】蓝牙耳机适用于华为手机真无线半入耳式降噪超长续航荣耀苹果小米oppo 白色|尊享升级版【智能降噪/触控+长续航】自动配对",
"pic_url": "//img12.360buyimg.com/n7/jfs/t1/164877/34/30846/168719/632bd609E20438b2e/5bb0d378090dab3d.jpg",
"price": 89,
"promotion_price": 89,
"sales": null,
"sample_id": "",
"post_fee": "",
"area": "",
"seller": "VENIDER京东自营旗舰店"
},
{
"num_iid": "100015435299",
"detail_url": "https://item.jd.com/100015435299.html",
"title": "现代(HYUNDAI)TWS-F9 真无线蓝牙耳机降噪入耳式运动跑步迷你隐形游戏通用华为苹果vivo小米oppo荣耀手机",
"pic_url": "//img14.360buyimg.com/n7/jfs/t1/215140/18/20965/225818/63116050E06b3a943/f74b8443607dfac9.jpg",
"price": 39,
"promotion_price": 39,
"sales": null,
"sample_id": "",
"post_fee": "",
"area": "",
"seller": "HYUNDAI现代京东自营旗舰店"
},
{
"num_iid": "10056357952937",
"detail_url": "https://item.jd.com/10056357952937.html",
"title": "cleer ARC音弧 开放式运动耳机无线蓝牙耳机开车骑行跑步 同款 挂耳式 商务 适用苹果华为 黑色【充电盒升级款-续航18H】",
"pic_url": "//img12.360buyimg.com/n7/jfs/t1/205201/14/27739/74686/632c8dd5Edb816e43/86ec0f3f5c1f503f.jpg",
"price": 1229,
"promotion_price": 1229,
"sales": null,
"sample_id": "",
"post_fee": "",
"area": "",
"seller": "cleer数码官方旗舰店"
},
{
"num_iid": "100018625698",
"detail_url": "https://item.jd.com/100018625698.html",