youtube-data-api

Apostrophes in title attribute are HTML encoded in response

十年热恋 提交于 2021-01-29 12:49:51
问题 "snippet": { "publishedAt": "2012-08-24T17:06:35.000Z", "channelId": "UCh6C5LG14uZKmwCgGxf-nDQ", "title": "Céline Dion - I'm Alive (Official Video)", "description": "Celine Dion - I'm Alive (Official Video) Listen on Spotify: http://smarturl.it/Celine_Spotify_EN Listen on Apple Music: http://smarturl.it/Celine_AM_EN Amazon: ...", "thumbnails": {}, } Any Idea why this is happening? It's well decoded into the description but not the title field 回答1: This has been a known issue of the API for

YouTube Data API: Choosing the destination YT channel when uploading my video

萝らか妹 提交于 2021-01-29 12:35:45
问题 I've followed the steps explained here: https://developers.google.com/youtube/v3/guides/uploading_a_video in order to use their script to upload a video on my channel. The problem is that my GMail account is associated to two YouTube channels: my personal one which is its default YT channel, and a new one that I've created this morning. The latter is the good destination channel for my videos. How can I tell the YouTube Data API to upload the video to this channel and not the default one? I

Youtube Data Api Page Token Question (python)

瘦欲@ 提交于 2021-01-29 12:29:03
问题 I try to download the video metadata for year 2019. It exceeds the quota limit every time I run my codes. I have under 100 videos for that period of time. Can anyone show me a better way to write the codes? try: request = youtube.search().list( part = 'id, snippet', type = 'video', publishedAfter = '2018-12-31T23:59:59Z', publishedBefore = '2020-01-01T00:00:00Z', order = 'date', fields = 'nextPageToken,items(id,snippet)', pageToken = None, maxResults = 50 ) response = request.execute()

YouTube Data API Error 403 Insufficient Permission

怎甘沉沦 提交于 2021-01-29 09:57:50
问题 I'm working on an IOS app using Swift that requires accessing to the user's YouTube subscriptions. After adding all scopes I need on Google Cloud Platform and implementing GoogleSignIn in Firebase. I sign in (GIDSignInButton), then I get the error shown down below after making this request: https://www.googleapis.com/youtube/v3/subscriptions?part=snippet%2CcontentDetails&mine=true&key=\(apiKey)&access_token=\(Access_Token) . The Access_Token is the one I got after I call: func sign(_ signIn:

Youtube Data API: Get latest video ID from channel excluding live streams

我怕爱的太早我们不能终老 提交于 2021-01-29 08:26:51
问题 In my python script I'm getting the video ID of my latest video. This is the code, playlistId being my channel's playlist ID that contains all my videos: def get_latest_video_id(youtube, playlistId): id_request = youtube.playlistItems().list( part = 'snippet', playlistId = playlistId ) id_response = id_request.execute() video_id = id_response['items'][0]['snippet']['resourceId']['videoId'] return video_id The problem now is, my live streams also get saved into this playlist. I couldn't find

How to get livestream tiny URL with YouTube Data API v3

本秂侑毒 提交于 2021-01-29 07:36:48
问题 function authenticate() { return gapi.auth2.getAuthInstance() .signIn({scope: "https://www.googleapis.com/auth/youtube.readonly"}) .then(function() { console.log("Sign-in successful"); }, function(err) { console.error("Error signing in", err); }); } function loadClient() { gapi.client.setApiKey("YOUR_API_KEY"); return gapi.client.load("https://www.googleapis.com/discovery/v1/apis/youtube/v3/rest") .then(function() { console.log("GAPI client loaded for API"); }, function(err) { console.error(

How to get livestream tiny URL with YouTube Data API v3

点点圈 提交于 2021-01-29 07:31:09
问题 function authenticate() { return gapi.auth2.getAuthInstance() .signIn({scope: "https://www.googleapis.com/auth/youtube.readonly"}) .then(function() { console.log("Sign-in successful"); }, function(err) { console.error("Error signing in", err); }); } function loadClient() { gapi.client.setApiKey("YOUR_API_KEY"); return gapi.client.load("https://www.googleapis.com/discovery/v1/apis/youtube/v3/rest") .then(function() { console.log("GAPI client loaded for API"); }, function(err) { console.error(

Daily limit reached when uploading video to youtube using Youtube Data API

狂风中的少年 提交于 2021-01-29 06:23:19
问题 I'm currently trying to build a project using the youtube api. When doing tests, I had an error which says "The request cannot be completed because you have exceeded your <a href="/youtube/v3/getting-started#quota">quota</a>" I looked at the google cloud console and saw these: The first screenshot shows I made 38 + 13 requests so I really should have not reached the daily limit yet. Is this a bug or is it me who didn't understand how the quota limit works? 回答1: Indeed these pages you're

YouTube Playlist Item API publishedAt field clarification

陌路散爱 提交于 2021-01-28 21:57:13
问题 I have tested YouTube's PlaylistItems.list API to fetch a channel's default playlist. In the response payload, a video -- that was published on 2020-10-14T20:22:24Z -- is in the first object, and then the next video -- that was published on 2020-10-21T17:54:05Z -- is in the second object. In this answer it is mentioned that: The publishedAt getting returned from a Playlist query is the date the video was added to the playlist, rather than the date the video was published on YouTube What might

YouTube Playlist Item API publishedAt field clarification

柔情痞子 提交于 2021-01-28 21:40:05
问题 I have tested YouTube's PlaylistItems.list API to fetch a channel's default playlist. In the response payload, a video -- that was published on 2020-10-14T20:22:24Z -- is in the first object, and then the next video -- that was published on 2020-10-21T17:54:05Z -- is in the second object. In this answer it is mentioned that: The publishedAt getting returned from a Playlist query is the date the video was added to the playlist, rather than the date the video was published on YouTube What might