如何使用api v3检测youtube支付视频

问题描述 投票:2回答:1

有没有办法知道视频是免费还是付费?什么属性表示需要付款的视频?

https://www.youtube.com/watch?v=wWu03qUnHlk

{
  "kind": "youtube#video",
  "etag": "\"_gJQceDMxJ8gP-8T2HLXUoURK8c/9J_Rsvw1p9XGci8Ne9GRDP6m6NE\"",
  "id": "wWu03qUnHlk",
  "contentDetails": {
    "duration": "PT1H11M51S",
    "dimension": "2d",
    "definition": "hd",
    "caption": "true",
    "licensedContent": true,
    "regionRestriction": {
      "allowed": [
        "US"
      ]
    },
    "projection": "rectangular"
  }
}
youtube youtube-api youtube-data-api
1个回答
1
投票

Youtube API中没有此类功能。所有视频属性都在Youtube Resource Representation中找到,并且没有任何属性表明它是否已付款。

这是由this post的Google工程师确认的。

© www.soinside.com 2019 - 2024. All rights reserved.