bili-api

Query Bilibili API endpoints, parameters, and signing steps.

18|Updated Jun 21, 2023
One-click install
npx skills add https://github.com/cctyl/BiliRecommBehaviorCorrection --skill bili-api
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bili-api
Source: https://github.com/cctyl/BiliRecommBehaviorCorrection/tree/main/rust/.claude/skills/bili-api
Command: npx skills add https://github.com/cctyl/BiliRecommBehaviorCorrection --skill bili-api

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Skill helps users understand and work with Bilibili API interfaces, including how to locate API functions, constants for signing, and the steps to assemble authenticated requests.

Core Features & Use Cases

  • Locate API endpoints in src/api/bili.rs and inspect function signatures, parameters, and return values.
  • Understand and document Bilibili signing methods for APP and WEB endpoints, CSRF tokens, and access keys.
  • Demonstrate end-to-end request construction for common API calls (detail, like, search, etc.) and how to refresh tokens when needed.
  • Use examples to illustrate building signed requests and interpreting responses.

Quick Start

Ask me for the signed API guidance for a specific Bilibili endpoint and I will locate the function, required parameters, and signing steps.

Frequently Asked Questions about bili-api

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I construct a signed Bilibili API request for web endpoints?

To construct a signed Bilibili API request, you must locate the target endpoint function, gather required parameters, and apply the appropriate WBI signature or app signature alongside CSRF and mid tokens for authenticated web access.

What is the difference between WBI signing and app signing for Bilibili API calls?

WBI signing is used for web endpoints, while app signing is required for app endpoints; both require assembling specific parameters and constants to authenticate Bilibili API requests successfully.

Where can I find the function signatures and parameters for Bilibili API endpoints?

You can locate Bilibili API endpoint functions, their parameters, and return values by inspecting the source code structure in src/api/bili.rs to understand request flows.

How do I handle access token management and CSRF tokens when calling Bilibili APIs?

Handling access tokens and CSRF tokens involves including them in your Bilibili API request parameters and refreshing the access keys when needed to maintain authenticated sessions.

Can I use this to build end-to-end requests for common Bilibili actions like search and like?

Yes, you can build end-to-end signed requests for common Bilibili actions such as search, like, and detail retrieval by following the documented signing steps and parameter assembly.

What should I do if my signed Bilibili API request is not working?

If a signed Bilibili API request fails, verify that the WBI or app signature constants are correctly applied, ensure the CSRF token and mid are valid, and check if the access token needs refreshing.