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.
- Prix
- $0.001USD / appel
- Méthode
- POST
- Réponse
- JSON
- Paramètres
- 1 obligatoires · 1 facultatifs
Bac à sable
Votre sortie apparaîtra ici
Complétez les entrées, puis cliquez sur Exécuter.
README de l'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.
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/kuaishou/app/user-hot-post" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"user_id": "3795214411"
}'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
pcursorstring
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 |
|---|---|---|
Kuaishou User Hot PostsCette API Kuaishou | $0.001 par appel | JSON |
Kuaishou | $0.001 par appel | JSON |
Kuaishou | $0.001 par appel | JSON |
Kuaishou | $0.001 par appel | JSON |
Kuaishou | $0.001 par appel | JSON |
Kuaishou | $0.001 par appel | JSON |
Questions
FAQ
Comment utiliser l’API Kuaishou User Hot Posts ?
Envoyez une requête POST à https://api.sandbase.ai/v1/api/kuaishou/app/user-hot-post 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 Kuaishou User Hot Posts ?
$0.001 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.
Quels paramètres l’API Kuaishou User Hot Posts accepte-t-elle ?
Obligatoire : user_id (string). Facultatif : pcursor (string). Le tableau des paramètres et le Playground sur cette page listent tous les champs.
Que renvoie l’API Kuaishou User Hot Posts ?
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 Kuaishou ?
Non. Kuaishou User Hot Posts 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 Kuaishou séparément.
