youtube-data-api

How to insert video youtube api v3 through service account with ruby

最后都变了- 提交于 2019-11-27 08:42:47
问题 My goal is to let users of my app upload to my youtube account through my server. I have a developer acount, with youtube data api enabled and a service account client setup and for some reason I am not authorized. I dug through the net to try and figure out why and found many things. I tried giving permissions in the admin security settings with the projects client id and scope. Many people were saying that this error is caused because I don't have a youtube account associated with my

Youtube Data API V3 - Error fetching video with google.youtube.videos.list()

佐手、 提交于 2019-11-27 08:34:34
问题 I am getting a cryptic error when trying to fetch a youtube video by it's Id: TypeError: Cannot read property '0' of undefined I previously had this working using (16.1.0) of google-api-nodejs-client , but after updating the package it no longer seems to work. Here is the code I am using: const { google } = require('googleapis'); const youtube = google.youtube({ version: 'v3', auth: process.env.YOUTUBE_KEY }); youtube.videos.list({ id: 'Txlk7PiHaGk', part: 'snippet, contentDetails' }, (err,

YouTube Data API search not honoring publish after date

自古美人都是妖i 提交于 2019-11-27 07:17:56
问题 I have this query YouTube.Search.List search = youtube.search().list("id"); search.setOrder("viewCount"); search.setMaxResults(50); search.setPublishedAfter(new DateTime(publishedAfterDate)); search.setPublishedBefore(new DateTime(new Date())); search.setType("video"); search.setKey(getYoutubeKey()); Which was working perfectly fine up until a few months ago. Then, all of a sudden it seems that Google must have changed something in their data API and the "PublishedAfter" date is no longer

signature issue when I want to get a direct URL from YouTube via PHP

白昼怎懂夜的黑 提交于 2019-11-27 05:59:46
问题 after research to how i get direct URL from YouTube videos like this one asking : How to get direct URL of video from YouTube URL? [closed] i finally made a simple script to generate a direct URL from YouTube video with php and it works just fine, but not with all videos it doesn't work with "signature" videos, this is my code: if(isset($_GET['url']) && $_GET['url'] != ""){ parse_str( parse_url( $_GET['url'], PHP_URL_QUERY ), $vars ); $id=$vars['v']; $dt=file_get_contents("https://www.youtube

YouTube API v3 - List uploaded videos

跟風遠走 提交于 2019-11-27 03:34:39
How do I list the user's uploaded videos in the V3 api? Greg Schechter The first step is getting the channel id for that user. We can do this with request to the Channels service. Here's a JS example. var request = gapi.client.youtube.channels.list({ // mine: true indicates that we want to retrieve the channel for the authenticated user. mine: true, part: 'contentDetails' }); request.execute(function(response) { playlistId = response.result.channels[0].contentDetails.uploads; }); Once we get the playlist id we can use that to query for the list of uploaded videos from the PlaylistItems service

youtube data api intermittently throw access forbidden

主宰稳场 提交于 2019-11-27 03:06:37
问题 I need to upload considerable amount of videos on YouTube, so I have a c# application, upload one file each 5 minutes. The problems is, it intermittently throw "access forbidden". For example it worked for around 4 hours this morning, then it became moody again :D. Any same experience recently with YouTube API? It's the error I receive sometimes, but not always, after successful authentication, when it tries to upload: Google.Apis.Requests.RequestError Access forbidden. The request may not be

How can I get the actual video URL of a YouTube live stream?

 ̄綄美尐妖づ 提交于 2019-11-27 03:04:11
Is there a way to get the HLS URL for YouTube live streams like this one https://www.youtube.com/embed/WVZpCdHq3Qg I've tried the typical get_video_info methods but they don't seem to work with live streams. You need to get the HLS m3u8 playlist files from the video's manifest. There are ways to do this by hand, but for simplicity I'll be using the youtube-dl tool to get this information. I'll be using this live stream as an example: https://www.youtube.com/watch?v=_Gtc-GtLlTk First, get the formats of the video: ➜ ~ youtube-dl --list-formats https://www.youtube.com/watch\?v\=_Gtc-GtLlTk

Retrieving individual videos view count - Youtube API V3.0 - JavaScript

对着背影说爱祢 提交于 2019-11-27 01:20:57
问题 I've been trying to get the view count on videos that I query through the following method: function search() { var request = gapi.client.youtube.search.list({ part: 'snippet', channelId: 'IRRELEVANT', order: 'date', maxResults: '25' }); request.execute(function(response){ YoutubeResponse(response); }); While the documentation tells me that there's a statistics portion to every video, after the snippet I have __proto__ which I guess means there was an error somewhere? or did the API change?

Youtube video upload limit exceeded

旧城冷巷雨未停 提交于 2019-11-26 23:37:10
问题 I use this cmd application https://github.com/tokland/youtube-upload After uploading 50 videos i am getting this error: [RequestError] Server response: { "error": { "errors": [ { "domain": "youtube.video", "reason": "uploadLimitExceeded", "message": "The user has exceeded the number of videos they may upload." } ], "code": 400, "message": "The user has exceeded the number of videos they may upload." } } And after this error i can upload 1 video per 15 minutes. But after waiting for

Youtube API Key

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-26 22:59:20
问题 When I try to use YouTube API for Search, I get this error: There was a service error: 403 : The request did not specify any Android package name or signing-certificate fingerprint. Please ensure that the client is sending them or use the API Console to update your key restrictions. In the MainActivity I have this code: youtube = new YouTube.Builder(new NetHttpTransport(), JSON_FACTORY, new HttpRequestInitializer() { @Override public void initialize(HttpRequest httpRequest) throws IOException