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.
- 料金
- $0.001USD / 回
- メソッド
- POST
- レスポンス
- JSON
- パラメータ
- 必須 1 件 · 任意 1 件
プレイグラウンド
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
API README
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.
開発を始める
最初のリクエストを送信
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
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. 認証
SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
3. パラメータ
pcursorstring
4. レスポンス
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
保存済みレスポンスはまだ公開されていません。PlaygroundでAPIを実行し、レスポンスを確認してください。
さらに探索
関連 APIs
| API | 価格 | レスポンス |
|---|---|---|
Kuaishou User Hot Postsこの API Kuaishou | $0.001 / 回 | JSON |
Kuaishou | $0.001 / 回 | JSON |
Kuaishou | $0.001 / 回 | JSON |
Kuaishou | $0.001 / 回 | JSON |
Kuaishou | $0.001 / 回 | JSON |
Kuaishou | $0.001 / 回 | JSON |
質問
FAQ
Kuaishou User Hot Posts API はどのように使いますか?
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/kuaishou/app/user-hot-post に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
Kuaishou User Hot Posts API の料金はいくらですか?
1回あたり $0.001、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
Kuaishou User Hot Posts API はどのパラメータを受け付けますか?
必須: user_id (string)。 任意: pcursor (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
Kuaishou User Hot Posts API は何を返しますか?
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
Kuaishou の開発者アカウントまたは API key は必要ですか?
いいえ。Kuaishou User Hot Posts は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Kuaishou の API アクセスを別途申請する必要はありません。
