如何通过 YouTube API 获取用户链接? [英] How to get user links through YouTube API?

查看:40
本文介绍了如何通过 YouTube API 获取用户链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

YouTube 用户的关于"标签中有一个外部链接部分.如何通过 YouTube API 获取链接?

There is a section of external links at the 'About' tab of YouTube user. How to get the links through YouTube API?

例如,在 https://www 上有 twitter、Facebook、Google+ 等链接.youtube.com/user/google/about

我在文档中找不到任何地方.由于文档和结构有点难以理解,我可能会错过其中的相关部分.

I couldn't find anywhere in the documentation. Because the documentation and structure is kinda difficult to follow, I might miss the relevant parts of it.

推荐答案

Ferhad,我花了一些时间研究这个问题,据我所知,这些链接无法通过 Youtube V3 API 获得.然而,和你一样,我不相信我已经探索了每一个选项.只是在可用文档中不清楚.

Ferhad, I have spent some time researching this problem and as far as I can ascertain, the links are not available via the Youtube V3 API. However, like you, I'm not convinced that I've explored every option; it's just not clear in the available documentation.

我刚刚做了这个测试:访问 YouTube 频道的关于"页面,例如https://www.youtube.com/user/Gap/about,你会有一个名为链接"的部分,其中包含许多 URL.我相信您会在许多 YouTube 频道上找到它.我查看了 YouTube 和 Google+ API(认为链接可能来自关联的 G+ 帐户),但找不到通过 API 检索这些链接的方法.

I just did this test: visit the About page of a YouTube channel, e.g. https://www.youtube.com/user/Gap/about, you'll that there is section called "Links" with many URLs. I believe you'll find this on many YouTube channels. I looked at both the YouTube and Google+ APIs (thinking the links might be coming from a linked G+ account), I cannot find a way to retrieve those links via the API.

我尝试使用带有这些参数的频道:列表":

I tried using "Channels: list" with these parameters:

  • part=auditDetails,brandingSettings,contentDetails,contentOwnerDetails,id,invideoPromotion,snippet,statistics,status,topicDetails
  • id=UCKdDR4GsvrA3yeDhMykoiPQ
  • fields=etag,eventId,items,kind,nextPageToken,pageInfo,prevPageToken,tokenPagination,visitorId

数据中没有链接.

因为有一个关联的 Google+ 帐户,我试着往那边看,认为它们可能在两个平台之间共享.我尝试使用带有以下参数的People:get":

Since there was a linked Google+ account, I tried looking over there, thinking they might be shared between the two platforms. I tried using "People: get" with these parameters:

  • 用户 ID=100521075388356747359
  • fields=aboutMe,ageRange,birthday,braggingRights,circledByCount,cover,currentLocation,displayName,domain,emails,etag,gender,id,image,isPlusUser,kind,language,name,nickname,objectType,occupation,organizations,placesLived,plusOneCount,relationshipStatus,skills,tagline,url,urls,verified

链接不存在.下一个探索领域是查看它们是否只能通过 OAuth2 使用,但同样,从文档中也看不出来.

The links weren't there. The next area of exploration would be to see if they are only available via OAuth2, but again, it's not evident from the documentation.

抱歉,这只是部分答案,但有时很难证明是否定的.

Sorry that this is only a partial answer but some times it's hard to prove a negative.

这篇关于如何通过 YouTube API 获取用户链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆