uidstring必填
The unique identifier for the user.
https://api.sandbase.ai/v1/api/youku/user-detailGet a Youku user profile identified by UID. Use it to look up a known account for creator research, profile review, or related video discovery.
您的輸出會顯示在這裡
完成輸入後,點擊執行。
Returns a Youku user profile page as a list of components, including the header, tabs, and a feed of the user's videos. It needs one input, the user's uid.
curl -X POST "https://api.sandbase.ai/v1/api/youku/user-detail" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"uid": "UMTM2MTEzNzk5Ng=="}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
uid | string | Yes | The unique identifier for the user. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"componentList": [
{
"componentId": "h5-profile-header",
"componentName": "页头",
"dataNode": [
{
"data": {
"allowPgcFollowRec": false,
"atmospherex": {
"icon": "https://gw.alicdn.com/imgextra/i4/O1CN01tx3Yvy1NwsEpQMYY1_!!6000000001635-2-tps-…"
},
"avatar": "https://image.9xsecndns.cn/image/uicon/550f0355577e9aa79d5ceaec54f82be2a745ff5d0…",
"birthday": 0,
"buttonColor": "#FFFFFF",
"circle": {
"action": {
"callback": null,
"contentType": null,
"contentValue": null,
"extra": null,
"report": {
"arg1": null,
"index": 0,
"pageName": "page_miniapp",
"reportDataOpt": null,
"scmAB": "20140689.rcmd",
"scmC": "20752",
"scmD": "url_YW_ZPD_FOLLOW_CIRCLE",
"spmAB": "a2h0j.personalchannel"
},
"reportConfig": null,
"reportDisabled": false,
"type": "JUMP_TO_URL"
},
"title": "10",
"titlex": 0
},
"customBg": false,
"customChangeBgTitle": "点击定制我的个性背景~"
},
"id": "null",
"logInfo": {},
"moduleType": "",
"type": null
}
],
"id": "69384_0",
"logInfo": {},
"moduleList": [
{
"dataNode": [],
"moduleType": ""
}
],
"state": "header",
"type": "YW_ZPD_HEADER"
}
],
"pageData": {
"avatar": "https://image.9xsecndns.cn/image/uicon/550f0355577e9aa79d5ceaec54f82be2a745ff5d0…",
"more": false,
"navState": "video",
"nextSession": "{\"subIndex\":13,\"trackInfo\":{},\"spmA\":\"a2h0j\",\"level\":1,\"spmC\":\"drawer2\",\"spmB\":\"…",
"nickName": "娱乐圈打工日常",
"pageNo": "1",
"shareInfo": {
"describe": "快来看TA的精彩视频吧",
"img": "https://image.9xsecndns.cn/image/uicon/550f0355577e9aa79d5ceaec54f82be2a745ff5d0…",
"link": "https://m.youku.com/profile?uid=UMTM2MTEzNzk5Ng==",
"title": "娱乐圈打工日常的优酷主页"
},
"showDCloumTitle": true,
"spmA": "a2h0j",
"spmAB": "a2h0j.personalchannel",
"spmB": "personalchannel"
}
}
| Field | Meaning |
|---|---|
componentList[].componentId | Name of each profile section, such as h5-profile-header, h5-profile-nav, and h5-profile-video. |
componentList[].componentName | Display label of the section. Values seen include the tab names 短视频 (short videos) and 动态 (dynamic posts). |
componentList[].dataNode[].data.avatar | URL of the user's avatar image. It appears in the header component. |
componentList[].dataNode[].data.circle.title | Count shown for the user's circle in the header, returned as a string such as 10. |
componentList[].dataNode[].state | Tab key for each entry in the nav component, such as video or dynamic. |
componentList[].dataNode[].title / componentList[].dataNode[].subTitle | Title of a video or album in the feed, and its short status text such as 更新至4集 (updated to episode 4). |
componentList[].dataNode[].imgUrl | Cover image URL for the feed item. |
componentList[].dataNode[].data.comments.count | Comment count on a short video item in the feed. |
componentList[].dataNode[].logInfo.trackInfo | JSON string with tracking details. It contains values such as albumid for album items and pgcpgcid for the account. |
componentId instead of by position in componentList.dataNode and again inside moduleList[].dataNode of the same component.logInfo.spmD-style report fields such as scmD, for example video_XNjU3Njg2MzE3Mg==. Use the part after video_ as a video ID in Youku Video Details.$0.014286 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/youku/user-detail" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"uid": "UMTM2MTEzNzk5Ng=="
}'請將您的 SandBase API 金鑰設定在伺服器環境中。請求使用 Bearer 驗證。
export SANDBASE_API_KEY="YOUR_API_KEY"請將金鑰保留在伺服器端,不要在瀏覽器程式碼中公開。
uidstring必填The unique identifier for the user.
這是此 API 的已儲存範例回應;檢視時不會發出即時請求。
尚未發布已儲存回應。請在 Playground 中執行 API 以檢視其回應。
探索更多
| API | 價格 | 回應 |
|---|---|---|
Youku User Profile此 API Youku | 每次呼叫 $0.014286 | JSON |
Youku | 每次呼叫 $0.014286 | JSON |
Youku | 每次呼叫 $0.014286 | JSON |
問題
使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/youku/user-detail。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。
每次 $0.014286,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。
必要:uid (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。
在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。
不需要。Youku User Profile 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Youku API 存取權。