以图搜图

根据某图片全图像素或该图片的区域像素(划图搜索)获取相似图合集;该搜索的返回结果侧重于图形、色彩相似度

接口地址(URI):

VCG创意图片: /api/search/creative/photo_from_url

HTTP请求方式:GET

请求参数:
请求值字段 必选 类型及范围 说明
api-key true string API用户鉴权 id
authorization true string Bearer+空格+access token值
pic_url true string jpeg图片URL(填写此选项后,photo_id无效)
photo_id true string 图片id或res_id(仅当pic_url为空时生效)
请求参数示例example value:
Curl:curl -X GET --header 'Accept: text/html' --header 'api-key: e584cc62649ffc9ae10208740dc69b3d' --header 'authorization: Bearer 23942960e4749a986da1de0f0a926aee3141cbe594628cae5152a8fc41015fee' 'http://api-v1.vcg.com/api/search/creative/photo_from_url?photo_id=VCG111133117098'

Request URL:http://api-v1.vcg.com/api/search/creative/photo_from_url?photo_id=VCG111133117098
返回数据示例example value:
{
"status_code": 1,
"message": "ok",
"data": {
"list": {
"VCG41521826773": {
"id": 812013819,
"res_id": "VCG41521826773",
"title": "dragon dancing",
"caption": "dragon dancing festival in vietnam",
"width": 6320,
"height": 4599,
"license_type": "rm",
"asset_format": "jpg",
"small_url": "http://photo.static.api.vcg.com/creative/vcg/170/12297000/521826773.jpg",
"preview_url": "http://photo.static.api.vcg.com/creative/vcg/400/version23/VCG41521826773.jpg"
},
"VCG41148573667": {
"id": 809550236,
"res_id": "VCG41148573667",
"title": "Masked Lakhe demon dancers performing in Durbar Square during Indra Jatra festival.",
"caption": null,
"width": 4026,
"height": 2605,
"license_type": "rm",
"asset_format": "JPG",
"small_url": "http://photo.static.api.vcg.com/creative/vcg/170/9831000/148573667.jpg",
"preview_url": "http://photo.static.api.vcg.com/creative/vcg/400/version23/VCG41148573667.jpg"
},
"VCG41148910310": {
"id": 808001247,
"res_id": "VCG41148910310",
"title": "People in colourful costumes at Carnival parade.",
"caption": null,
"width": 4950,
"height": 3300,
"license_type": "rm",
"asset_format": "JPG",
"small_url": "http://photo.static.api.vcg.com/creative/vcg/170/8282000/148910310.jpg",
"preview_url": "http://photo.static.api.vcg.com/creative/vcg/500-nowater/8282000/148910310.jpg"
}
},
"total_count": 86
}
返回值字段 字段说明
total_count 返回结果总数
id 图片主键id
res_id 图片的res id
title 图片的标题
caption 图片的说明
width 图片的原图宽度
height 图片的原图高度
license_type 图片的授权类型(RM/RF)
asset_format 图片的格式,如:jpg
small_url 图片的缩略图地址(尺寸:长边176)
preview_url_origin 图片的预览图地址(尺寸:长边612 仅限Veer图片)
preview_url 图片的预览图地址(尺寸:长边400)(Veer预览图尺寸:长边612)
留下您的信息,我们的API技术团队会与您联系