热门视频
其他 官方文档
获取热门视频详情
基本说明:
接口地址:http://baobab.kaiyanapp.com/api/v4/discovery/hot
返回格式:json
请求方式:get/post
请求示例:http://baobab.kaiyanapp.com/api/v4/discovery/hot?start=1&num=1
请求参数说明:
名称 类型 必填 说明
start int 选填 开始页数
num int 选填 单个页面个数
返回参数说明:
名称 类型 说明
name string 视频名称
desc string 视频介绍
bgPicture string 视频背景图
headerImage string 视频头像
tagRecType string 视频分类
JSON返回示例:
{
	"itemList": [{
		"type": "video",
		"data": {
			"dataType": "VideoBeanForClient",
			"id": 259959,
			"title": "丝滑到难以想象的珍珠奶茶爆浆蛋糕",
			"description": "在网上众多爆红的蛋糕之中,珍珠奶茶爆浆蛋糕一定名列其中。当珍珠奶茶缓缓从蛋糕顶部流下,这一过程简直不能更治愈!但也是这一神奇的过程,让许多人望而却步,这么奇特的蛋糕,做法一定很复杂吧?但其实,幸福往往隐藏在简单之中。",
			"library": "DEFAULT",
			"tags": [{
				"id": 20,
				"name": "风味市集",
				"actionUrl": "eyepetizer://tag/20/?title=%E9%A3%8E%E5%91%B3%E5%B8%82%E9%9B%86",
				"adTrack": null,
				"desc": "每日美食实验,带你感受味觉巅峰瞬间",
				"bgPicture": "http://img.kaiyanapp.com/2c869d91d5db6ecf1c8c46af0f448719.png?imageMogr2/quality/60/format/jpg",
				"headerImage": "http://img.kaiyanapp.com/5748574edf96949c04ad382c46a4a2fd.png?imageMogr2/quality/60/format/jpg",
				"tagRecType": "IMPORTANT",
				"childTagList": null,
				"childTagIdList": null,
				"haveReward": false,
				"ifNewest": false,
				"newestEndTime": null,
				"communityIndex": 0
			}, {
				"id": 1020,
				"name": "开胃",
				"actionUrl": "eyepetizer://tag/1020/?title=%E5%BC%80%E8%83%83",
				"adTrack": null,
				"desc": "用美食唤醒你沉睡的味蕾",
				"bgPicture": "http://img.kaiyanapp.com/539f19d05586a9bcf67f255b2e54da2d.jpeg?imageMogr2/quality/60/format/jpg",
				"headerImage": "http://img.kaiyanapp.com/539f19d05586a9bcf67f255b2e54da2d.jpeg?imageMogr2/quality/60/format/jpg",
				"tagRecType": "NORMAL",
				"childTagList": null,
				"childTagIdList": null,
				"haveReward": false,
				"ifNewest": false,
				"newestEndTime": null,
				"communityIndex": 0
			}, {
				"id": 718,
				"name": "美食教程",
				"actionUrl": "eyepetizer://tag/718/?title=%E7%BE%8E%E9%A3%9F%E6%95%99%E7%A8%8B",
				"adTrack": null,
				"desc": "",
				"bgPicture": "http://img.kaiyanapp.com/403c8b2c0ffc94f8b80e4cb7779ac9bf.jpeg?imageMogr2/quality/60/format/jpg",
				"headerImage": "http://img.kaiyanapp.com/efd50bb0281c9ef9cf32ac84195f2136.jpeg?imageMogr2/quality/60/format/jpg",
				"tagRecType": "NORMAL",
				"childTagList": null,
				"childTagIdList": null,
				"haveReward": false,
				"ifNewest": false,
				"newestEndTime": null,
				"communityIndex": 0
			}, {
				"id": 484,
				"name": "干货",
				"actionUrl": "eyepetizer://tag/484/?title=%E5%B9%B2%E8%B4%A7",
				"adTrack": null,
				"desc": null,
				"bgPicture": "http://img.kaiyanapp.com/27856a0c2855246c31c19f7a8fd814ce.jpeg?imageMogr2/quality/60/format/jpg",
				"headerImage": "http://img.kaiyanapp.com/27856a0c2855246c31c19f7a8fd814ce.jpeg?imageMogr2/quality/60/format/jpg",
				"tagRecType": "NORMAL",
				"childTagList": null,
				"childTagIdList": null,
				"haveReward": false,
				"ifNewest": false,
				"newestEndTime": null,
				"communityIndex": 0
			}],
			"consumption": {
				"collectionCount": 0,
				"shareCount": 0,
				"replyCount": 0,
				"realCollectionCount": 0
			},
			"resourceType": "video",
			"slogan": null,
			"provider": {
				"name": "定制来源",
				"alias": "CustomSrc",
				"icon": ""
			},
			"category": "开胃",
			"author": {
				"id": 5956,
				"icon": "http://img.kaiyanapp.com/e7796d1b0fc29faafec325ca8e8306d6.jpeg?imageMogr2/quality/60/format/jpg",
				"name": "Nino's Home",
				"description": "日本美食博主 Nino",
				"link": "",
				"latestReleaseTime": 1623920060000,
				"videoNum": 66,
				"adTrack": null,
				"follow": {
					"itemType": "author",
					"itemId": 5956,
					"followed": false
				},
				"shield": {
					"itemType": "author",
					"itemId": 5956,
					"shielded": false
				},
				"approvedNotReadyVideoCount": 0,
				"ifPgc": true,
				"recSort": 0,
				"expert": false
			},
			"cover": {
				"feed": "http://img.kaiyanapp.com/2bcfdd5fcf2c12e46e8dad509ddea432.jpeg?imageMogr2/quality/60/format/jpg",
				"detail": "http://img.kaiyanapp.com/2bcfdd5fcf2c12e46e8dad509ddea432.jpeg?imageMogr2/quality/60/format/jpg",
				"blurred": "http://img.kaiyanapp.com/a9e453f221703eb221d68dc42750f475.jpeg?imageMogr2/quality/60/format/jpg",
				"sharing": null,
				"homepage": null
			},
			"playUrl": "http://baobab.kaiyanapp.com/api/v1/playUrl?vid=259959&resourceType=video&editionType=default&source=aliyun&playUrlType=url_oss&udid=",
			"thumbPlayUrl": null,
			"duration": 602,
			"webUrl": {
				"raw": "http://www.eyepetizer.net/detail.html?vid=259959",
				"forWeibo": "https://m.eyepetizer.net/u1/video-detail?video_id=259959&resource_type=video&utm_campaign=routine&utm_medium=share&utm_source=weibo&uid=0"
			},
			"releaseTime": 1623920060000,
			"playInfo": [{
				"height": 720,
				"width": 1280,
				"urlList": [{
					"name": "aliyun",
					"url": "http://baobab.kaiyanapp.com/api/v1/playUrl?vid=259959&resourceType=video&editionType=high&source=aliyun&playUrlType=url_oss&udid=",
					"size": 46020207
				}, {
					"name": "ucloud",
					"url": "http://baobab.kaiyanapp.com/api/v1/playUrl?vid=259959&resourceType=video&editionType=high&source=ucloud&playUrlType=url_oss&udid=",
					"size": 46020207
				}],
				"name": "高清",
				"type": "high",
				"url": "http://baobab.kaiyanapp.com/api/v1/playUrl?vid=259959&resourceType=video&editionType=high&source=aliyun&playUrlType=url_oss&udid="
			}],
			"campaign": null,
			"waterMarks": null,
			"ad": false,
			"adTrack": [],
			"type": "NORMAL",
			"titlePgc": "丝滑到难以想象的珍珠奶茶爆浆蛋糕",
			"descriptionPgc": "在网上众多爆红的蛋糕之中,珍珠奶茶爆浆蛋糕一定名列其中。当珍珠奶茶缓缓从蛋糕顶部流下,这一过程简直不能更治愈!但也是这一神奇的过程,让许多人望而却步,这么奇特的蛋糕,做法一定很复杂吧?但其实,幸福往往隐藏在简单之中。",
			"remark": null,
			"ifLimitVideo": false,
			"searchWeight": 0,
			"brandWebsiteInfo": null,
			"videoPosterBean": null,
			"idx": 0,
			"shareAdTrack": null,
			"favoriteAdTrack": null,
			"webAdTrack": null,
			"date": 1623920060000,
			"promotion": null,
			"label": null,
			"labelList": [],
			"descriptionEditor": "",
			"collected": false,
			"reallyCollected": false,
			"played": false,
			"subtitles": [],
			"lastViewTime": null,
			"playlists": null,
			"src": null,
			"recallSource": null,
			"recall_source": null
		},
		"trackingData": null,
		"tag": null,
		"id": 0,
		"adIndex": -1
	}],
	"count": 1,
	"total": 0,
	"nextPageUrl": "http://baobab.kaiyanapp.com/api/v4/discovery/hot?start=2&num=1",
	"adExist": false
}
服务级错误码参照
错误码 说明
404 url错误
完整教学代码示例
<?php
/**
 * Created by PhpStorm.
 * User: FZS
 * Time: 2021/07/03 19:26
 */
class freeApi
{
    private $apiUrl;

    public function __construct()
    {
        $this->apiUrl = 'http://baobab.kaiyanapp.com/api/v4/discovery/hot?start=1&num=1';
    }

    /**
     * 获取结果
     * @return array
     */
    public function getResult()
    {
        return file_get_contents($this->apiUrl);
    }
}
package main

import (
	"fmt"
	"io/ioutil"
	"log"
	"net/http"
)

const (
	APIURL   = "http://baobab.kaiyanapp.com/api/v4/discovery/hot?start=1&num=1"
)

func main() {
	queryUrl := fmt.Sprintf("%s",APIURL)
	resp, err := http.Get(queryUrl)
	if err != nil {
		log.Println(err)
		return
	}

	defer resp.Body.Close()

	body, err := ioutil.ReadAll(resp.Body)

	if err != nil {
		fmt.Println(err)
		return
	}

	fmt.Println(string(body))
}