接口文档
接口名称:img2text-图片识别商品接口
接口状态:已完成
请求方式:GET/POST
Content-Type:JSON (application/json)
更新时间:2022-06-27 20:19:09
公共参数
名称 | 类型 | 必须 | 描述 |
---|---|---|---|
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版本 |
请求参数
请求参数:imgcode=http://g-search3.alicdn.com/img/bao/uploaded/i4/O1CN01IDpcD81zHbpHs1YgT_!!2200811456689.jpg
参数说明:imgcode:base64加密后的图片内容(post方式),或者是直接上传(file方式),或是淘宝图片 URL
响应示例
"item": {
"tags": "",
"items": [
""
],
"find": "",
"guesswords": "",
"result": {
"title": null
},
"same_info": [
{
"link": "http://item.jd.com/25581753956.html",
"img": "http://mms1.baidu.com/it/u=3126018641,859645225&fm=253&app=138&f=JPEG&fmt=auto&q=75?w=350&h=350"
},
{
"link": "http://detail.1688.com/offer/558233801583.html",
"img": "http://mms1.baidu.com/it/u=3785867947,1516388271&fm=253&app=138&f=JPEG&fmt=auto&q=75?w=500&h=375"
},
{
"link": "http://item.jd.com/25581753963.html",
"img": "http://mms1.baidu.com/it/u=3931054880,2483416868&fm=253&app=138&f=JPEG&fmt=auto&q=75?w=350&h=350"
},
{
"link": "http://item.jd.com/25271308104.html",
"img": "http://mms0.baidu.com/it/u=2030848330,3455958938&fm=253&app=138&f=JPEG&fmt=auto&q=75?w=350&h=350"
},
{
"link": "http://detail.1688.com/o