Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Youku User Profile

Tài liệu API
https://api.sandbase.ai/v1/api/youku/user-detail

Get a Youku user profile identified by UID. Use it to look up a known account for creator research, profile review, or related video discovery.

Giá
$0.014286USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
1 bắt buộc · 0 tùy chọn

Phòng thử nghiệm

Đầu vào
The unique identifier for the user.
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

README API

Youku User Profile API

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.

Use cases

  • Look up a known Youku creator and read the avatar and header data on their profile.
  • List the albums and short videos a creator has published, with titles and cover images.
  • Check which tabs a profile offers, such as short videos and dynamic posts.
  • Collect video titles from a creator before fetching each one with a video details call.

Request

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.

Parameters

NameTypeRequiredDescription
uidstringYesThe unique identifier for the user.

Example response

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"
  }
}

Response fields

FieldMeaning
componentList[].componentIdName of each profile section, such as h5-profile-header, h5-profile-nav, and h5-profile-video.
componentList[].componentNameDisplay label of the section. Values seen include the tab names 短视频 (short videos) and 动态 (dynamic posts).
componentList[].dataNode[].data.avatarURL of the user's avatar image. It appears in the header component.
componentList[].dataNode[].data.circle.titleCount shown for the user's circle in the header, returned as a string such as 10.
componentList[].dataNode[].stateTab key for each entry in the nav component, such as video or dynamic.
componentList[].dataNode[].title / componentList[].dataNode[].subTitleTitle of a video or album in the feed, and its short status text such as 更新至4集 (updated to episode 4).
componentList[].dataNode[].imgUrlCover image URL for the feed item.
componentList[].dataNode[].data.comments.countComment count on a short video item in the feed.
componentList[].dataNode[].logInfo.trackInfoJSON string with tracking details. It contains values such as albumid for album items and pgcpgcid for the account.

Notes

  • The response keeps the platform's original structure. Find sections by componentId instead of by position in componentList.
  • Feed items appear both in dataNode and again inside moduleList[].dataNode of the same component.
  • Short video items carry an ID in 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.
  • To find videos by keyword instead of by account, use Youku Video Search.

Pricing

$0.014286 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
Youku$0.014286 mỗi lần gọiJSON
Youku$0.014286 mỗi lần gọiJSON
Youku$0.014286 mỗi lần gọiJSON

Câu hỏi

FAQ

Làm thế nào để dùng API Youku User Profile?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/youku/user-detail với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API Youku User Profile có giá bao nhiêu?

$0.014286 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API Youku User Profile chấp nhận những tham số nào?

Bắt buộc: uid (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Youku User Profile trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của Youku không?

Không. Youku User Profile chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Youku.