此API目前支持以下基本接口:
- item_search 按关键字或网址搜索商品
- seller_info 获得店铺评分
- item_link 链接转换
- item_id 佣金转换
- item_search_pro 搜索高级接口
alimama.item_search
★请求URL:o0b.cn/imike 获取API测试账号。
| 名称 | 类型 | 必须 | 描述 |
|---|---|---|---|
| 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版本 |
请求参数:q=女装&start_price=0&end_price=0&page=1&cat=0&discount_only=&sort=&page_size=&seller_info=&nick=&ppath=&imgid=&filter=
参数说明:q:搜索关键字,支持url
cat:分类ID
start_price:开始价格
end_price:结束价格
sort:排序[bid,_bid,_sale,_credit,_income,_prom,_comm]
(bid:总价,sale:销量,credit信用/人气,income收入,月推广量,comm月支出佣金。加_前缀为从大到小排序)
page:
seller_info:不支持
nick:不支持
ppath:不支持
imgid:不支持
filter:参数数组:(以:分隔键和值,以;分隔参数组,支持的参数如下:
startTkRate:0,收入比率大于
endTkRate:100,收入比率少于
b2c:1,天猫
startBiz30day:10,月销量
hPayRate30:1,月成交转化率高于行业均值
freeShipment:1,包邮
dpyhq:1,店铺优惠券
yxjh:1,营销和定向计划
loc:北京,发货地)
Version: Date:
| 名称 | 类型 | 必须 | 示例值 | 描述 |
|---|---|---|---|---|
| items | items[] | 0 | 按关键字或网址搜索商品 |