Full use of https!

https://api.hotaru.icu/api/ipcard?apikey=b699b2d60915d83f3723272855240c4c
B站用户追番信息获取API
本接口为付费接口 请购买后使用
当前接口累计调用258次 今日调用0次
由机制的糊狸特别制作 Time:2022-10-03 16:09:02

接口地址: https://api.hotaru.icu/api/getbilianime

返回类型: application/json

请求方式: GET/POST

请求示例: https://api.hotaru.icu/api/getbilianime?uid=2

用户密钥: 请先登录并购买后使用

请求参数说明:

名称 必填 类型 说明
uidnumber用户UID

返回参数说明:

名称 类型 说明
uidstring用户UID
numsnumber追番数量
listarray追番信息列表
typestring类型(番剧,国创...)
titlestring标题
subtitlestring副标题
tagsarray标签
descrstring简介
coverstring封面图片直链
setnumstring集数
isnewboolean是否为新番
urlstring番剧链接
showtimestring播出时间
isnewstring
areasstring地区(日本,中国大陆...)
badgestring会员专享,出品...

返回示例:

{
    "code": 500,
    "data": {
        "uid": "2",
        "nums": 153,
        "list": [
            {
                "type": "国创",
                "title": "小魔头暴露啦!",
                "subtitle": "为救魔族少主竟然?",
                "tags": [
                    "泡面",
                    "搞笑",
                    "漫画改",
                    "古风"
                ],
                "descr": "为了在江湖上活下去,魔教教主之子于仁杰奉命混入只招收名门正派弟子的“正道书院”,目标是获得能够洗白魔教身份的”好人证“。此行凶险异常,一旦暴露魔教身份必将被无数正道侠客当场击杀。可在报到当天于仁杰就尴...",
                "cover": "http://i0.hdslb.com/bfs/bangumi/image/d6250b1eb2893304c2c496eb8b9d79f5aac9b9ab.png",
                "setnum": "全26话",
                "isnew": null,
                "showtime": "2022年1月15日",
                "areas": "中国大陆",
                "badge": "出品"
            },
            {
                "type": "番剧",
                "title": "恋爱要在世界征服后",
                "subtitle": "不要战斗要恋爱!",
                "tags": [
                    "战斗",
                    "恋爱",
                    "漫画改",
                    "特摄"
                ],
                "descr": "春季,樱花飞舞的某一天,一对懵懵懂懂的情侣在草地上并肩而坐。n他们是相川不动和祸原死死美。n但他们的真实身份其实是,冰冻战队冰果五战士的队长「红色冰果」和n邪恶秘密组织月光的打手「死神公主」!n原本互...",
                "cover": "http://i0.hdslb.com/bfs/bangumi/image/61e324e9ce28934e77e98a2502d988f89c74a119.jpg",
                "setnum": "全12话",
                "isnew": null,
                "showtime": "2022年4月8日",
                "areas": "日本",
                "badge": "会员专享"
            },
            {
                "type": "番剧",
                "title": "魔法纪录 魔法少女小圆外传 第二季",
                "subtitle": "为了寻找失去的愿望",
                "tags": [
                    "奇幻",
                    "战斗",
                    "魔法",
                    "游戏改"
                ],
                "descr": "愿望的代价,究竟是希望还是绝望——。",
                "cover": "http://i0.hdslb.com/bfs/bangumi/image/9eef1df9ab157be52d2c4d70d3500442f00cafc3.png",
                "setnum": "全12话",
                "isnew": null,
                "showtime": "2021年7月30日",
                "areas": "日本",
                "badge": "独家"
            },
            {
                "type": "番剧",
                "title": "瑞奇宝宝 第二季 中文配音",
                "subtitle": "和瑞奇宝宝一起学习",
                "tags": [
                    "少儿"
                ],
                "descr": "《瑞奇宝宝》中的故事主要发生在卧室、书房、操场等孩子们熟悉的场景中,情节简单真实,以孩子已经认识的食物、游戏、睡眠及其他日常行为作为基础,将关于情绪、社交、运动和艺术等知识巧妙融入到剧情中,让孩子能够...",
                "cover": "http://i0.hdslb.com/bfs/bangumi/image/53133740d40f6a0d9e25bcb75b7542719e4cca6f.png",
                "setnum": "全52话",
                "isnew": null,
                "showtime": "2018年6月1日",
                "areas": "俄罗斯",
                "badge": ""
            },
            {
                "type": "番剧",
                "title": "与变成了异世界美少女的好友一起冒险",
                "subtitle": "打败魔王变回男儿身",
                "tags": [
                    "奇幻",
                    "搞笑",
                    "萌系",
                    "漫画改"
                ],
                "descr": "因自己不受欢迎找不到女朋友,而郁郁寡欢的32岁职场白领橘日向,借由异世界女神之力,和自幼玩伴&现完美精英的同事一起转移到了异世界!竟因女神的粗心,变为了超绝可爱金发美少女――!? n为寻回自己原本的性...",
                "cover": "http://i0.hdslb.com/bfs/bangumi/image/314c9855b31b9acb35663598755243b87629a9f9.png",
                "setnum": "全12话",
                "isnew": null,
                "showtime": "2022年1月11日",
                "areas": "日本",
                "badge": "出品"
            },
            {
                "type": "番剧",
                "title": "里亚德录大地",
                "subtitle": "冒险从现在开始!",
                "tags": [
                    "奇幻",
                    "小说改",
                    "穿越"
                ],
                "descr": "一场不幸的事故,让名为各务桂菜的少女不得不在生命维持装置里度过一生。只有虚拟现实大型多人在线角色扮演游戏《里亚德录》是她唯一的自由。nn而就在某一天,生命维持装置忽然停止,桂菜也失去了生命。n但是当她...",
                "cover": "http://i0.hdslb.com/bfs/bangumi/image/a626e4d7c4e09018b2314ce0cb98881c7aa783c8.png",
                "setnum": "全12话",
                "isnew": null,
                "showtime": "2022年1月5日",
                "areas": "日本",
                "badge": "独家"
            },
            {
                "type": "国创",
                "title": "喜羊羊与灰太狼之奇趣外星客",
                "subtitle": "羊羊们在神秘外太空",
                "tags": [
                    "热血",
                    "少儿",
                    "战斗",
                    "催泪",
                    "原创"
                ],
                "descr": "智羊羊夫妇遭细菌大王冰封前,将冰冰羊送去寻求喜羊羊的庇护。不料细菌大王为解封能力追到草原,幸好众羊狼将冰冰羊救出。自此羊村波澜不断,众羊狼最终击败细菌军团,解除了大危机,而冰冰羊的身份也终将水落石出...",
                "cover": "http://i0.hdslb.com/bfs/bangumi/image/f87ce2e7deee03e4d383961c8f96ca44fffa45e0.jpg",
                "setnum": "全60话",
                "isnew": null,
                "showtime": "2020年1月10日",
                "areas": "中国大陆",
                "badge": ""
            },
            {
                "type": "番剧",
                "title": "命运-冠位嘉年华",
                "subtitle": "嘉年华回来啦!!",
                "tags": [
                    "日常",
                    "搞笑",
                    "原创"
                ],
                "descr": "一起庆祝吧!为了这奇迹般的嘉年华!",
                "cover": "http://i0.hdslb.com/bfs/bangumi/image/c660976f4502a544d990a882ae62194b57753a71.png",
                "setnum": "全2话",
                "isnew": null,
                "showtime": "2021年6月2日",
                "areas": "日本",
                "badge": "独家"
            },
            {
                "type": "番剧",
                "title": "命运-冠位指定 冠位时间神殿所罗门",
                "subtitle": "为了夺回人类的未来",
                "tags": [
                    "奇幻",
                    "战斗",
                    "游戏改"
                ],
                "descr": "在经过七个特异点的大战后,n人理存续保障机关迦勒底,终于到达了圣杯探索的最终地点——终局特异点 冠位时间神殿所罗门。n他们要击败身为罪魁祸首的魔术王所罗门,夺回未来。n在开战的前一刻,一行人各自度过了...",
                "cover": "http://i0.hdslb.com/bfs/bangumi/image/c67cf37c9d722a50c7f75ffd6e81391fc9170f9d.jpg",
                "setnum": "全1话",
                "isnew": null,
                "showtime": "2021年7月30日",
                "areas": "日本",
                "badge": "独家"
            },
            {
                "type": "番剧",
                "title": "异想食堂  / 异世界食堂 第二季",
                "subtitle": "这家食堂通向异世界",
                "tags": [
                    "治愈",
                    "美食",
                    "小说改"
                ],
                "descr": "“欢迎光临!这里是猫屋西餐厅!!”n阿蕾塔与黑就职的餐厅,其特点便是门口悬挂着的印有猫咪图案的招牌。乍一看只是个在日本随处可见的餐厅,但到了每7天1次的“特殊营业日”时,异世界各地便会出现通向这家店的...",
                "cover": "http://i0.hdslb.com/bfs/bangumi/image/dbd034057eea888ab0e4635c3e3726e59f24c479.png",
                "setnum": "全12话",
                "isnew": null,
                "showtime": "2021年10月1日",
                "areas": "日本",
                "badge": "会员专享"
            },
            {
                "type": "国创",
                "title": "重器2069",
                "subtitle": "我们必将胜利归航!",
                "tags": [
                    "战斗",
                    "原创",
                    "励志"
                ],
                "descr": "2069年,地球忽然遭遇了来路不明的攻击,全球70%的国家和地区沦陷。即将退役的中国第二代航母16A舰因其使用超短波通讯反而躲过了敌方干扰,得以幸存。年轻的实习作战指挥官少女水夏及临时飞行员姜天等人临...",
                "cover": "http://i0.hdslb.com/bfs/bangumi/image/7b86ac8342f774b37d6964e2fbe8765ee760b7c6.png",
                "setnum": "即将开播",
                "isnew": null,
                "showtime": "敬请期待",
                "areas": "中国大陆",
                "badge": "出品"
            },
            {
                "type": "番剧",
                "title": "命运-冠位指定 -月光/失落之室-",
                "subtitle": "不属于任何人的房间",
                "tags": [
                    "奇幻",
                    "游戏改"
                ],
                "descr": "失落之室——。n这是一个可以看到被夺去亦或是遗失之物的地方。n这是位于迦勒底被遗忘的角落,不属于任何人的地方。...",
                "cover": "http://i0.hdslb.com/bfs/bangumi/image/3fa5fd2b7afae827b0bf150d7f0cbfc54eda1ff2.png",
                "setnum": "全1话",
                "isnew": null,
                "showtime": "2017年12月31日",
                "areas": "日本",
                "badge": "独家"
            },
            {
                "type": "番剧",
                "title": "关于我转生变成史莱姆这档事 第二季",
                "subtitle": "史莱姆黑化",
                "tags": [
                    "奇幻",
                    "战斗",
                    "小说改",
                    "魔法",
                    "架空"
                ],
                "descr": "主人公利姆鲁与仰慕他而聚集的众多魔物们所建立的国家「鸠拉·特恩佩斯特国」,经由与邻国的协议及交易,让「人类与魔物共同漫步的国家」这一温柔的理想逐步成形。nn利姆鲁作为曾是人类的史莱姆当然拥有「对人类的...",
                "cover": "http://i0.hdslb.com/bfs/bangumi/image/fd492888df64bbc3b821dac5d516dbc1c2fe5f08.png",
                "setnum": "全24话",
                "isnew": null,
                "showtime": "2021年1月5日",
                "areas": "日本",
                "badge": "会员专享"
            },
            {
                "type": "番剧",
                "title": "关于我转生变成史莱姆这档事 转生史莱姆日记",
                "subtitle": "",
                "tags": [
                    "日常",
                    "搞笑",
                    "漫画改",
                    "穿越"
                ],
                "descr": "美妙的史莱姆人生!nn累计突破50万部的大人气外传四格漫画『转生史莱姆日记』,作为转生史莱姆的外传系列首次TV动画化!n「因为拿到了贵重的纸,我把至今为止发生的事情以日记形式记录了下来。开头的话就这么...",
                "cover": "http://i0.hdslb.com/bfs/bangumi/image/cac1699418451387f93572066b7e5d14d799d3cd.jpg",
                "setnum": "全12话",
                "isnew": null,
                "showtime": "2021年4月6日",
                "areas": "日本",
                "badge": "会员专享"
            },
            {
                "type": "国创",
                "title": "灵笼",
                "subtitle": "末世如何才能生存",
                "tags": [
                    "热血",
                    "奇幻",
                    "科幻",
                    "战斗",
                    "原创"
                ],
                "descr": "不久的未来,人类的世界早已拥挤不堪,迈向星河、寻找新家园的行动迫在眉捷。正当一切有条不紊的推进之时,月相异动,脚下的大地爆发了长达数十年、剧烈的地质变化,人类在这场浩劫中所剩无几。当天地逐渐恢复平静,...",
                "cover": "http://i0.hdslb.com/bfs/bangumi/image/cfab7e0fbdb4786ff4e885d050b7cf37f8829486.png",
                "setnum": "全16话",
                "isnew": null,
                "showtime": "2019年7月13日",
                "areas": "中国大陆",
                "badge": "出品"
            },
            {
                "type": "番剧",
                "title": "食戟之灵 餐之皿",
                "subtitle": "",
                "tags": [
                    "热血",
                    "搞笑",
                    "校园",
                    "美食",
                    "漫画改"
                ],
                "descr": "在老家的餐饮店“幸平餐馆”一边帮忙下厨一边磨炼厨艺的幸平创真,前往超级精英料理学校“远月茶寮料理学园”入学。创真在学园中与各式各样的料理人相遇并不断成长着,同时也开始摸索“只属于自己的料理”。n创真在...",
                "cover": "http://i0.hdslb.com/bfs/bangumi/image/ba2d5db28415558a577f71b4f845fcea45ea1bac.jpg",
                "setnum": "全24话",
                "isnew": null,
                "showtime": "2017年10月3日",
                "areas": "日本",
                "badge": "会员专享"
            },
            {
                "type": "番剧",
                "title": "五等分的新娘∬",
                "subtitle": "谁才是最后的新娘?",
                "tags": [
                    "校园",
                    "恋爱",
                    "漫画改"
                ],
                "descr": "面对“将要留级”、“讨厌学习”的美少女五姐妹,身为兼职家庭教师的风太郎要指导她们学习,直到“顺利毕业”为止。经历了林间学校中发生的许多事情后,风太郎与五姐妹的信赖进一步加深。n想要在作为家庭教师的事业...",
                "cover": "http://i0.hdslb.com/bfs/bangumi/image/2a0dc651a4ffca1cfe915dbc7eb2c8c65256813d.png",
                "setnum": "全12话",
                "isnew": null,
                "showtime": "2021年1月8日",
                "areas": "日本",
                "badge": "独家"
            },
            {
                "type": "番剧",
                "title": "Re:从零开始的异世界生活 第二季 后半",
                "subtitle": "我一定会拯救你",
                "tags": [
                    "奇幻",
                    "小说改",
                    "穿越"
                ],
                "descr": "我一定会拯救你。n在打倒了魔女教大罪司教「怠惰」担当——培提其乌斯·罗曼尼康帝之后,菜月昴和爱蜜莉雅又得以重新开始。n克服了艰难的诀别,两人终于和解,然而这只是新一轮风波的序幕。n超乎想象的绝境危机,...",
                "cover": "http://i0.hdslb.com/bfs/bangumi/image/4f3edbede7fc0bdb52842075cf8faaa1c5953eaa.png",
                "setnum": "全12话",
                "isnew": null,
                "showtime": "2021年1月6日",
                "areas": "日本",
                "badge": "会员专享"
            },
            {
                "type": "番剧",
                "title": "岸边露伴 一动也不动",
                "subtitle": "JOJO外传动画",
                "tags": [
                    "奇幻",
                    "战斗",
                    "漫画改"
                ],
                "descr": "本作是在「JOJO的奇妙冒险 不灭钻石」中登场的漫画家・岸边露伴,n为了收集漫画的素材而前往各地后所遭遇的奇妙见闻集!n...",
                "cover": "http://i0.hdslb.com/bfs/bangumi/image/9b89d0fa9c44fdc791407847d3556f4cb8f157e4.png",
                "setnum": "全4话",
                "isnew": null,
                "showtime": "2021年2月20日",
                "areas": "日本",
                "badge": "独家"
            },
            {
                "type": "番剧",
                "title": "关于我转生变成史莱姆这档事",
                "subtitle": "参见萌王!",
                "tags": [
                    "奇幻",
                    "战斗",
                    "小说改",
                    "魔法",
                    "穿越",
                    "冒险",
                    "架空"
                ],
                "descr": "史莱姆生活,开始了。n上班族的三上悟在道路上被歹徒给刺杀身亡后,回过神来发现自己转生到了异世界。n不过,自己居然是“史莱姆”!n他在得到利姆鲁这个名字后开始了自己的史莱姆人生,随着与各个种族相处交流的...",
                "cover": "http://i0.hdslb.com/bfs/bangumi/a4c0e0ccc44fe3949a734f546cf5bb07da925bad.png",
                "setnum": "全29话",
                "isnew": null,
                "showtime": "2018年10月2日",
                "areas": "日本",
                "badge": "会员专享"
            },
            {
                "type": "番剧",
                "title": "Re:从零开始的异世界生活 第二季 前半",
                "subtitle": "圣域篇,来了来了",
                "tags": [
                    "奇幻",
                    "小说改",
                    "穿越"
                ],
                "descr": "我一定会拯救你。n在打倒了魔女教大罪司教「怠惰」担当——培提其乌斯·罗曼尼康帝之后,菜月昴和爱蜜莉雅又得以重新开始。n克服了艰难的诀别,两人终于和解,然而这只是新一轮风波的序幕。n超乎想象的绝境危机,...",
                "cover": "http://i0.hdslb.com/bfs/bangumi/image/f2425cbdb07cc93bd0d3ba1c0099bfe78f5dc58a.png",
                "setnum": "全13话",
                "isnew": null,
                "showtime": "2020年7月8日",
                "areas": "日本",
                "badge": "会员专享"
            },
            {
                "type": "番剧",
                "title": "刀剑神域 爱丽丝篇 异界战争 -终章-",
                "subtitle": "重新站起来吧,桐人",
                "tags": [
                    "科幻",
                    "战斗",
                    "小说改",
                    "穿越",
                    "冒险",
                    "架空"
                ],
                "descr": "桐人、尤吉欧、爱丽丝。n距离两名修剑士和一名整合骑士打败了最高祭司阿多米尼斯多雷特已过去了半年。n结束了战斗,爱丽丝在故乡卢利特村生活。n在她的身旁,是失去了挚友,自己也失去了手臂和心的桐人。n献身般...",
                "cover": "http://i0.hdslb.com/bfs/bangumi/image/54d9ca94ca84225934e0108417c2a1cc16be38fb.png",
                "setnum": "全12话",
                "isnew": null,
                "showtime": "2020年7月5日",
                "areas": "日本",
                "badge": "会员专享"
            }
        ]
    }
}

状态码说明:

名称 说明
500请求成功
501参数不能为空

调用示例:

PHP:
<?php
$result = file_get_contents("https://api.hotaru.icu/api/getbilianime?uid=2");
var_dump($result);
?>

JavaScript:
const url = "https://api.hotaru.icu/api/getbilianime?uid=2";
fetch(url)
  .then(res => res.json)
  .(res => {
    console.log(res);
  });

Python:
import requests

url="https://api.hotaru.icu/api/getbilianime?uid=2"
payload={}
r = requests.get(url,params=payload)
print(r);

lua:
local httputil = HttpUtil()
local url = "https://api.hotaru.icu/api/getbilianime?uid=2"
local resStr
local res,code = httputil.httpPost(url,str)
    if code ~= 200 then
        ngx.log(ngx.WARN,"code:"..code)
            return resStr
    end
resStr = res

C/C++:
#include <iostream>  
#include <string>  
#include "curl/curl.h"  
using namespace std;  

#pragma comment(lib, "ws2_32.lib")  
#pragma comment(lib, "wldap32.lib")  
#pragma comment(lib, "libcurl.lib")  

size_t req_reply(void *ptr, size_t size, size_t nmemb, void *stream)  
{  
    cout << "----->reply" << endl;  
    string *str = (string*)stream;  
    cout << *str << endl;  
    (*str).append((char*)ptr, size*nmemb);  
    return size * nmemb;  
}  

CURLcode curl_get_req(const std::string &url, std::string &response)  
{  
    CURL *curl = curl_easy_init();  
    CURLcode res;  
    if (curl)  
    {  
        curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
        curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, false);
        curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, false);
        curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);  
        curl_easy_setopt(curl, CURLOPT_READFUNCTION, NULL);  
        curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, req_reply);  
        curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)&response);  
        curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1);  
        curl_easy_setopt(curl, CURLOPT_HEADER, 1);  
        curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 3);
        curl_easy_setopt(curl, CURLOPT_TIMEOUT, 3);  
        res = curl_easy_perform(curl);  
    }  
    curl_easy_cleanup(curl);  
    return res;  
}  


int main()  
{  
    curl_global_init(CURL_GLOBAL_ALL);  

    string getUrlStr = "https://api.hotaru.icu/api/getbilianime?uid=2";  
    string getResponseStr;  
    auto res = curl_get_req(getUrlStr, getResponseStr);  
    if (res != CURLE_OK)  
        cerr << "curl_easy_perform() failed: " + string(curl_easy_strerror(res)) << endl;  
    else  
        cout << getResponseStr << endl;  

    curl_global_cleanup();  
    system("pause");  
    return 0;  
}  

Java:
package com.jl.chromeTest;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLConnection;
import java.nio.charset.StandardCharsets;

public class Test {

    @org.junit.Test
    public void test() throws Exception{
        String result = get("https://api.hotaru.icu/api/getbilianime?uid=2");
        System.out.println("result====="+result);
    }
    
    public  String get(String url) throws Exception {
        String content = null;
        URLConnection urlConnection = new URL(url).openConnection();
        HttpURLConnection connection = (HttpURLConnection) urlConnection;
        connection.setRequestMethod("GET");
        connection.connect();
        int responseCode = connection.getResponseCode();
        if (responseCode == HttpURLConnection.HTTP_OK) {
            BufferedReader bufferedReader = new BufferedReader(new InputStreamReader
                (connection.getInputStream(), StandardCharsets.UTF_8));
            StringBuilder bs = new StringBuilder();
            String l;
            while ((l = bufferedReader.readLine()) != null) {
                bs.append(l).append("\n");
            }
            content = bs.toString();
        }
        return content;
    }
}

CS:
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://api.hotaru.icu/api/getbilianime?uid=2");
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
String result = new StreamReader(response.GetResponseStream()).ReadToEnd();

Golang:
func httpGet() {
    resp, err :=   http.Get("https://api.hotaru.icu/api/getbilianime?uid=2")
    if err != nil {
    }

    defer resp.Body.Close()
    body, err := ioutil.ReadAll(resp.Body)
    if err != nil {
    }

    fmt.Println(string(body))
}


EPL:
.版本 2

.局部变量 待返回, 文本型

待返回 = 编码_utf8到gb2312 (到文本 (网页_访问_对象 (“https://api.hotaru.icu/api/getbilianime?uid=2”)))