youtube-data-api

Youtube subscriber count with Youtube Data Api V3

筅森魡賤 提交于 2019-11-28 17:14:16
So previously i was getting a youtube channel subscriber count with youtube data api v2. I used the following (I am using TED channel for demo purposes) http://gdata.youtube.com/feeds/api/users/TEDtalksDirector?alt=json&callback=jQuery111202977260369807482_1433828589506&jsonp&_=1433828589507 However with the new v3 api, there is no subscriber count in the result. https://www.googleapis.com/youtube/v3/subscriptions?part=snippet%2CcontentDetails&channelId=UCAuUUnT6oDeKwE6v1NGQxug&key=fhjfshdjfhsjdhfjshdjfhsjdfhsjdhfjshdjfhsjdhs Is there a way in which I can get the subscriber count value?

How to get all comments on a YouTube video?

随声附和 提交于 2019-11-28 16:44:02
Since Google has deprecated the YouTube v2 API, I cannot find a way to get all the comments from a video. Is it possible to use a single, non-deprecated API (Google+, YT v3) to do that? I am not concerned about maintaining threading. Believe me it works and I am 100 % sure https://www.googleapis.com/youtube/v3/commentThreads?key= ******************&textFormat=plainText&part=snippet&videoId=kffacxfA7G4&maxResults=50 Key will be provided by the google developer console and 50 denotes 50 comments in form of a json. for any type of queries comment below and video id id of the video Apparently it

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

早过忘川 提交于 2019-11-28 14:28:23
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, video) => { if (err) { console.error(`Error fetching Youtube Video: ${err}`); } // success.. }); For

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

馋奶兔 提交于 2019-11-28 14:27:22
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 account. but I have no idea how to associate these. This is my upload_video.rb script: require 'rubygems'

youtube data api intermittently throw access forbidden

孤者浪人 提交于 2019-11-28 09:29:45
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 properly authorized. [403] Errors [ Message[Access forbidden. The request may not be properly

youtube data api v3 php search pagination?

前提是你 提交于 2019-11-28 09:27:26
i am trying with youtube api v3 php search... first time i'm using this api for this i am beginner... i have 3 question; 1) how can below search list showing pagination numbers? (per page 50 result) 2) how can video duration show in list? (3:20 min:second) 3) how can order viewCount if ($_GET['q']) { require_once 'src/Google_Client.php'; require_once 'src/contrib/Google_YoutubeService.php'; $DEVELOPER_KEY = 'my key'; $client = new Google_Client(); $client->setDeveloperKey($DEVELOPER_KEY); $youtube = new Google_YoutubeService($client); try { $searchResponse = $youtube->search->listSearch('id

Youtube Video title with API v3 without API key?

我与影子孤独终老i 提交于 2019-11-28 07:38:34
Is it possible to get the video title using the video ID with API v3 without the API key? I could not find any information or example of getting the title in the API documentation. To get the video title, you will need an API key, and you'll need to make a request to: https://www.googleapis.com/youtube/v3/videos?part=snippet&id={COMMA_DELIMITED_LIST_OF_IDS}&key={YOUR_API_KEY} In the returned packet, the title will be at items.snippet.title You can't retrieve any API data without an API key; all API requests are on a quota system, and the key is used to determine how much to charge your app's

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

强颜欢笑 提交于 2019-11-28 06:27:22
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? Essentially I need the view count of those 25 most recent videos... I tried changing part: 'snippet' to

Get current duration of YouTube Live Event

。_饼干妹妹 提交于 2019-11-28 05:48:40
问题 Is there a way to get the current time of a the recorded stream when broadcasting to YouTube live? I want to be able to send an API request at certain points throughout a live stream to get the current minute/second of the stream. The end result I am trying to achieve is to be able to log a list of highlights. Essentially, a user presses a button and it gets the current time of the stream at that moment, then the user can add a note for what happened at that time. From reading all the docs

YouTubes API for getting the latest videos from a channel

百般思念 提交于 2019-11-28 05:18:12
问题 I am trying to get the latest, up to date videos from a channel on youtube. Not sure why, but order: 'date', , publishedAfter: '2019-03-13T19:14:31.000Z', and publishedBefore: '2019-02-13T19:14:31.000Z', don't seem to have an effect. The full code of what I'm using is here below: baseURL: 'https://www.googleapis.com/youtube/v3', params: { part: 'snippet', publishedAfter: '2019-03-13T19:14:31.000Z', publishedBefore: '2019-02-13T19:14:31.000Z', order: 'date', maxResults: 10, key: KEY, channelId