youtube-data-api

processingFailure error (400) while retrieving CommentThreads list

安稳与你 提交于 2019-12-17 22:29:27
问题 I a trying to retrieve all the comments of a video via Python iteration/paging. I am logged correctly with a developer key import googleapiclient.discovery as gg import googleapiclient.errors as gge yt = gg.build(api_service_name= 'youtube', api_version= 'v3', developerKey = M_KEY) comments= [] page= '' while True: request = yt.commentThreads().list( part= "snippet,replies", order= "relevance", maxResults= 100, pageToken= page, textFormat= "plainText", videoId= video['id'] # video is a static

youtube data api v3 php search pagination?

℡╲_俬逩灬. 提交于 2019-12-17 18:58:56
问题 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);

cURL error 60: SSL certificate prblm: unable to get local issuer certificate [duplicate]

走远了吗. 提交于 2019-12-17 17:35:07
问题 This question already has answers here : cURL error 60: SSL certificate: unable to get local issuer certificate (17 answers) Closed last year . I want to collect a list of videos uploaded on a specific channel using the YouTube data API. However, before implementing online I am trying to get my code running on an offline environment (WAMPserver, PHP 5.5.12, Apache 2.4.9). I am using the following code: require_once 'google-api-php-client-2.0.0-RC5/vendor/autoload.php'; $client = new Google

YouTube API v3 get all channels associated with a logged in user

99封情书 提交于 2019-12-17 16:36:30
问题 Is it possible to get all the channels associated with a logged in user account, using youtube's version 3 API (https://developers.google.com/apis-explorer/#p/youtube/v3/). The nearest call that I can see for YouTube.channels.list https://developers.google.com/apis-explorer/#p/youtube/v3/youtube.channels.list I attempt to use this by 'Authorizing the requests using OAuth 2.0' I select part=snippet and mine=true https://developers.google.com/apis-explorer/#p/youtube/v3/youtube.channels.list

Google OAUTH: The redirect URI in the request did not match a registered redirect URI

[亡魂溺海] 提交于 2019-12-17 15:36:13
问题 I am trying to make an upload to YouTube from my Java based web app, I spent a few days to understand what and where is the problem and I cannot get it, for now I am pulling my hair out off my head. I registered my web app in Google Console, so I got a pair of Client ID and Secret and a possibility to download JSON type file with my config. So here is the config: { "web":{ "auth_uri":"https://accounts.google.com/o/oauth2/auth", "client_secret":"***", "token_uri":"https://accounts.google.com/o

YouTube APIs - Access mutiple youtube channels (Brand Accounts) using Google Admin account

送分小仙女□ 提交于 2019-12-17 10:55:16
问题 I need to extract information from videos using YouTube Analytics and Reporting Api. I have access to multiple YouTube Brand Accounts, when I log into YouTube with my Google Account. Using the "Try it" for testing the API, I'm only able to retrieve data for a channel once I switch to the Brand Account that this channel belongs, otherwise I get 403 - Forbidden error. Is there any way to extract data using the Google Account that I'm using to log in? Because once I create the credentials in

YouTube API v3 - List uploaded videos

廉价感情. 提交于 2019-12-17 07:14:21
问题 How do I list the user's uploaded videos in the V3 api? 回答1: 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

How to check if YouTube channel is streaming live

感情迁移 提交于 2019-12-17 04:32:31
问题 I can't find any informations to check if a YouTube channel is actually streaming or not. With Twitch you just need the channel name, and with the API you can check if there is a live or not. I don't want to use OAuth, normally a public API key is enough. Like checking the videos of a channel I want to know if the channel is streaming. 回答1: You can do this by using search.list and specifying the channel ID, setting the type to video , and setting eventType to live . For example, when I

Extract youtube stats for nerds through an API

三世轮回 提交于 2019-12-14 03:58:41
问题 Is there any available youtube API to get stats for nerds? I have looked around for statistics but they point out to viewCount, likeCount etc. I am particularly looking for stats for nerds data available on right click of a video. URL: https://www.googleapis.com/youtube/v3/videos?id=7lCDEYXw3mM&key=YOUR_API_KEY &part=snippet,statistics&fields=items(id,snippet,statistics) Description: This example adds the fields parameter to remove all kind and etag properties from the API response. API

Getting complete description of video using YouTube API v3

自古美人都是妖i 提交于 2019-12-14 03:44:03
问题 I am using YT API to fetch video description. I can use older API to fetch complete description of video using api call like this: API CALL But using the newer API call truncates the description after 160 characters. example: https://www.googleapis.com/youtube/v3/videos?id=7lCDEYXw3mM&key=API_KEY_HERE&part=snippet&fields=items(snippet(title,description,categoryId)) Any idea about how I can get full description of a video from googleapis and not gdata.youtube(it is truncated). 回答1: I think you