博主主页Feed流视频图片提取,该接口url参数为**博主主页分享链接**
目前支持Instagram、YouTube、TikTok、抖音、西瓜、美拍、头条、火山、好看视频、全民小视频、微博、绿洲、bilibili、轻视频、AcFun、UC浏览器视频等
~~~[api]
post:https://admin.meiwzj.com/feed
*key=接口客户ID#接口客户Key
*token=接口秘钥#接口Token
*url=链接#博主主页分享链接
*cursor=0#获取第1页时不传此参数,获取第2页传前一页结果里的next_cursor
<<<
success
{
"status": 101,
"msg": "请求成功",
"data": {
"next_cursor": "1637424697000",
"has_more": true,
"posts": [
{
"id": "7071073274909773098",
"create_time": 1646362542,
"text": "the bangs are out again",
"medias": [
{
"media_type": "video",
"resource_url": "https://instagram.net/b2f3967b7eb.mp4",
"preview_url": "https://instagramcdn.com/1646362543.jpeg"
}
],
"stats": {
"comment_count": 26,
"digg_count": 1716,
"play_count": 13144,
"share_count": 15
}
},
{
"id": "7032685518366182662",
"create_time": 1637424697,
"text": "going to a ski themed party how cool",
"medias": [
{
"media_type": "image",
"resource_url": "https://instagram.net/a7ee074698edf1.jpeg",
"preview_url": null
}
],
"stats": {
"comment_count": 50,
"digg_count": 9582,
"play_count": 73709,
"share_count": 96
}
}
],
"user": {
"username": "xkatherinerose",
"avatar": "https://cdn-us.com/45a6dc982fc.jpeg"
}
}
}
<<<
error
{
"status":"104",
"msg":"TOKEN和秘钥不匹配",
"data":null
}
~~~
### 返回成功数据字段解释
| 字段 | 说明 |
| --- | --- |
| has_more | true: 有下一页;false: 没有下一页(到底了) |
| next_cursor | 获取下一页数据时,将此值作为cursor参数值传递 |
| posts | 每页包含多个帖子 |
| posts > medias | 每个帖子可能包含多个视频/图片 |
| posts > medias > media_type | 可能是video、image、audio |
| posts > medias > resource_url | 视频地址(video)、图片地址(image)、音频地址(audio) |
| posts > medias > preview_url | 视频封面(video)、音频封面(audio) |
| user > username | 博主昵称 |
| user > avatar | 博主头像 |
### 返回状态码说明
| 状态码 | 说明 |
| --- | --- |
| 101 | 请求成功 |
| 102 | 缺少必要参数 |
| 103 | 不支持的URL |
| 104 | TOKEN和秘钥不匹配 |
| 105 | 链接格式错误 |
| 106 | 提取失败 |
| 108 | 接口调用额度已用完 |