请求参数: 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));
?>
响应示例
https://api-gw.onebound.cn/jd/item_search/?key=&
&q=洗衣机&start_price=0&end_price=0&page=1&cat=0&discount_only=&sort