youtube-data-api

youtube API v3 - rate (like/dislike) comment/commentThread?

霸气de小男生 提交于 2019-12-02 02:27:24
Quick question - as stated in the title. Is that possible? I thought the following endpoint would be my best shot: https://developers.google.com/youtube/v3/docs/comments/update , but can't find anything that resembles api call for rating a video, nor did I find any documentation on that for v3 If it is, please point me to the http endpoint. Partially Yes, You can use that endpoint and specify a value for snippet.viewerRating but as of now it only allows you to specify two values like and none. The rating the viewer has given to this comment. Note that this property does not currently identify

YouTube live streaming API limit

有些话、适合烂在心里 提交于 2019-12-02 01:49:27
问题 Is there a limit to how much you can stream via YouTube live streaming API? Is there pricing for large scale usage? I noticed that there is quota given for the YouTube Data API Youtube API Limitations https://google-developers.appspot.com/youtube/v3/determine_quota_cost?hl=fr-BE But how about live-streaming API? 回答1: The YouTube Live Streaming API seems to be part of the YouTube Data API (at least, in order to use it you need to enable the YouTube Data API as noted here). I assume that this

YouTube API UnicodeEncodeError in Python 3.4

允我心安 提交于 2019-12-01 22:53:05
I was exploring the YouTube Data API and finding that improperly encoded results were holding me back. I got good results until I retrieve a set that includes unmapped characters in the titles. My code is NOW (cleaned up a little for you fine folks): import urllib.request import urllib.parse import json import datetime # Look for videos published up to THIS MANY hours ago IntHoursToSub = 2 RightNow = datetime.datetime.utcnow() StartedAgo = datetime.timedelta(hours=-(IntHoursToSub)) HourAgo = RightNow + StartedAgo HourAgo = str(HourAgo).replace(" ", "T") HourAgo = HourAgo[:HourAgo.find(".")] +

How to add end screen with YouTube Data API?

房东的猫 提交于 2019-12-01 22:49:09
问题 I need to edit parameters for end screen while upload a video, but I don't see anything in the document of the API. It is possible edit end screen through the API? 回答1: This is not yet supported as of this moment. You're trying to turn Youtube Data API into a video editor which is currently out of its scope. 回答2: I did a little bit of research and found something, YouTube allows to send the endscreen template but with a special parameter like "onBehalfOfUser" or sort of and with a special

Converting Youtube Data API V3 video duration format to standard time in PHP

≡放荡痞女 提交于 2019-12-01 22:16:33
I'm, getting this array from a youtube API request, but the duration format is very rare in my opinion. Why didn't they just throw seconds in there? In any case this is the array [duration] => PT2M3S [dimension] => 2d [definition] => sd [caption] => false Is there a way to convert this duration to a "H:i:s" format in PHP? Thanks in advance for your help In fact it is simple ISO8601 date. Split string with regexp like (\d+) to minutes and seconds. Then get integer part of division of minutes by 60 to get hours. Get remainder of that division to get minutes. here is an example that should work

How to add end screen with YouTube Data API?

南笙酒味 提交于 2019-12-01 20:37:37
I need to edit parameters for end screen while upload a video, but I don't see anything in the document of the API. It is possible edit end screen through the API? This is not yet supported as of this moment. You're trying to turn Youtube Data API into a video editor which is currently out of its scope. I did a little bit of research and found something, YouTube allows to send the endscreen template but with a special parameter like "onBehalfOfUser" or sort of and with a special format, but they are validating because there is a NOTE: this is only for youtube partners. So we can assume that

Exclude live events from YouTube data api search query

拜拜、爱过 提交于 2019-12-01 18:54:25
I'm using the google-api-php-client ( https://github.com/google/google-api-php-client ) to search and retrieve only videos from YouTube. I know you can set a query marker called type to video like this: $searchquery = array( 'q' => "flux", 'maxResults' => 10, 'type' => 'video', 'videoDuration' => 'short', 'videoEmbeddable' => 'true' ); However it seems to also return live events/livestreams in the search results. Is there a way to exclude live event videos? They have a marker called [liveBroadcastContent] => upcoming so I can do post-search but that's not ideal. Thanks in advance. edit: on

Exclude live events from YouTube data api search query

我只是一个虾纸丫 提交于 2019-12-01 18:38:51
问题 I'm using the google-api-php-client (https://github.com/google/google-api-php-client) to search and retrieve only videos from YouTube. I know you can set a query marker called type to video like this: $searchquery = array( 'q' => "flux", 'maxResults' => 10, 'type' => 'video', 'videoDuration' => 'short', 'videoEmbeddable' => 'true' ); However it seems to also return live events/livestreams in the search results. Is there a way to exclude live event videos? They have a marker called

Does YouTube API forbid to download video captions if you are not it's owner?

杀马特。学长 韩版系。学妹 提交于 2019-12-01 17:41:53
问题 As it seems to me, YouTube API forbids to download video captions if you're not it's owner: Captions for a video can only be created, retrieved , modified and deleted by the owner of that video . The link above leads to documentation of YouTube API v2.0, which is deprecated, but it seems that in v3.0 this policy remains the same. If you try to download captions of a video, you'll get the following 403-error: The permissions associated with the request are not sufficient to download the

Does YouTube API forbid to download video captions if you are not it's owner?

拟墨画扇 提交于 2019-12-01 17:02:46
As it seems to me, YouTube API forbids to download video captions if you're not it's owner: Captions for a video can only be created, retrieved , modified and deleted by the owner of that video . The link above leads to documentation of YouTube API v2.0, which is deprecated, but it seems that in v3.0 this policy remains the same. If you try to download captions of a video, you'll get the following 403-error : The permissions associated with the request are not sufficient to download the caption track. The request might not be properly authorized, or the video order might not have enabled third