Bilibili User homepage video data V2
https://api.sandbase.ai/v1/api/bilibili/web/user-post-videos-v2Get user homepage video data V2 on Bilibili. Returns the platform data as structured JSON.
- Prix
- $0.001USD / appel
- Méthode
- POST
- Réponse
- JSON
- Paramètres
- 1 obligatoires · 3 facultatifs
Bac à sable
Votre sortie apparaîtra ici
Complétez les entrées, puis cliquez sur Exécuter.
README de l'API
Bilibili User homepage video data V2 API
Returns a page of videos posted by one Bilibili user, with title, video IDs, cover image, duration, publish time and view count for each video. It needs the user's numeric uid. You can filter by keyword and page with pn and ps.
Use cases
- List all videos a creator has posted to track their upload history.
- Search one creator's videos for a topic by passing
keyword. - Collect
bvidvalues to fetch full details for each video. - Compare view counts across a creator's videos to see which ones performed best.
Request
curl -X POST "https://api.sandbase.ai/v1/api/bilibili/web/user-post-videos-v2" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"uid": "178360345", "pn": 1, "ps": 30}'
The result is returned in outputs[0].data.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
uid | string | Yes | |
keyword | string | No | Keyword, empty returns all |
pn | integer | No | Page number, no cap |
ps | integer | No | Page size, max 100 |
Example response
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"code": 0,
"data": {
"archives": [
{
"aid": 117346609990524,
"bvid": "BV1RMaq65EAH",
"ctime": 1790567471,
"duration": 410,
"enable_vt": 0,
"interactive_video": false,
"pic": "http://i0.hdslb.com/bfs/archive/224ab56f95a761db0a9bb5d58406109c37dfa55a.jpg",
"playback_position": 0,
"pubdate": 1790567470,
"stat": {
"view": 36
},
"state": 0,
"title": "ATM10sky通关纪念"
}
],
"page": {
"num": 1,
"size": 30,
"total": 6
}
},
"message": "0",
"ttl": 1
}
Response fields
| Field | Meaning |
|---|---|
data.archives[].bvid / data.archives[].aid | The two IDs of the video. bvid is the string form that starts with BV, and aid is the numeric form. |
data.archives[].title | Title of the video. |
data.archives[].pic | URL of the cover image. |
data.archives[].duration | Length of the video. The value is a plain integer, for example 410. |
data.archives[].pubdate / data.archives[].ctime | Unix timestamps in seconds for the video. pubdate is the publish time and ctime is the creation time. |
data.archives[].stat.view | View count of the video. |
data.archives[].upMid | Numeric ID of the user who posted the video. It matches the uid in the request. |
data.archives[].interactive_video | true if the video is an interactive video, otherwise false. |
data.page.num / data.page.size / data.page.total | Current page number, page size, and a total count. In the sample, total is 6 for a request with ps set to 30. |
Notes
uidis the numeric user ID, for example178360345. If you only have a profile link, use Bilibili User ID Extraction to get it.- Use
pnfor the page number (default1) andpsfor the page size (default30, max100). Leavekeywordempty to return all videos. - To get full details for a video, pass its
bvidto Bilibili Video Details. - The result is returned in
outputs[0].data.
Pricing
$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Commencer à construire
Envoyez votre première requête
Point de terminaison de l'API de la plateforme avec authentification unifiée et suivi de l'utilisation.
curl -X POST "https://api.sandbase.ai/v1/api/bilibili/web/user-post-videos-v2" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"pn": 1,
"ps": 30,
"uid": "178360345"
}'2. Authentification
Définissez votre clé API SandBase dans l'environnement de votre serveur. Les requêtes utilisent l'authentification Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conservez votre clé côté serveur. Ne l'exposez pas dans le code du navigateur.
3. Paramètres
pninteger
Page number, no cap
Par défaut : 1
psinteger
Page size, max 100
Par défaut : 30
keywordstring
Keyword, empty returns all
4. Réponse
Exemple de réponse enregistré pour cette API ; aucune requête en direct n'est effectuée lors de l'affichage.
Aucune réponse enregistrée n'a été publiée. Exécutez l'API dans Playground pour inspecter sa réponse.
Explorer plus
APIs associées
| API | Prix | Réponse |
|---|---|---|
Bilibili User homepage video data V2Cette API Bilibili | $0.001 par appel | JSON |
Bilibili | $0.001 par appel | JSON |
Bilibili | $0.001 par appel | JSON |
Bilibili | $0.001 par appel | JSON |
Bilibili | $0.001 par appel | JSON |
Bilibili | $0.001 par appel | JSON |
Questions
FAQ
Comment utiliser l’API Bilibili User homepage video data V2 ?
Envoyez une requête POST à https://api.sandbase.ai/v1/api/bilibili/web/user-post-videos-v2 avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.
Combien coûte l’API Bilibili User homepage video data V2 ?
$0.001 par appel. Chaque organisation bénéficie de 100 appels gratuits par jour UTC, partagés entre les API SandBase éligibles, y compris celle-ci ; au-delà, chaque appel est facturé à ce tarif depuis votre solde SandBase. Aucun abonnement.
Quels paramètres l’API Bilibili User homepage video data V2 accepte-t-elle ?
Obligatoire : uid (string). Facultatif : pn (integer), ps (integer) et keyword (string). Le tableau des paramètres et le Playground sur cette page listent tous les champs.
Que renvoie l’API Bilibili User homepage video data V2 ?
Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.
Ai-je besoin d’un compte développeur ou d’une clé API Bilibili ?
Non. Bilibili User homepage video data V2 fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API Bilibili séparément.
