For example, I only need the feeds of this video: https://www.youtube.com/watch?v=179M7qYa7Oo, how should I do query?
I need to do this because I want to embed videos to my app, I want to write a tool to query following properties to make sure I can use it:
yt:accesscontrol media:restriction media:price
There is api to retrieving information about a single video:
https://gdata.youtube.com/feeds/api/videos/videoid?v=2
Related
Sorry I am using Go Twitter, and my problem is that I cannot find any way to get extended mode for tweets while streaming. There seems to be no way for me to activate this in the StreamFilterParams.
Is it the case that it is not possible ?
for example, there is no way to set extended mode in params here : https://github.com/dghubble/go-twitter/blob/master/twitter/streams.go
am I misunderstanding?
The streaming API already returns extended Tweets, so it is not possible to set that parameter. There’s an additional set of values inside the Tweet object with the full text of the Tweet, in streaming only.
I am trying to filter data from YouTube data API (using commentThreads).
Goal here is to get all the comments published for the channel after 2018-03-25. I have tried different date formats and it looks like the filter is not working as I get all the results back.
Any ideas?
https://www.googleapis.com/youtube/v3/commentThreads?part=snippet&allThreadsRelatedToChannelId=UCU34OIeAyiD4BaDwihx5QpQ&key=xxxx&maxResults=100&publishedAfter=2018-03-25T13:15:30Z
I've never used the Youtube google api, but assuming that this is the API reference: https://developers.google.com/youtube/v3/docs/commentThreads/list
It doesn't mention the publishedAfter-option, which leads me to believe that it doesn't exist?
This probably means that you'll need to use the order option along with maxResults to achieve your goal.
I'm in the research using YouTube-Data-Api. I get like count, comment count like that. I need to get region(Country) list of the viewers of that video one by one in my list. How do I get that.
No you can't, it is only for user who upload the video. In youtube api v3 docs. A url is given something like
https://www.googleapis.com/youtube/v3/videos?id={video->id}&key={$key->key}&part=snippet,contentDetails,statistics,status®ionCode=es
The part of url in which regionCode is given by you. It is only application if The regionCode parameter instructs the API to select a video chart available in the specified region. This parameter can only be used in conjunction with the chart parameter. The parameter value is an ISO 3166-1 alpha-2 country code. For more information You can use this below link.
https://developers.google.com/youtube/v3/docs/videos/list#chart
Hope it helps you.
I'm using the Kaltura v3 API, uploading a video to the server. I'd like to be able to query the API and ask if I have a MediaEntry added, but with no media (or upload token) associated with it. It seems like media:list would be the correct action, but it doesn't return any results that don't have media already associated.
Is there a parameter I can send to media:list to get these entries? Or another API call I should be using?
If you're looking to list all media entries that don't have video associated, use the following. Example is in PHP, but will be the same in every language if you use a client library -
$filter = new KalturaMediaEntryFilter();
$filter->statusEqual = KalturaEntryStatus::NO_CONTENT;
$result = $client->media->listAction($filter);
Is it possible to search videos by tags using Youtube API v3 ?
I would like to search among my own videos.
Use search method with ##tagname search string for q parameter and set type:video parameter. You can find other search operators here. Old one - tag:tangle doesn't work with new api for me. ## works fine.
Recently tried the solution given by user 350D, but q=##{YOUR_TAG} does not appear to work with the latest YouTube API. It appears that the tag can only be retrieved when the video ID is provided as a parameter. I found that the following works for me:
First, retrieve a list of videos (returning minimal needed information, e.g. the video ID, title, and the high quality thumbnail URL):
https://www.googleapis.com/youtube/v3/search?key={YOUR API KEY}&fields=items(id(videoId),snippet(title,thumbnails(high(url))))&part=id,snippet;
Then batch the video IDs into one request to retrieve the associated tags:
https://www.googleapis.com/youtube/v3/videos?key={YOUR API KEY}&fields=items(id,snippet(tags))&part=snippet&id={videoID01,videoID02,etc};
You can do a videos->list with with settings video ids as the ones in your playlist and iterate through them checking with tags. But searching by tags is not available in API anymore.