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.
- Precio
- $0.001USD / llamada
- Método
- POST
- Respuesta
- JSON
- Parámetros
- 1 obligatorios · 3 opcionales
Entorno de pruebas
Su salida aparecerá aquí
Complete las entradas y luego haga clic en Ejecutar.
README de la 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.
Empiece a construir
Envíe su primera solicitud
Endpoint de la API de la plataforma con autenticación unificada y seguimiento de uso.
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. Autenticación
Configure su clave de API de SandBase en el entorno de su servidor. Las solicitudes usan autenticación Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserve su clave en el servidor. No la exponga en código del navegador.
3. Parámetros
pninteger
Page number, no cap
Valor predeterminado: 1
psinteger
Page size, max 100
Valor predeterminado: 30
keywordstring
Keyword, empty returns all
4. Respuesta
Respuesta de ejemplo guardada para esta API; no se realiza ninguna solicitud en vivo al verla.
No se ha publicado ninguna respuesta guardada. Ejecute la API en Playground para inspeccionar su respuesta.
Explorar más
APIs relacionadas
| API | Precio | Respuesta |
|---|---|---|
Bilibili | $0.001 por llamada | JSON |
Bilibili | $0.001 por llamada | JSON |
Bilibili | $0.001 por llamada | JSON |
Bilibili | $0.001 por llamada | JSON |
Bilibili | $0.001 por llamada | JSON |
Bilibili | $0.001 por llamada | JSON |
Preguntas
FAQ
¿Cómo uso la API de Bilibili User homepage video data V2?
Envía una solicitud POST a https://api.sandbase.ai/v1/api/bilibili/web/user-post-videos-v2 con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.
¿Cuánto cuesta la API de Bilibili User homepage video data V2?
$0.001 por llamada. Cada organización obtiene 100 llamadas gratis por día UTC, compartidas entre las APIs elegibles de SandBase, incluida esta; después, cada llamada se factura a este precio desde tu saldo de SandBase. No hay suscripción.
¿Qué parámetros acepta la API de Bilibili User homepage video data V2?
Requeridos: uid (string). Opcionales: pn (integer), ps (integer) y keyword (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.
¿Qué devuelve la API de Bilibili User homepage video data V2?
Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.
¿Necesito una cuenta de desarrollador o una clave API de Bilibili?
No. Bilibili User homepage video data V2 funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de Bilibili por separado.
