优选商品查询API
58548人使用

优选商品查询API可获取优选每日爆品链接-适合有私欲流量推广使用


接口地址: http://api.tbk.dingdanxia.com/waimai/meituan_youxuan_goods 在线测试

接口支持https,非大陆服务器(含港澳台)调用接口会出现网络缓慢现象,请联系客服获取国外专线接口

请求参数、 调用方式 GET/POST

参数接口

参数类型

必填

示例

说明

apikey

string

接口秘钥,请登录后台获取

sid

String

123456

渠道方用户唯一标识,渠道可自定义,长度不超过50,参数中不能包含dingdanxia,用于向用户返佣,支持小写字母和数字的格式,其它字符可能造成无法正常跟单

pageNO

Number

1

第几页,默认:1

pageSize

Number

20

页大小,默认 20,1~100

longitude

String

116.382278

本地化业务入参-LBS 信息-经度

latitude

String

40.087785

本地化业务入参-LBS 信息-纬度

deviceType

String

ios、android

deviceId

String

iOS 设备传明文 IDFA Android 设备版本 10 以上发 MD5 的 OAID,版 本 10 以下发 MD5 的 IMEI 号。

返回参数说明

标记

类型

例子

说明

total

Number

数据总量

skuList

Array

商品列表

L itemId

String

商品信息-宝贝 id skuid

L title

String

商品信息-商品标题

L pictUrl

String

商品信息-商品主图

L smallImages

Array

商品信息-商品小图列表

L originPrice

String

原价(单位为元)

L promotionPrice

String

促销价(活动价格)秒杀价格 (单位为元)

L itemDeepLinkUrl

String

宝贝的 deeplink 地址

L itemMiddlePageLinkUrl

String

宝贝的中间页地址

L itemWXLinkUrl

String

宝贝的微信小程序链接地址

L hotFlag

Boolean

是否是热门商品

返回示例
{
	"code": 200,
	"msg": "请求成功【success】",
	"data": {
		"total": 657,
		"skuList": [{
			"itemId": 100028747376109,
			"smallImages": "[\"https://p1.meituan.net/mallimages/7748e6599b35e920fea6138636d95afd119443.jpg\",\"https://p0.meituan.net/mallimages/c41ad70f5c7d2b41df83ea64d3455bc8133978.jpg\",\"https://p1.meituan.net/mallimages/8779e341ed9f992d772204a6ac5a1b3379542.jpg\",\"https://p0.meituan.net/mallimages/0bbe84ed71d2a02191e4543e3aaf74ff105406.jpg\"]",
			"itemDeepLinkUrl": "igrocery://www.grocery.com/web?lch=cps:youxuan:3:a144a9fa40a42c55af00214bb4bb3993971:2dingdanxia123456:22:70690&url=https%3A%2F%2Frunion.meituan.com%2Fyouxuan%2Furl%3Fkey%3Da144a9fa40a42c55af00214bb4bb3993971%26sid%3D2dingdanxia123456%26target%3Digrocery%253A%252F%252Fwww.grocery.com%252Fmmp%253FtargetPath%253D%25252Fpages%25252Findex%25252Findex%25253Fprotocol%25253Digrocery%2525253A%2525252F%2525252Fwww.grocery.com%2525252Fdetail%2525253FskuId%2525253D100028747376109%25252526utm_term%2525253D%2525257B%25252522mtlm%25252522%2525253A%25252522cps%2525253Ayouxuan%2525253A3%2525253Aa144a9fa40a42c55af00214bb4bb3993971%2525253A2dingdanxia123456%2525253A22%2525253A70690%25252522%2525257D%2526appId%253Dgh_84b9766b95bc%2526appkey%253Da144a9fa40a42c55af00214bb4bb3993971%253A2dingdanxia123456",
			"itemMiddlePageLinkUrl": "https://w.dianping.com/cube/evoke/youxuan.html?lch=cps:youxuan:1:a144a9fa40a42c55af00214bb4bb3993971:2dingdanxia123456:22:70690&url=https%3A%2F%2Frunion.meituan.com%2Fyouxuan%2Furl%3Fkey%3Da144a9fa40a42c55af00214bb4bb3993971%26sid%3D2dingdanxia123456%26target%3Digrocery%253A%252F%252Fwww.grocery.com%252Fmmp%253FtargetPath%253D%25252Fpages%25252Findex%25252Findex%25253Fprotocol%25253Digrocery%2525253A%2525252F%2525252Fwww.grocery.com%2525252Fdetail%2525253FskuId%2525253D100028747376109%25252526utm_term%2525253D%2525257B%25252522mtlm%25252522%2525253A%25252522cps%2525253Ayouxuan%2525253A1%2525253Aa144a9fa40a42c55af00214bb4bb3993971%2525253A2dingdanxia123456%2525253A22%2525253A70690%25252522%2525257D%2526appId%253Dgh_84b9766b95bc%2526appkey%253Da144a9fa40a42c55af00214bb4bb3993971%253A2dingdanxia123456",
			"promotionPrice": "109.00",
			"pictUrl": "https://p1.meituan.net/mallimages/7748e6599b35e920fea6138636d95afd119443.jpg",
			"itemWXLinkUrl": "subPackages/webview/index?lch=cps:youxuan:5:a144a9fa40a42c55af00214bb4bb3993971:2dingdanxia123456:22:70690&url=https%3A%2F%2Frunion.meituan.com%2Fyouxuan%2Furl%3Fkey%3Da144a9fa40a42c55af00214bb4bb3993971%26sid%3D2dingdanxia123456%26target%3Dhttps%253A%252F%252Fi.meituan.com%252Fawp%252Fhfe%252Fblock%252F0fa89e3742cb33896d37%252F116372%252Findex.html%253FtargetPath%253D%25252FsubPackages%25252Ftransfer%25252Findex%25253Fprotocol%25253Digrocery%2525253A%2525252F%2525252Fwww.grocery.com%2525252Fdetail%2525253FskuId%2525253D100028747376109%25252526utm_term%2525253D%2525257B%25252522mtlm%25252522%2525253A%25252522cps%2525253Ayouxuan%2525253A5%2525253Aa144a9fa40a42c55af00214bb4bb3993971%2525253A2dingdanxia123456%2525253A22%2525253A70690%25252522%2525257D%2526appkey%253Da144a9fa40a42c55af00214bb4bb3993971%253A2dingdanxia123456",
			"originPrice": "144.00",
			"title": "红牛维生素风味饮料250ml*24/箱(非功能,介意慎拍)",
			"hotFlag": false
		}, {
			"itemId": 100104021155896,
			"smallImages": "[\"https://img.meituan.net/groceryimages/29fa6141cb86fdb20abce1af743465ec281824.jpg\",\"https://img.meituan.net/groceryimages/9c9429c0dde5499972c4a21c0be97267149431.jpg\",\"https://img.meituan.net/groceryimages/660882cacbaa253d9990d5ebbd1b1bd4238166.jpg\"]",
			"itemDeepLinkUrl": "igrocery://www.grocery.com/web?lch=cps:youxuan:3:a144a9fa40a42c55af00214bb4bb3993971:2dingdanxia123456:22:70690&url=https%3A%2F%2Frunion.meituan.com%2Fyouxuan%2Furl%3Fkey%3Da144a9fa40a42c55af00214bb4bb3993971%26sid%3D2dingdanxia123456%26target%3Digrocery%253A%252F%252Fwww.grocery.com%252Fmmp%253FtargetPath%253D%25252Fpages%25252Findex%25252Findex%25253Fprotocol%25253Digrocery%2525253A%2525252F%2525252Fwww.grocery.com%2525252Fdetail%2525253FskuId%2525253D100104021155896%25252526utm_term%2525253D%2525257B%25252522mtlm%25252522%2525253A%25252522cps%2525253Ayouxuan%2525253A3%2525253Aa144a9fa40a42c55af00214bb4bb3993971%2525253A2dingdanxia123456%2525253A22%2525253A70690%25252522%2525257D%2526appId%253Dgh_84b9766b95bc%2526appkey%253Da144a9fa40a42c55af00214bb4bb3993971%253A2dingdanxia123456",
			"itemMiddlePageLinkUrl": "https://w.dianping.com/cube/evoke/youxuan.html?lch=cps:youxuan:1:a144a9fa40a42c55af00214bb4bb3993971:2dingdanxia123456:22:70690&url=https%3A%2F%2Frunion.meituan.com%2Fyouxuan%2Furl%3Fkey%3Da144a9fa40a42c55af00214bb4bb3993971%26sid%3D2dingdanxia123456%26target%3Digrocery%253A%252F%252Fwww.grocery.com%252Fmmp%253FtargetPath%253D%25252Fpages%25252Findex%25252Findex%25253Fprotocol%25253Digrocery%2525253A%2525252F%2525252Fwww.grocery.com%2525252Fdetail%2525253FskuId%2525253D100104021155896%25252526utm_term%2525253D%2525257B%25252522mtlm%25252522%2525253A%25252522cps%2525253Ayouxuan%2525253A1%2525253Aa144a9fa40a42c55af00214bb4bb3993971%2525253A2dingdanxia123456%2525253A22%2525253A70690%25252522%2525257D%2526appId%253Dgh_84b9766b95bc%2526appkey%253Da144a9fa40a42c55af00214bb4bb3993971%253A2dingdanxia123456",
			"promotionPrice": "16.90",
			"pictUrl": "https://img.meituan.net/groceryimages/29fa6141cb86fdb20abce1af743465ec281824.jpg",
			"itemWXLinkUrl": "subPackages/webview/index?lch=cps:youxuan:5:a144a9fa40a42c55af00214bb4bb3993971:2dingdanxia123456:22:70690&url=https%3A%2F%2Frunion.meituan.com%2Fyouxuan%2Furl%3Fkey%3Da144a9fa40a42c55af00214bb4bb3993971%26sid%3D2dingdanxia123456%26target%3Dhttps%253A%252F%252Fi.meituan.com%252Fawp%252Fhfe%252Fblock%252F0fa89e3742cb33896d37%252F116372%252Findex.html%253FtargetPath%253D%25252FsubPackages%25252Ftransfer%25252Findex%25253Fprotocol%25253Digrocery%2525253A%2525252F%2525252Fwww.grocery.com%2525252Fdetail%2525253FskuId%2525253D100104021155896%25252526utm_term%2525253D%2525257B%25252522mtlm%25252522%2525253A%25252522cps%2525253Ayouxuan%2525253A5%2525253Aa144a9fa40a42c55af00214bb4bb3993971%2525253A2dingdanxia123456%2525253A22%2525253A70690%25252522%2525257D%2526appkey%253Da144a9fa40a42c55af00214bb4bb3993971%253A2dingdanxia123456",
			"originPrice": "28.00",
			"title": "哈尔滨哈舰冰醇啤酒(绿罐)500ml*12瓶整箱装",
			"hotFlag": false
		}]
	}
}			  
返回错误码说明

错误码

错误描述

解决办法

200

返回成功

-1

数据返回失败

请查看 msg 返回提示

4001

接口秘钥不能为空

请传入接口秘钥

4002

接口秘钥出错

登录后台查看接口秘钥是否一致

4003

参数不正确

请检查参数是否符合文档要求

4004

服务已到期请及时续费

登录后台续费

4005

该接口当日调用量已超限

升级套餐

4006

无权调用该接口

升级套餐

4007

接口不存在

4008

signature不正

查看签名构建规则确保正确无误。

4009

点卡已用完

请登录控制台-服务购买-充值点卡

4010

请购买接口次数包才能调用此接口

需充值次数包

4011

次数包已用完,请重新购买

需充值次数包

4012

请求客户端ip未加入白名单

将ip加入白名单

4013

联盟账号授权已过期

请登录控制台【授权管理】下重新授权您的相关账号

4014

PID异常

请登录控制台【授权管理】-【淘宝授权】,检查您的推广位PID是否填写,或是否填写正确。

4015

系统异常

服务端处理异常,请等待......或联系网站在线客服反馈。

4017

请求拒绝

调用请求被拒绝,您的账号状态存在异常,请联系平台管理员解除限制。