百度电视剧热搜榜
百度电视剧热搜榜
接口信息
| 项目 | 内容 |
|---|---|
| 接口地址 | https://api.code410.com/api/hot/baidu_tv |
| 返回格式 | application/json |
| 请求方式 | HTTP GET POST/JSON |
| 更新日期 | 2023-09-03 |
| 调用权限 | 免费开放 |
| 每日限制 | 无限制 |
| 请求频率限制 | 1秒5次 |
请求示例
https://api.code410.com/api/hot/baidu_tv请求 HEADER
| 名称 | 值 |
|---|---|
| Content-Type | application/x-www-form-urlencoded;charset; |
返回参数说明
| 名称 | 类型 | 说明 |
|---|---|---|
| code | int | 状态码 |
| msg | string | 状态信息 |
| data | string | 请求结果数据集 |
| data.content | string | 电视剧热搜榜数据集 |
| data.content.word | string | 电视剧名字 |
| data.content.desc | string | 电视剧简介描述 |
| data.content.hotChange | string | 热度变化 |
| data.content.hotScore | string | 热度值 |
| data.content.img | string | 电视剧封面图片 |
| data.content.index | string | 指数排名 (数值越小,排名越前) |
| data.content.indexUrl | string | 百度指数 |
| data.content.query | string | 电视剧搜索关键词 |
| data.content.url | string | 电视剧搜索链接 |
| data.content.show | string | 电视剧信息 |
| debug | string/array | 调试数据 |
| exec_time | float | 执行耗时 |
| user_ip | string | 客户端IP |
错误码参照
| 错误码 | 类型 | 说明 |
|---|---|---|
| 403 | int | 没有权限 |
| 400 | int | 参数传递不正确 |
| 500 | int | 服务器内部错误 |
在线调试 / 完整文档
本接口为 信息查找 分类下的开放接口。完整文档、在线调试与示例代码请前往 https://api.code410.com/doc/203。
返回示例
{
"code": 200,
"msg": "请求成功",
"data": {
"content": [
{
"word": "蜜语纪",
"desc": "聚焦明星经理人纪封与经历婚变后沦为酒店保洁的许蜜语成长历程。",
"hotChange": "",
"hotScore": "90764",
"img": "https://b.bdstatic.com/searchbox/file/cmsuploader/20260428/1777375012452740.png",
"index": 0,
"indexUrl": "",
"query": "蜜语纪 电视剧",
"url": "https://www.baidu.com/s?wd=%E8%9C%9C%E8%AF%AD%E7%BA%AA+%E7%94%B5%E8%A7%86%E5%89%A7&sa=fyb_teleplay_all_all&rsv_dl=fyb_teleplay_all_all",
"show": [
"类型:家庭、剧情",
"演员:钟汉良、朱珠"
]
},
{
"word": "八千里路云和月",
"desc": "抗战爆发后,国民党抗日将军张云魁因上级指挥不当导致全军覆没,在张云魁的帮助之下孟万福侥幸存活。最终抗战取得胜利,守得云开见月明的故事。",
"hotChange": "",
"hotScore": "89654",
"img": "https://b.bdstatic.com/searchbox/file/cmsuploader/20260428/1777375012794074.png",
"index": 1,
"indexUrl": "",
"query": "八千里路云和月 电视剧",
"url": "https://www.baidu.com/s?wd=%E5%85%AB%E5%8D%83%E9%87%8C%E8%B7%AF%E4%BA%91%E5%92%8C%E6%9C%88+%E7%94%B5%E8%A7%86%E5%89%A7&sa=fyb_teleplay_all_all&rsv_dl=fyb_teleplay_all_all",
"show": [
"类型:历史、战争",
"演员:王阳、万茜、黄澄澄、于和伟"
]
},
{
"word": "佳偶天成",
"desc": "讲述了战鬼族人陆千乔为破除诅咒、成为凡人,需历经换皮、换肉、换骨、换血、换心五关修行,本欲事成抽身,却因辛湄为其复仇之举引来仙门步步追剿。",
"hotChange": "",
"hotScore": "79974",
"img": "https://b.bdstatic.com/searchbox/file/cmsuploader/20260428/1777375012288888.png",
"index": 2,
"indexUrl": "",
"query": "佳偶天成 电视剧",
"url": "https://www.baidu.com/s?wd=%E4%BD%B3%E5%81%B6%E5%A4%A9%E6%88%90+%E7%94%B5%E8%A7%86%E5%89%A7&sa=fyb_teleplay_all_all&rsv_dl=fyb_teleplay_all_all",
"show": [
"类型:古装、爱情",
"演员:任嘉伦、王鹤润"
]
}
]
},
"exec_time": 1.419,
"ip": "197.149.235.178"
}
// (content 共 10 项,此处仅展示前 3 项)示例代码
// jQuery-Ajax
$.ajax({
url: 'https://api.code410.com/api/hot/baidu_tv',
data: {
// 该接口无需参数
},
type: 'GET',
dataType: 'json',
success: function (data) {
console.log(data); // 请求成功,输出结果
},
error: function () {
console.log('请求失败');
}
});import requests
url = "https://api.code410.com/api/hot/baidu_tv"
params = {
# 该接口无需参数
}
res = requests.get(url, params=params)
print(res.json())const https = require('https');
const url = 'https://api.code410.com/api/hot/baidu_tv';
https.get(url, res => {
let data = '';
res.on('data', chunk => data += chunk);
res.on('end', () => console.log(JSON.parse(data)));
}).on('error', err => console.error(err));package main
import (
"fmt"
"io/ioutil"
"net/http"
)
func main() {
resp, err := http.Get("https://api.code410.com/api/hot/baidu_tv")
if err != nil {
fmt.Println("http get error", err)
return
}
defer resp.Body.Close()
result, _ := ioutil.ReadAll(resp.Body)
fmt.Println(string(result))
}import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
public class Test {
public static void main(String[] args) {
try {
URL url = new URL("https://api.code410.com/api/hot/baidu_tv");
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setRequestMethod("GET");
conn.connect();
BufferedReader reader = new BufferedReader(new InputStreamReader(conn.getInputStream(), "UTF-8"));
String line;
StringBuilder sb = new StringBuilder();
while ((line = reader.readLine()) != null) sb.append(line);
reader.close();
System.out.println(sb.toString());
} catch (Exception e) {
e.printStackTrace();
}
}
}using System;
using System.Net.Http;
using System.Threading.Tasks;
class Program {
static async Task Main() {
HttpClient client = new HttpClient();
string url = "https://api.code410.com/api/hot/baidu_tv";
HttpResponseMessage response = await client.GetAsync(url);
string body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
}<?php
$url = "https://api.code410.com/api/hot/baidu_tv";
$response = file_get_contents($url);
$data = json_decode($response, true);
print_r($data);curl "https://api.code410.com/api/hot/baidu_tv"在线调试
该接口无需参数,直接点击下方按钮发起请求。
填写参数后点击「发起请求」查看实时返回结果。
