item_search - 根据关键词取商品列表

94 阅读5分钟

请求参数:q=女装&start_price=0&end_price=0&page=1&cat=0&discount_only=&sort=&page_size=

参数说明:q:关键词, sort:排序[bid,_bid,_sale,sale] (bid:商品价格,sale:销量,加_前缀为从大到小排序)

1664506779600.jpg

API测试工具 点击申请试用

响应参数

Version: Date:

名称类型必须示例值描述
itemsitems[]0根据关键词取商品列表

请求示例


// 请求示例 url 默认请求参数已经URL编码处理
// 本示例代码未加密secret参数明文传输,若要加密请参考:https://open.onebound.cn/help/demo/sdk/demo-sign.php
$method = "GET";
$url = "https://api-gw.onebound.cn/pinduoduo/item_search/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&q=口罩&start_price=0&end_price=0&page=1&cat=0&discount_only=&sort=&page_size=";
$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));
?>

**[]()响应示例**


```Request address:
https://api-gw.onebound.cn/pinduoduo/item_search/?key=&
&q=口罩
&start_price=0&end_price=0&page=1&cat=0&discount_only=&sort=&page_size=&cache=no&&lang=zh-CN&secret=
---------------------------------------
Result Object:
---------------------------------------
{
	"items": {
		"keyword": "口罩",
		"page": "1",
		"real_total_results": 849,
		"total_results": 849,
		"list_count": 19,
		"item": [
			{
				"title": "医用外科口罩一次性三层防护批发成人医用防尘防疫独立包装医用级",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-07-10/a867f6549bf696f00addb2679962a28c.jpeg",
				"price": 3.9,
				"promotion_price": 3.9,
				"sales": 100000,
				"num_iid": 387455147128,
				"sample_id": "",
				"seller_nick": "波罗蜜家居生活专营店",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=387455147128"
			},
			{
				"title": "医用外科口罩一次性医疗口罩三层正规正品防护病毒白色成人独立装",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-06-08/8054ff73a563534421a5781dc58425f9.jpeg",
				"price": 9.88,
				"promotion_price": 9.88,
				"sales": 100000,
				"num_iid": 370101713396,
				"sample_id": "",
				"seller_nick": "波罗蜜医疗器械专营店",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=370101713396"
			},
			{
				"title": "小新防护医用外科口罩一次性三层正规正品独立包装透气不勒耳男女",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-09-14/935ee6427591f9e142ad2393ae934a1c.jpeg",
				"price": 8.9,
				"promotion_price": 8.9,
				"sales": 41000,
				"num_iid": 373067251501,
				"sample_id": "",
				"seller_nick": "小新防护医疗器械专营店",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=373067251501"
			},
			{
				"title": "一次性口罩批发蓝色白色成人三层防护2022最新款夏季薄款抗病毒",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-07-22/01d26f7e94063ed2fa1bf77de13f5e45.jpeg",
				"price": 8.81,
				"promotion_price": 8.81,
				"sales": 100000,
				"num_iid": 373432707235,
				"sample_id": "",
				"seller_nick": "星阳防护用品",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=373432707235"
			},
			{
				"title": "2022新年口罩虎年红色三层我爱你爱国潮男创意个性款女中国风独立",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-07-07/76a28f4440afe1329d42d98106fea199.jpeg",
				"price": 5.99,
				"promotion_price": 5.99,
				"sales": 9391,
				"num_iid": 386168632933,
				"sample_id": "",
				"seller_nick": "波罗蜜家居生活专营店",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=386168632933"
			},
			{
				"title": "国潮中国风时尚男女同款独立口罩一次性含熔喷三层防护防粉尘飞沫",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-09-22/307789d109bce95cdce0056f182191c0.jpeg",
				"price": 5.8,
				"promotion_price": 5.8,
				"sales": 100000,
				"num_iid": 217347028159,
				"sample_id": "",
				"seller_nick": "波罗蜜家纺专营店",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=217347028159"
			},
			{
				"title": "儿童口罩独立包装春夏透气款3-12岁学生口罩4D立体KF94透气不勒耳",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-05-29/b1d76a8893c7aa23f7593248e0c0461e.jpeg",
				"price": 4.42,
				"promotion_price": 4.42,
				"sales": 100000,
				"num_iid": 368785023985,
				"sample_id": "",
				"seller_nick": "优优宝贝日用品",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=368785023985"
			},
			{
				"title": "一次性医用外科口罩独立包装抗病毒三层防护防尘成人口罩批发",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-08-07/95486d8d75ecbfcb795d80e880a97f22.jpeg",
				"price": 8.8,
				"promotion_price": 8.8,
				"sales": 82000,
				"num_iid": 399062599295,
				"sample_id": "",
				"seller_nick": "咕噜季医疗器械官方旗舰店",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=399062599295"
			},
			{
				"title": "正版kn95口罩独立包装女高颜值3d立体网红同款成人一次性防护口罩",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-06-09/5481d4bf8b618df52fb788887adc753a.jpeg",
				"price": 4.9,
				"promotion_price": 4.9,
				"sales": 100000,
				"num_iid": 371781837566,
				"sample_id": "",
				"seller_nick": "护贝臣官方旗舰店",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=371781837566"
			},
			{
				"title": "医用外科口罩白色一次性医疗三层正规正品独立包装灭菌级成人夏女",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-08-04/8721e8efebb7e496d20ae2239d37a5ab.jpeg",
				"price": 16.8,
				"promotion_price": 16.8,
				"sales": 100000,
				"num_iid": 378641555490,
				"sample_id": "",
				"seller_nick": "圣铭日用品专营店",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=378641555490"
			},
			{
				"title": "一次性白色口罩彩色耳绳独立包装女高颜值三层加厚防护成人口罩",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-05-08/4216b0dae8eed48095c7ede4aa6e947c.jpeg",
				"price": 2.8,
				"promotion_price": 2.8,
				"sales": 100000,
				"num_iid": 274501022615,
				"sample_id": "",
				"seller_nick": "速之健居家日用官方旗舰店",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=274501022615"
			},
			{
				"title": "医用外科口罩一次性医疗口罩三层无菌正品防病菌毒医生成人独立装",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-07-12/4b40a3d60bdbb127b2a016792d77d5cb.jpeg",
				"price": 7.51,
				"promotion_price": 7.51,
				"sales": 100000,
				"num_iid": 354567170548,
				"sample_id": "",
				"seller_nick": "缘韵医疗器械官方旗舰店",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=354567170548"
			},
			{
				"title": "【独立包装】一次性口罩渐变色高颜值时尚潮流网红小红书同款可爱",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-09-19/e903493f20323c70aa6650dd7c7f41f6.jpeg",
				"price": 3.96,
				"promotion_price": 3.96,
				"sales": 19000,
				"num_iid": 409916598969,
				"sample_id": "",
				"seller_nick": "大米居家日用",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=409916598969"
			},
			{
				"title": "三层医用外科口罩一次性独立包装防勒耳防疫成人医药口罩薄款透气",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-06-11/4d44b9fe14214f7fce6232e1194bf055.jpeg",
				"price": 9.8,
				"promotion_price": 9.8,
				"sales": 100000,
				"num_iid": 302479562864,
				"sample_id": "",
				"seller_nick": "小新防护官方旗舰店",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=302479562864"
			},
			{
				"title": "四层加厚成人男女一次性口罩防护高防尘效含熔喷布透气厂家批发",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-06-15/6a98e1fcd3ef8679f2252529ed165b23.jpeg",
				"price": 11.8,
				"promotion_price": 11.8,
				"sales": 100000,
				"num_iid": 360857358363,
				"sample_id": "",
				"seller_nick": "超婷的店",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=360857358363"
			},
			{
				"title": "新款中国风新年口罩中国红口红罩一次性口罩成人儿童口罩三层防护",
				"pic_url": "https://img.pddpic.com/gaudit-image/2021-12-16/59217dcf083035c6e6b9279ab7d7acf3.jpeg",
				"price": 10.68,
				"promotion_price": 10.68,
				"sales": 52000,
				"num_iid": 310004589814,
				"sample_id": "",
				"seller_nick": "SEVEN七号优品",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=310004589814"
			},
			{
				"title": "一次性口罩整箱500个/2500个批发三层蓝色含熔喷布防飞沫防尘成人",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-05-14/8033721404579c787570ce8af2430bd4.jpeg",
				"price": 15.88,
				"promotion_price": 15.88,
				"sales": 68000,
				"num_iid": 208835190432,
				"sample_id": "",
				"seller_nick": "中加防护",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=208835190432"
			},
			{
				"title": "加长超长耳带绳一次性口罩50只三层含熔喷布大脸薄款防飞沫雾霾",
				"pic_url": "https://img.pddpic.com/gaudit-image/2021-09-11/9ff218b9b37a0cb7611435aa47feefee.jpeg",
				"price": 7.5,
				"promotion_price": 7.5,
				"sales": 12000,
				"num_iid": 255975327459,
				"sample_id": "",
				"seller_nick": "安徽帝晨口罩",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=255975327459"
			},
			{
				"title": "一次性医用外科口罩独立包装抗病毒三层防护防尘成人口罩批发",
				"pic_url": "https://img.pddpic.com/gaudit-image/2022-08-08/235d40a58ead90ca8c4843f3de327372.jpeg",
				"price": 5.22,
				"promotion_price": 5.22,
				"sales": 1797,
				"num_iid": 394027583395,
				"sample_id": "",
				"seller_nick": "波罗蜜医疗器械专营店",
				"post_fee": "",
				"area": "",
				"detail_url": "http://yangkeduo.com/goods.html?goods_id=394027583395"
			}
		]
	},
	"error_code": "0000",
	"reason": "ok",
	"secache": "4ac3d9af07d5d9be821074d42fa34375",
	"secache_time": 1664503763,
	"secache_date": "2022-09-30 10:09:23",
	"translate_status": "",
	"translate_time": 0,
	"language": {
		"default_lang": "cn",
		"current_lang": "cn"
	},
	"error": "",
	"cache": 0,
	"api_info": "today:29 max:10000 all[85=29+29+27];expires:2030-12-31",
	"execution_time": "0.714",
	"server_time": "Beijing/2022-09-30 10:09:23",
	"client_ip": "106.6.35.131",
	"call_args": {
		"q": "口罩",
		"start_price": "0",
		"end_price": "0",
		"page": "1",
		"cat": "0"
	},
	"api_type": "pinduoduo",
	"translate_language": "zh-CN",
	"translate_engine": "baidu",
	"server_memory": "3.17MB",
	"request_id": "gw-1.63364fd344176",
	"last_id": "1253421431"
}