获取创意类相似图

根据某图片元数据获取相似图合集;该搜索的返回结果侧重于图片内容相似度。

此功能暂时单独限速,所有api用户累计每秒调用次数为<50次/秒

接口地址(URI):

创意图片: /api/search/creative/more_like

HTTP请求方式:GET

请求参数:
请求值字段 必选 类型及范围 说明
api-key true string API用户鉴权 id
authorization true string Bearer+空格+access token值
photo_id true string 图片id或res_id
license_type false string 图片版权的授权方式,输入:RM/RF
orientation false string 根据构图方式查询:1横图、2竖图、3方图、4全景(仅支持输入数字,为空则搜索全部)
asset_format false string 图片的图片格式,如:jpg\eps
graphical_style false string 图片类型:1-摄影图片 2-插画 3-漫画 4-图表 5-矢量图 6-psd 7-普通全景 8-360全景 9-gif 10-模板(仅支持输入数字,为空则搜索全部)
page false integer 哪一页(最大1000)
nums false integer 每页数据的最大条目数,默认为100(字段为空时)
请求参数示例example value:
Curl -X GET --header 'Accept: text/html' --header 'api-key: e584cc62649ffc9ae10208740dc69b3d' --header 'authorization: Bearer 23942960e4749a986da1de0f0a926aee3141cbe594628cae5152a8fc41015fee' 'http://api-v1.vcg.com/api/search/creative/more_like?photo_id=VCG41158262917&page=1&nums=3'

Request URL:http://api-v1.vcg.com/api/search/creative/more_like?photo_id=VCG41158262917&page=1&nums=3
返回数据示例example value:
{
"status_code": 1,
"message": "ok",
"data": {
"list": [
{
"id": 808819283,
"res_id": "VCG41158262917",
"title": "Big Dog Little Dog",
"caption": null,
"width": 4368,
"height": 2912,
"license_type": "rm",
"asset_format": "JPG",
"graphical_style": 1,
"online_time": "2013-09-30 20:58:34",
"small_url": "http://photo.static.api.vcg.com/creative/vcg/170/9100000/158262917.jpg",
"preview_url": "http://photo.static.api.vcg.com/creative/vcg/400/version23/VCG41158262917.jpg"
},
{
"id": 808966248,
"res_id": "VCG41157517295",
"title": "Great Dane",
"caption": null,
"width": 6144,
"height": 4096,
"license_type": "rf",
"asset_format": "JPG",
"graphical_style": 1,
"online_time": "2013-09-30 23:49:02",
"small_url": "http://photo.static.api.vcg.com/creative/vcg/170/9247000/157517295.jpg",
"preview_url": "http://photo.static.api.vcg.com/creative/vcg/400/version23/VCG41157517295.jpg"
},
{
"id": 805579123,
"res_id": "VCG41131188222", "title": "Great dane dog sitiing by Christmas tree",
"caption": null,
"width": 4096,
"height": 2731,
"license_type": "rf",
"asset_format": "JPG",
"graphical_style": 1,
"online_time": "2011-12-20 18:43:41",
"small_url": "http://photo.static.api.vcg.com/creative/vcg/170/5860000/131188222.jpg",
"preview_url": "http://photo.static.api.vcg.com/creative/vcg/400/version23/VCG41131188222.jpg"
}
],
"total_count": 21274317,
"total_page": 7091439,
"per_page": "3",
"cur_page": "1"
}
}
返回值字段 字段说明
total_count 返回结果总数
total_page 返回的总页数
per_page 每页结果总数
cur_page 当前页码
id 图片的主键id
res_id 图片的res id
title 图片的标题
caption 图片的说明(备注)
width 图片的原图宽度
height 图片的原图高度
license_type 图片的授权方式:RM、RF
asset_format 图片的图片格式,如:jpg
graphical_style 图片类型:1-摄影图片 2-插画 3-漫画 4-图表 5-矢量图 6-psd 7-普通全景 8-360全景 9-gif 10-模板
online_time 图片的上线时间
veer_url 图片在Veer网站上的展现地址(仅限Veer图片)
small_url 图片的缩略图地址(尺寸:长边176)
preview_url 图片的预览图地址(尺寸:长边400)(Veer预览图尺寸:长边612)
留下您的信息,我们的API技术团队会与您联系