youtube-data-api

Youtube Search:list getting PageInfo and nextPageToken null

两盒软妹~` 提交于 2019-12-06 12:57:05
问题 I am trying to get videos from YouTube using keyword. I am using YouTube API Java library. I can get first 50 records successfully, but to fetch next records its required to set nextPageToken . But i am getting nextPageToken null . Below is my code. YouTube.Search.List search = youtube.search().list("id,snippet"); search.setOauthToken(credential.getAccessToken()); search.setMaxResults(50L); search.setQ(keywords); // keywords is string type and input by user. search.setType("video"); search

Error while using part=“…,processingDetails” in a youtube.videos.insert() request

╄→尐↘猪︶ㄣ 提交于 2019-12-06 11:58:38
We're developing in java 7 and YouTube Data API v3. When we are calling the upload service with "processingDetails" part, we are getting a 503 Service Unavailable Error. What are we doing wrong? If we remove it, we can upload the video just fine. But we want/need to know about processingDetails. Here is the code: YouTube.Videos.Insert videoInsert = this.youtube.videos().insert("snippet,statistics,status,processingDetails", videoObjectDefiningMetadata, mediaContent); everything else it's the same as the java client provided in google API. Here is the request: https://www.googleapis.com/upload

Youtube Data API keeps asking for authorization

扶醉桌前 提交于 2019-12-06 11:07:42
问题 I am trying to make a simple python program which uses the Youtube Data API to retrieve results based on Youtube search queries. I have created my OAuth credentials and have a client_secrets JSON. Everytime I run my python program it keeps asking me to get an authorization key so I can make the query. I have to open chrome and travel to the URL the API gives to me and log into my Google account and paste the key. Can someone demonstrate how I can go about making this process automatic? I have

Google Youtube API Insert Comment always returns error response 403 - “Insufficient Permission” - domain “global”

心不动则不痛 提交于 2019-12-06 08:52:49
I followed the docs and code samples from documentation guide i.e., here: https://developers.google.com/youtube/v3/docs/commentThreads/insert But when I execute the script it always returns a response with error code: 403 message: "Insufficient Permission" Here's complete response object: { "error": { "errors": [ { "domain": "global", "reason": "insufficientPermissions", "message": "Insufficient Permission" } ], "code": 403, "message": "Insufficient Permission" } } I spent alot of time in debugging and surfing on internet to find out how to fix the problem but didn't get any resource where I

Unable to download closed captions in Youtube API v3

自作多情 提交于 2019-12-06 08:43:12
问题 Im using the PHP example code given in Youtube API v3 : https://developers.google.com/youtube/v3/docs/captions/download , to download captions from 3rd party, publicly available YouTube videos in my webapp i.e. I have NOT uploaded the content on Youtube. I am able to get access to the list of caption tracks, but unable to download the caption using the caption track ID from the received list. The error that shows up upon attempting to DOWNLOAD is: Error calling GET https:// www.googleapis.com

YouTube v3 API returns status code 400 for a valid request

霸气de小男生 提交于 2019-12-06 08:41:41
I'm currently banging my head against the wall trying to perform a seemingly simple request to the YouTube API, using OAuth. I can successfully request a list of comments using the comments endpoint. However, the issue comes into play when trying to delete a comment or set it's moderation status. In the case of moderation status updates, I'm performing a POST to the following address (with a valid access token of course): https://www.googleapis.com/youtube/v3/comments/setModerationStatus?access_token=[ACCESS_TOKEN]&id=z12cfbpgsqvcxtzpc04cgrngqt3xuhqrjmo0k&moderationStatus=rejected The comment

YouTube Data API v3 Using Javascript

南楼画角 提交于 2019-12-06 08:39:35
I am kind of new to writing code and using API's. I am not entirely sure why my program is not working the way I would like it to. What I want this to do is provide the search results in the console before I can move onto what I would like it to do next; however, I don't think anything is being searched. According to this: https://developers.google.com/youtube/v3/docs/search/list#http-request , the only required parameter is "part," so I think I did everything right? Probably not though, because from what I can tell, nothing is being searched when I try to search for a term. Here is my code:

YouTube Data API v3 - Comment threads request doesn't return all comments

余生长醉 提交于 2019-12-06 06:39:37
For certain videos the call to commentThreads does not return the complete set of toplevelcomments. For example the following call only returns 16 toplevel comments when in fact the video has over 3458 total comments, and the toplevel comments are clearly more than 16. https://www.googleapis.com/youtube/v3/commentThreads?part=snippet&videoId=h_9-3Fj3ZdI&key=[KEY]&maxResults=50 I have run into this issue on a couple of Videos and in both cases the result seems to break on a comment which is in fact missing from the web UI. I have looked around and and tried multiple ways (i.e. trying to skip

Getting complete description of video using YouTube API v3

我们两清 提交于 2019-12-06 06:29:46
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). I think you've confused things a bit with the request URLs you posted, as they are retrieving different types of data.

How to Retrieve a list of the most-viewed channels by region?

醉酒当歌 提交于 2019-12-06 06:08:37
I did go through Youtube v3 APIs but couldn't figure out how to achieve something which can be done using v2 APIs easily i.e. get all most-viewed channels in a region for e.g. Sweden here https://gdata.youtube.com/feeds/api/channelstandardfeeds/SE/most_viewed?v=2 来源: https://stackoverflow.com/questions/35437243/how-to-retrieve-a-list-of-the-most-viewed-channels-by-region