youtube-api

Not being able to choose the right channel when using OAuth 2.0 for Web Server Applications flow

蹲街弑〆低调 提交于 2020-08-24 06:30:29
问题 My app follows the server side authorization flow as described in https://developers.google.com/youtube/v3/guides/auth/server-side-web-apps. I force prompt=select_account . In the most basic case, on "Step 3: Google prompts user for consent", the user sees a screen with one or more accounts titled "Choose an account". If the account that the user chooses only has a single channel associated with it, the flow then proceeds directly to "Step 4: Handle the OAuth 2.0 server response". If the user

How to get subscriber count and videos count for a given YouTube channel?

浪子不回头ぞ 提交于 2020-08-19 05:20:50
问题 Until now I've been using this URL to retrieve subscriber count for a channel: http://gdata.youtube.com/feeds/api/users/<channel_id>?v=2&alt=json And this URL to get channel videos count: https://gdata.youtube.com/feeds/api/users/<channel_id>/uploads?v=2&alt=jsonc&max-results=0 But from this day Google discontinued using it's v2 API and I can't find replacement options for this data. 回答1: You're going to want to use the Channels/list endpoint as pass in statistics for the part parameter.

How to get subscriber count and videos count for a given YouTube channel?

独自空忆成欢 提交于 2020-08-19 05:19:30
问题 Until now I've been using this URL to retrieve subscriber count for a channel: http://gdata.youtube.com/feeds/api/users/<channel_id>?v=2&alt=json And this URL to get channel videos count: https://gdata.youtube.com/feeds/api/users/<channel_id>/uploads?v=2&alt=jsonc&max-results=0 But from this day Google discontinued using it's v2 API and I can't find replacement options for this data. 回答1: You're going to want to use the Channels/list endpoint as pass in statistics for the part parameter.

Obtaining a channel id from a youtube.com/c/xxxx link?

江枫思渺然 提交于 2020-08-10 19:12:31
问题 It seems Youtube has gotten rid of /channel/XXXX urls on their page, its now /c/username? with username NOT really being a "username". For example https://www.youtube.com/c/lukemiani Running a lookup via https://www.googleapis.com/youtube/v3/channels?part=snippet&forUsername=lukemiani&key=... returns no results. I've got a bunch of non-technical users who've been trained to look for /channel/x or /user/x and input the correct thing into my app. Now that /channel is gone how do I (or they)

How to get a YouTube channel ID from the channel's username which includes Cyrillic characters

余生颓废 提交于 2020-08-10 18:54:13
问题 This is a YouTube channel URL that includes Cyrillic characters in the username: https://www.youtube.com/c/%D0%9B%D1%83%D1%87%D1%88%D0%B8%D0%B5%D0%B4%D0%BE%D0%BA%D1%83%D0%BC%D0%B5%D0%BD%D1%82%D0%B0%D0%BB%D1%8C%D0%BD%D1%8B%D0%B5%D1%84%D0%B8%D0%BB%D1%8C%D0%BC%D1%8B/videos I am trying to obtain the channel's id from the URL by calling the YouTube DATA API v3: https://www.googleapis.com/youtube/v3/channels?key=[YouTubeAPIkey]&forUsername=%D0%9B%D1%83%D1%87%D1%88%D0%B8%D0%B5%D0%B4%D0%BE%D0%BA%D1

Access Youtube data API through Flutter app with OAuth2

白昼怎懂夜的黑 提交于 2020-08-10 18:49:51
问题 My Flutter app is using Firebase for Google Auth and Database and it needs to communicate with the Youtube Data Api v.3, in order to upload videos on the user's behalf. The libraries that seemed most functional are googleapis: ^0.55.0 and googleapis_auth: ^0.2.12 , but there's a problem with the redirect url, in that they don't support it. Implementing the code as in the [provided example][1](installed/console app) results in the following error in the console after clicking on Allow in the

Accessing elements from player.getIframe() object?

隐身守侯 提交于 2020-08-06 06:42:07
问题 As per https://developers.google.com/youtube/iframe_api_reference player.getIframe():Object This method returns the DOM node for the embedded <iframe>. How can I access the elements of the DOM node like I can do with the parent page's DOM, such as document.getElementById("example") ? 回答1: Here are the children under that player.getIframe():Object <iframe id="player" frameborder="0" allowfullscreen="1" title="YouTube video player" width="640" height="390" src="https://www.youtube.com/embed