GithubHelp home page GithubHelp logo

bilibili-bangumi-api's Introduction

bilibili追番列表api

b站api已经不再公开,受制于浏览器同源政策的影响,我们无法在前端直接使用b站api获取数据。

本项目使用nodejs在服务器端获取数据,再利用nginx做反向代理。前端通过接口获取数据,实现跨域访问。

nodejs代码和nginx配置均已上传,可以自行参考搭建。

同时也提供公用接口。

接口文档

请求地址 请求方式
api.catbk.cn/list GET
参数名称 是否必选 参数说明
type 默认为1,更改可以过滤想看、在看、看过
pn 默认为1,页数
ps 默认为10,每页番剧数量
vmid 你的b站uid
cookies 不使用时得到的数据将没有当前观看进度

注意事项

  • 使用api之前需要设置b站账号公开显示订阅番剧
  • cookies为非必选,不使用 cookies 得到的数据将没有当前观看进度
  • 使用 cookies 可以不公开显示订阅番剧
  • 所有 cookies 仅仅用于查询番剧数据,不会保存和和使用 cookies
  • 前端展示cookies不安全,博主只是提供这个选择而已(嘛,虽然我觉得b站的暴露了也无所谓)
关于滥用

以下这些,但并不限于以下这些行为都被视为滥用: a.短时间内大量操作API用于采集。 b.测试帐号及密码 c.其它没有提到的,但会给系统带来压力的请求行为。

关于封禁

由于滥用 API 将会导致 API 被封禁,但并不影响在官方网站上的使用,封禁一定的时间后会自动解除,一般需要一个小时后才会解封,所以请小心操作,不要拿 API 进行大量测试

bilibili-bangumi-api's People

Contributors

red-asuka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

javalgb kailous

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.