Sand AISand AI MAGI-2MAGI-2 が SandBase に登場しました: ネイティブ音声付き 1080p 動画今すぐ試す

Youku Video Details

APIドキュメント
https://api.sandbase.ai/v1/api/youku/video-detail

Get details for a Youku video identified by video ID. Use it to look up a known video for content review, cataloging, or subsequent video analysis.

料金
$0.014286USD / 回
メソッド
POST
レスポンス
JSON
パラメータ
必須 1 件 · 任意 0 件

プレイグラウンド

入力
The unique identifier for the video.
出力準備完了

出力はここに表示されます

入力を完了してから[実行]をクリックしてください。

API README

Youku Video Details API

Returns the details of one Youku video as the platform's page data. The response includes the title, description, rating, uploader, duration and playback flags. It needs one input, the videoId.

Use cases

  • Check the title, description and category of a known Youku video before approving it for a content review.
  • Add a video to a catalog with its title, cover image, area and duration.
  • Read the uploader name and ownerUid to find who published a video.
  • Filter videos by flags such as isShort, allowDownload or allowComment before further analysis.

Request

curl -X POST "https://api.sandbase.ai/v1/api/youku/video-detail" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"videoId": "XNjU1ODM3MjI4NA=="}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
videoIdstringYesThe unique identifier for the video.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "componentList": [
    {
      "componentId": "h5-detail-vip-guide",
      "componentName": "播放页会员引导组件",
      "dataNode": [
        {
          "data": {
            "action": {
              "callback": null,
              "contentType": null,
              "contentValue": null,
              "extra": null,
              "report": {
                "arg1": "h5_detail_vip_guide",
                "index": 1,
                "pageName": "page_playpage",
                "reportDataOpt": null,
                "scmAB": "20140719.manual",
                "scmC": "102330",
                "scmD": "crm_20140732-manual-263001_336001_1352001_207-102944_100140_0_1_21429_781_179369…",
                "spmAB": "a2h0j.10182321"
              },
              "reportConfig": null,
              "reportDisabled": false,
              "type": "JUMP_TO_NEWPAY"
            },
            "bgPic": "https://gw.alicdn.com/imgextra/i4/O1CN01Y8nnrH1L6Y7EbSbBU_!!6000000001250-2-tps-…",
            "content": {
              "bgPic": "https://gw.alicdn.com/imgextra/i4/O1CN01Y8nnrH1L6Y7EbSbBU_!!6000000001250-2-tps-…",
              "bgPicNew": "https://img.alicdn.com/imgextra/i3/O1CN01KO4sixAik7I2AooQ_!!6000000006165-1-tps-…",
              "btnText": "",
              "buttonText": null,
              "cornText": "",
              "id": null,
              "jumpType": "JUMP_TO_NEWPAY",
              "jumpUrl": "https://activity.youku.com/app/visp/cashier_5/index?en_sid=927201&en_vid=1639593…"
            },
            "mark": {
              "data": {
                "color": "RED"
              },
              "type": "SIMPLE"
            }
          },
          "id": null,
          "type": 10066
        }
      ],
      "id": 102527,
      "props": {},
      "title": "",
      "type": 10066
    }
  ],
  "drawerList": [
    {
      "componentList": [
        102527
      ],
      "id": 13679,
      "type": 10001
    }
  ],
  "headers": {
    "manufacturingDate": "20261103 15:48:07",
    "nobelTrackInfo": "1148:[email protected]@0@,100075:[email protected]@0@"
  },
  "nobelInfo": {
    "a2h04.8165646": {
      "0": [
        {
          "nobelId": "1148:2646"
        }
      ]
    },
    "abTestId": "100075:100120",
    "atest.10010010": {
      "0": [
        {
          "nobelId": "100075:100120"
        }
      ]
    }
  },
  "nobelTrackHeader": "",
  "playPageData": {
    "PopCallApp": {
      "btnTitle": "打开",
      "expires": 1,
      "jumpUrl": "",
      "logo": "https://gw.alicdn.com/imgextra/i3/O1CN01CO6s7L1qQvicY255E_!!6000000005491-2-tps-…",
      "subtitle": "为好内容全力以赴",
      "title": "优酷",
      "type": "JUMP_TO_NATIVE",
      "unit": "hour"
    },
    "bottomCallApp": {
      "btnTitle": "打开优酷APP更流畅",
      "jumpUrl": "",
      "type": "JUMP_TO_NATIVE"
    },
    "callSwitch": true,
    "headerCallApp": {
      "btnTitle": "下载APP",
      "jumpUrl": "",
      "type": "JUMP_TO_NATIVE"
    }
  },
  "pushInfo": {},
  "videoMap": {
    "adRestricted": 0,
    "albumId": null,
    "allowComment": true,
    "allowDownload": true,
    "allowLike": true,
    "allowShare": true,
    "allowUnionRefresh": 1,
    "animeEdition": null,
    "audiolang": [],
    "autoPay": false,
    "completed": false,
    "downloadStatus": []
  }
}

Response fields

FieldMeaning
componentList[].dataNode[].data.introTitleTitle shown on the video's play page.
componentList[].dataNode[].data.descText description of the video.
componentList[].dataNode[].data.area[] / componentList[].dataNode[].data.doubanRatearea lists the regions tied to the video. doubanRate is a rating string, here 6.0.
componentList[].dataNode[].data.imgCover image URL. The uploader node uses the same key for the uploader's avatar.
componentList[].dataNode[].data.title / componentList[].dataNode[].data.ownerUidIn the uploader node, title is the uploader's channel name and ownerUid is the uploader's ID.
componentList[].dataNode[].data.subtitles[].subtitleShort uploader stat text, such as the follower count (7.9万粉丝). The subtitleType key gives its type, for example FOLLOW.
componentList[].dataNode[].data.reservation.reservationPeopleNum / componentList[].dataNode[].data.reservation.reservationPeopleNumDescNumber of people who reserved the video, as a number and as display text.
videoMap.durationVideo length. The sample value is 15.13.
videoMap.pageTitle / videoMap.showCategoryPage title of the video and its category, here 电影 (movie).
videoMap.isShort / videoMap.episodeTotalisShort marks a short video. episodeTotal is the number of episodes.
videoMap.allowComment / videoMap.allowDownload / videoMap.allowLike / videoMap.allowShareBoolean flags for which actions the video allows.

Notes

  • The videoId is a base64-style string that ends in ==, for example XNjU1ODM3MjI4NA==. To find IDs, use Youku Video Search.
  • The componentList holds page components. Each has a componentId, such as h5-detail-info, and some entries can be empty objects. Look up the component by componentId instead of by position.
  • To look up the uploader, use Youku User Profile with the uploader ID from ownerUid.

Pricing

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

さらに探索

関連 APIs

すべての APIs
API価格レスポンス
Youku$0.014286 / 回JSON
Youku$0.014286 / 回JSON
Youku$0.014286 / 回JSON

質問

FAQ

Youku Video Details API はどのように使いますか?

Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/youku/video-detail に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。

Youku Video Details API の料金はいくらですか?

1回あたり $0.014286、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。

Youku Video Details API はどのパラメータを受け付けますか?

必須: videoId (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。

Youku Video Details API は何を返しますか?

同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。

Youku の開発者アカウントまたは API key は必要ですか?

いいえ。Youku Video Details は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Youku の API アクセスを別途申請する必要はありません。