youtube-data-api

When trying to use google api v3 to retrieve my list of youtube videos uploads it's not continue after the request?

£可爱£侵袭症+ 提交于 2019-12-25 03:45:10
问题 The program just hang after trying to make a request and never continue. Tried to use try and ctach but it's not throwing any exceptions or errors. This is my code in a new class: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System; using System.IO; using System.Reflection; using System.Threading; using System.Threading.Tasks; using Google.Apis.Auth.OAuth2; using Google.Apis.Services; using Google.Apis.Upload; using

Listing large amount of subscriptions of a youtube channel

怎甘沉沦 提交于 2019-12-25 03:35:14
问题 I am trying to fetch all the subscriptions ids of a youtube channel that has 100k+ subscribers. When fetching the first page of results, youtube returns properly the total amount of subscriptions and the next page token. After a few hundred calls (because you can only fetch 50 results per call), the api doesn't provide anymore the nextPageToken, and the listing stops with only ~20k subscriptions listed. I tried this on several big youtube channels, and always the same behaviour when I reach

Undocumented function - gapi.client.youtube.commentThreads.insert

匆匆过客 提交于 2019-12-25 03:29:37
问题 When I was browsing Google YouTube DATA API and I found object gapi.client.youtube.commentThreads.insert, I tried to use it but I didn't know how to use it and Data API documentation doesn't tell much about it, insted of this Google uses buildApiRequest function to create request. I tried to write and run code like this above, but it returns error 400 Code: var c = new gapi.client.youtube.commentThreads.insert( { "part":"snippet" },{ 'snippet.channelId': 'UC_x5XG1OV2P6uZZ5FSM9Ttw', 'snippet

Cant figure out, why i get a 403

喜夏-厌秋 提交于 2019-12-25 01:15:38
问题 i try to setup the youtube api but i get a 403. I tried to setup several times- without success. https://www.googleapis.com/youtube/v3/videos?part=snippet,contentDetails&id=-DIJvggBrg8&key=xyz Maybe someone is able to help me or even login to the console for a setup? 回答1: The 403 error by itself is not of immediate use. Its attached error code (as I already pointed out above) sheds light on the things that happened. The API responds to any query you make with a text (that is structured in

YouTube API not listing all videos from channel

眉间皱痕 提交于 2019-12-25 01:06:57
问题 I am using the YouTube Data API to get info about videos from a channel. The API response is not including all the videos that are uploaded to the respective channel. This is the channel (right now it has 6 videos): https://www.youtube.com/channel/UCdSjDEx46aNP0oKPN_J6hOA/videos Video list (right now): https://i.ibb.co/K91bJxS/image.png Here is my API call: https://www.googleapis.com/youtube/v3/search?part=snippet&type=video&key=API_KEY&maxResults=15&channelId=UCdSjDEx46aNP0oKPN_J6hOA&order

How to get different results in each execution in YouTube API using pagination?

久未见 提交于 2019-12-25 00:51:18
问题 I am trying to get new results with the execution of search function within the YouTube data API. What I need is to fetch new results as output in each execution ie no duplication of results. I know the pagination will do that but I don't know how to avoid the duplication of the results in each execution. I am using Google Apps Script for server-side cron jobs so whenever the execution happens it needs to cache the results or avoid publishing the result already posted. These are my two types

.NET YouTube Google APIs upload credential error

强颜欢笑 提交于 2019-12-25 00:33:30
问题 I have been attempting to setup the Google APIs to upload a video to YouTube. I have gone to as basic a setup I can. Setup a CLI project in VS2017 Use NuGet to install YouTube v3 Copy the YouTube Sample code exactly as it is from here download my client_secrets.json from the API page (both web and installed versions, the installed version is what I am using) If I remove the try catch this is the detailed error I get System.AggregateException occurred HResult=0x80131500 Message=One or more

YouTube Subscriptions: insert fails with error 400

此生再无相见时 提交于 2019-12-24 22:16:17
问题 I want to subscribe for a specific channel, to achieve this I use their official docs. There is a Execute button right on top page: That supposed to demonstrate the request, after I grant access it throws an error: /** * API response */ { "error": { "errors": [ { "domain": "youtube.subscription", "reason": "publisherRequired", "message": "The subscription resource specified in the request must use the snippet.resourceId property to identify the channel that is being subscribed to." } ], "code

node.js Get.Request & Pagination & Async

こ雲淡風輕ζ 提交于 2019-12-24 20:04:35
问题 I'm having a tremendously tough time organizing the flow here as I'm self-taught so wondering if someone might be able to assist. var channelIds = ['XYZ','ABC','QRS'] var playlistIds = []; var videoIds = []; ORDER OF PROCESS 1. Get All Playlist IDs: If returning Get Request JSON contains nextPageToken run Get Request again with that page before going to (2) 2. Get All Video IDs: If returning Get Request JSON contains nextPageToken run Get Request again with that page before going to (3) 3.

Get latest videos of multiple YouTube channels via YouTube API?

爷,独闯天下 提交于 2019-12-24 18:51:34
问题 I'm currently building a web-app which will display the last videos of a youtube channel. My problem is, that the YouTube-API only allows 100 requests per day, which are way less than I need. So my Idea was to request the videos every 20 minutes or so from every user and then cache them somewhere to display later on. Is there a way to select multiple videos per channel for multiple channels in a single request? Greetings Alex 回答1: There is a solution to your problem, but it's quite involved