给文章配图
通过文字内容,如标题和文章内容,提取关键词,并推荐配图
接口地址(URI):api/ai/article_to_images
HTTP请求方式:GET
请求参数:
请求值字段 | 必选 | 类型及范围 | 说明 |
---|---|---|---|
api-key | true | string | API用户鉴权 id |
authorization | true | string | Bearer+空格+access token值 |
title | false | string | 文章标题 (最大80个字节) |
article | true | string | 文章内容(最大65000个字节) |
final_account_id | false | string | 最终用户id. |
请求参数示例example value:
Curl -X GET --header 'Accept: text/html' --header 'api-key: e584cc62649ffc9ae10208740dc69b3d' --header
'authorization: Bearer 3e371ebf471238c7775687157eeccd4228495a7b0f926b1b462193a653f25c6a'
'http://api-v1.vcg.com/api/videos/search/group?group_id=505123683'
Request URL:http://api-v1.vcg.com/api/ai/copyright_analyse?img_url=http%3A%2F%2Fphoto.static.api.vcg.com%2Feditorial%2Fvcg%2F400%2Fversion23%2FVCG11462769843.jpg
Request URL:http://api-v1.vcg.com/api/ai/copyright_analyse?img_url=http%3A%2F%2Fphoto.static.api.vcg.com%2Feditorial%2Fvcg%2F400%2Fversion23%2FVCG11462769843.jpg
返回数据示例example value:
{
"status_code": 1,
"message": "ok",
"data": {
"class_lv1": "社会",
"class_lv2": "",
"keywords_and_char": "山东|LOC,山东省|LOC,长春长生公司|ORG,国家食品药品监管总局|ORG,2017年11月3日|TIME,三天内|TIME,问题疫苗,流向,百白破疫苗,接种,补种,儿童,不合格",
"pre": [],
"org": [
{
"keywords": "长春长生公司",
"list": [
{
"id": "VCG111172354080",
"caption": "国家药品监督管理局撤销长春长生公司狂犬病疫苗(国药准字S20120016)药品批准证明文件",
"width": 2126,
"height": 2126,
"online_time": "2018-10-17 16:35:31",
"small_url": "http://photo.static.api.vcg.com/editorial/vcg/176/new/VCG111172354080.jpg",
"preview_url": "http://photo.static.api.vcg.com/editorial/vcg/400/new/VCG111172354080.jpg"
},
{
"id": "VCG111172350510",
"caption": "2018年10月16日18:39 来源:人民网人民网北京10月16日电(冯粒)16日,国家药品监督管理局和吉林省食品药品监督管理局依法从严对长春长生生物科技有限责任公司(以下简称“长春长生公司”)",
"width": 3276,
"height": 2646,
"online_time": "2018-10-17 16:34:37",
"small_url": "http://photo.static.api.vcg.com/editorial/vcg/176/new/VCG111172350510.jpg",
"preview_url": "http://photo.static.api.vcg.com/editorial/vcg/400/new/VCG111172350510.jpg"
}
]
},
{
"keywords": "国家食品药品监管总局",
"list": [
{
"id": "VCG111153611596",
"caption": "春城晚报公号5月15日报道,日前,国家市场监管总局官网公布了8000余件食品保健品欺诈和虚假宣传案。",
"width": 2123,
"height": 1354,
"online_time": "2018-05-15 18:36:45",
"small_url": "http://photo.static.api.vcg.com/editorial/vcg/176/new/VCG111153611596.jpg",
"preview_url": "http://photo.static.api.vcg.com/editorial/vcg/400/new/VCG111153611596.jpg"
},
{
"id": "VCG111140245678",
"caption": "漫画:“神药”热销靠吹牛 虚假医药广告顽疾怎么治? ",
"width": 3769,
"height": 2126,
"online_time": "2017-12-08 23:38:19",
"small_url": "http://photo.static.api.vcg.com/editorial/vcg/176/new/VCG111140245678.jpg",
"preview_url": "http://photo.static.api.vcg.com/editorial/vcg/400/new/VCG111140245678.jpg"
}
]
}
],
}
}
"status_code": 1,
"message": "ok",
"data": {
"class_lv1": "社会",
"class_lv2": "",
"keywords_and_char": "山东|LOC,山东省|LOC,长春长生公司|ORG,国家食品药品监管总局|ORG,2017年11月3日|TIME,三天内|TIME,问题疫苗,流向,百白破疫苗,接种,补种,儿童,不合格",
"pre": [],
"org": [
{
"keywords": "长春长生公司",
"list": [
{
"id": "VCG111172354080",
"caption": "国家药品监督管理局撤销长春长生公司狂犬病疫苗(国药准字S20120016)药品批准证明文件",
"width": 2126,
"height": 2126,
"online_time": "2018-10-17 16:35:31",
"small_url": "http://photo.static.api.vcg.com/editorial/vcg/176/new/VCG111172354080.jpg",
"preview_url": "http://photo.static.api.vcg.com/editorial/vcg/400/new/VCG111172354080.jpg"
},
{
"id": "VCG111172350510",
"caption": "2018年10月16日18:39 来源:人民网人民网北京10月16日电(冯粒)16日,国家药品监督管理局和吉林省食品药品监督管理局依法从严对长春长生生物科技有限责任公司(以下简称“长春长生公司”)",
"width": 3276,
"height": 2646,
"online_time": "2018-10-17 16:34:37",
"small_url": "http://photo.static.api.vcg.com/editorial/vcg/176/new/VCG111172350510.jpg",
"preview_url": "http://photo.static.api.vcg.com/editorial/vcg/400/new/VCG111172350510.jpg"
}
]
},
{
"keywords": "国家食品药品监管总局",
"list": [
{
"id": "VCG111153611596",
"caption": "春城晚报公号5月15日报道,日前,国家市场监管总局官网公布了8000余件食品保健品欺诈和虚假宣传案。",
"width": 2123,
"height": 1354,
"online_time": "2018-05-15 18:36:45",
"small_url": "http://photo.static.api.vcg.com/editorial/vcg/176/new/VCG111153611596.jpg",
"preview_url": "http://photo.static.api.vcg.com/editorial/vcg/400/new/VCG111153611596.jpg"
},
{
"id": "VCG111140245678",
"caption": "漫画:“神药”热销靠吹牛 虚假医药广告顽疾怎么治? ",
"width": 3769,
"height": 2126,
"online_time": "2017-12-08 23:38:19",
"small_url": "http://photo.static.api.vcg.com/editorial/vcg/176/new/VCG111140245678.jpg",
"preview_url": "http://photo.static.api.vcg.com/editorial/vcg/400/new/VCG111140245678.jpg"
}
]
}
],
}
}
返回值字段 | 字段说明 |
---|---|
class_lv1 | 文章所属的1级分类 |
class_lv2 | 文章所属的2级分类 |
keywords_and_char | 从文章中提取的所有关键词 |
keywords | 从文章中提取的单个关键词 |
id | 图片res id |
caption | 该图片的说明或标题 |
width | 图片的原图宽度 |
height | 图片的原图高度 |
online_time | 图片的上线时间 |
small_url | 图片的缩略图地址(尺寸:长边176) |
preview_url | 图片的预览图地址(尺寸:长边400) |