Kuaishou User Hot Posts
https://api.sandbase.ai/v1/api/kuaishou/app/user-hot-postReturns popular posts from a specified Kuaishou user profile, including captions and interaction metrics such as comments and collects.
- Precio
- $0.001USD / llamada
- Método
- POST
- Respuesta
- JSON
- Parámetros
- 1 obligatorios · 1 opcionales
Entorno de pruebas
Su salida aparecerá aquí
Complete las entradas y luego haga clic en Ejecutar.
README de la API
Kuaishou User Hot Posts API
Returns a list of popular posts from one Kuaishou user profile. Each post includes the caption, video duration, cover images, and counts for likes, comments, collects and forwards. The only required input is the user's numeric user_id.
Use cases
- Rank a creator's posts by
like_countto find which videos performed best. - Compare
comment_countandcollect_countacross a creator's popular posts to see which content gets saved or discussed. - Collect
captiontext and hashtags from top posts to study how a creator titles popular videos. - Download cover image URLs from
cover_thumbnail_urlsto build a gallery of a creator's top posts.
Request
curl -X POST "https://api.sandbase.ai/v1/api/kuaishou/app/user-hot-post" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"user_id": "3795214411"}'
The result is returned in outputs[0].data.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
user_id | string | Yes | |
pcursor | string | No |
Example response
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"feeds": [
{
"adminTags": [],
"bottomEntryInfo": {
"bizExtraData": {},
"bottomBizType": 14,
"bottomStyleInfo": {
"bottomStrongStyle": {
"actionUrl": "",
"backgroundColor": "",
"bottomStrongStyleType": 0,
"enableForceClose": false,
"fontColor": "",
"fontSize": 0,
"iconHeight": 0,
"iconUrl": ""
},
"bottomWeakStyle": {
"actionUrl": "kwai://search?keyword=回村往事&sessionId=MzIwXzBfMTc5MzY5MTM3MTEwN19fMjE3MA&source=s…",
"backgroundColor": "#444444",
"bottomWeakStyleType": 0,
"enableForceClose": false,
"fontColor": "#FFFFFF",
"fontSize": 13,
"iconHeight": 48,
"iconRightMargin": 4.0
},
"delayShowWeakStyle": false,
"playVideoEndToStrongMillis": 0,
"showStrongVideoCountdownMillis": 0,
"showStrongVideoMillis": 0,
"strongStyleCloseHideWeakStyle": false,
"styleTriggers": []
},
"eventTrackData": {
"all_source": "p2q_semantic_recall_v4",
"entry_source": "search_entrance_featured_bottom_bar_profile",
"is_hotbar": "\u0000",
"query_id": "189c614ada146afe04ed891f00542f89",
"query_list_id": "MzIwXzBfMTc5MzY5MTM3MTEwN19fMjE3MA",
"query_name": "回村往事",
"rel_score": "0.957747",
"stg_recall_source": "p2q_semantic_recall_v4"
}
},
"canShowQuickCommentGuide": true,
"caption": "回村往事@李秀妍u(O4489551526) #李秀妍u",
"captionToComment": "回村往事@李秀妍u(O4489551526) #李秀妍u",
"collect_count": 8386,
"commentGuessSearch": {
"displayPrefix": "相关搜索:",
"extParams": "{\"all_source\":\"p2q_semantic_recall_v8,p2q_recall_exp_v17\",\"entrySource\":\"search_…",
"iconUrl": "https://ali2.a.kwimgs.com/udata/pkg/se-cdn/search_blue3x.png",
"searchWord": "李秀妍和榜一大哥的视频",
"searchWordMD5": "c541e248be165bd097c418eb43aa4a47",
"searchWordUrl": "kwai://search?keyword=李秀妍和榜一大哥的视频&sessionId=MzIwXzBfMTc5MzY5MTM3MTEwN19fMjE3MA&s…",
"sessionId": "MzIwXzBf…"
},
"commentInfo": {
"commentCountSpecialEffect": true,
"commentEducationGuide": {
"guideType": 0,
"triggerCharCount": 0
},
"commentIconType": 0,
"enableAIPresetGuide": false,
"permissions": 191
},
"commentTopBarPriority": [
{
"bizType": "PLC",
"subBizType": "51"
}
],
"comment_count": 4097,
"contactRelationFriend": false,
"coronaVipInfo": {
"enableFilmAd": false,
"filmAdInfo": {
"pageId": 100014436,
"posId": 9777,
"subPageId": 100017199
},
"inspireAdInfo": {
"pageId": 100011251,
"posId": 20578,
"subPageId": 100024209
},
"vipPhoto": false
}
}
],
"host-name": "public-bjx-c34-kce-node2128.idchb1az1.hb1.kwaidc.com",
"isUnfollowFeeds": false,
"llsid": "2006449521242258738",
"pcursor": "20",
"result": 1
}
Response fields
| Field | Meaning |
|---|---|
feeds[] | One popular post from the user's profile. |
feeds[].caption | Post text, including hashtags and @mentions. It can be an empty string. |
feeds[].like_count / feeds[].comment_count / feeds[].collect_count / feeds[].forward_count | Counts of likes, comments, collects and forwards for the post. |
feeds[].duration | Length of the video as a number, for example 129349. The ext_params.video field holds a nearly identical number. |
feeds[].ext_params.w / feeds[].ext_params.h | Video width and height values, for example 720 and 960. |
feeds[].cover_thumbnail_urls[].url | Cover image URL for the post. Each entry also has a cdn host name. |
feeds[].headurls[].url | Avatar image URL of the post author. Each entry also has a cdn host name. |
feeds[].commentGuessSearch.searchWord | Suggested related search phrase shown with the post's comments. |
feeds[].editInfo.editTime | Time the post was last edited, as a 13-digit timestamp such as 1775816488646. |
feeds[].exp_tag | Tag string that contains the post identifier, for example 1_i/2006449521242258738_phot. |
Notes
- Pass
pcursorto request further results. Leave it out for the first request. - The
user_idis a numeric string, such as3795214411. To find a user's ID, try Kuaishou User ID Lookup. - For a user's full video list instead of popular posts, use Kuaishou User Video List (V2).
- Many fields, such as
bottomEntryInfoandfeedSwitches, hold display and tracking settings and are not needed for most uses.
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/kuaishou/app/user-hot-post" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"user_id": "3795214411"
}'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
pcursorstring
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 |
|---|---|---|
Kuaishou User Hot PostsEsta API Kuaishou | $0.001 por llamada | JSON |
Kuaishou | $0.001 por llamada | JSON |
Kuaishou | $0.001 por llamada | JSON |
Kuaishou | $0.001 por llamada | JSON |
Kuaishou | $0.001 por llamada | JSON |
Kuaishou | $0.001 por llamada | JSON |
Preguntas
FAQ
¿Cómo uso la API de Kuaishou User Hot Posts?
Envía una solicitud POST a https://api.sandbase.ai/v1/api/kuaishou/app/user-hot-post 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 Kuaishou User Hot Posts?
$0.001 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.
¿Qué parámetros acepta la API de Kuaishou User Hot Posts?
Requeridos: user_id (string). Opcionales: pcursor (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.
¿Qué devuelve la API de Kuaishou User Hot Posts?
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 Kuaishou?
No. Kuaishou User Hot Posts 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 Kuaishou por separado.
