like this : http://gdata.youtube.com/feeds/api/videos?alt=rss&q=irem%20ya%C4%9Fc%C4%B1&author=ewakolik
I can search author and keyword together,
but I could not find it in v3 version
https://www.googleapis.com/youtube/v3/search?part=snippet&q=irem+ya%C4%9Fc%C4%B1&key={YOUR_API_KEY}
Author was the YouTube user who uploaded this video. This translates to channelID which the video is uploaded in v3.
So in your search you can define channelId.
GET https://www.googleapis.com/youtube/v3/search?part=snippet&channelId= UC1oFl9_Y7LM5tjCcpTpqA1g&q=irem+yagci&key={YOUR_API_KEY}
To get channelId of any legacy username you can use:
GET https://www.googleapis.com/youtube/v3/channels?part=id&forUsername=ewakolik&key={YOUR_API_KEY}
Related
I have a problem with the Youtube API, I want to get all my liked videos.
Using this : https://developers.google.com/youtube/v3/docs/channels/list
I find all my playlist but not the liked one..
Do you know if it's protected ?
So there is no way i can get my liked videos ?
There's no search filter for Youtube API that says 'get only my liked videos'. But there's a "part" property called 'statistics' that returns how many likes your videos has.
https://www.googleapis.com/youtube/v3/channels?part=statistics&key={YOUR_API_KEY}
If you want to get a list of all your "Liked" YouTube videos, regardless of where they are then you need to use:
"Videos : list"
You are using:
"Channels : list"
The URL for "Videos : list" is:
https://www.googleapis.com/youtube/v3/videos
See documentation at:
https://developers.google.com/youtube/v3/docs/videos/list#request
There is a sample of Request Parameters for:
list (my liked videos)
An option parameter of:
myRating=like
must be included in the URL search string if you are using the REST API.
I can't find the answer to this one anywhere:
with the YouTube API V3, is it also possible to only list the videos from a channel that are not listed in playlists?
I am using this jsonUrl
https://www.googleapis.com/youtube/v3/search?channelId=....
hope someone has the answer!
No, not from the API.
If you had specific playlists in mind, you could extract those videoIDs from the playlists and then check that list of IDs when fetching videoIDs from the channel. That's about all I can think of.
To retrieve all videos from you channel, go to search.list and use the following parameters (choose list my videos):
type - video
q - LEAVE_THIS_BLANK
forMine - true
maxResults - 50
part - snippet
then Execute. It should return all vidoes. If there's more than 50, just use nextPageToken.
See related SO post.
I'm trying to find a way to retrieve all videos posted by a given user (eg: https://www.youtube.com/user/laliga/videos).
All the examples I've found online or the doc (https://developers.google.com/youtube/v3/docs/) seems to require either a playlist ID, channel ID or video ID.
Is there any way I can directly query the author's videos or am I forced to retrieve all playlists and then iterate over?
Thanks
You just need to map the user name to its channelID first via the YouTube API like so:
https://www.googleapis.com/youtube/v3/channels?forUsername=USER_NAME&part=id&key=API_KEY
Full docs: https://developers.google.com/youtube/v3/docs/channels/list
Then you can make a Videos:List call with that channelID to get the videos.
1)take your google key id and channel id and put inside below url
https://www.googleapis.com/youtube/v3/search?key=APIKEY&channelId=CHANNELID&part=snippet,id&order=date&maxResults=20
ex
https://www.googleapis.com/youtube/v3/search?key=adsjsdakhkjshd&channelId=sdahghsadhgj&part=snippet,id&order=date&maxResults=20
I need to retrieve videos that contain some topic in title or description ,
I use the following request
https://www.googleapis.com/youtube/v3/search?part=snippet&q=???&channelId=???&key=???
it return result that not related to the query that I mentioned
Where is the problem?
How api retrieve the result ??
Been searching for the API to embed a Youtube channel's user_uploads for channels which have the new channel_id (starting with UC) instead of a user name but did not find any working solution. According to the API, there is only the possibility to embed a player with user_uploads for a USER ID. Are there any (undocumented?) parameters to achieve this?
Example of working iframe embed with user_id:
http:// www.youtube.com / listType=user_uploads&list=USERNAME
Not working:
http:// www.youtube.com / embed?listType=user_uploads&list=UC....xxxxx (Google + style channel id)
The posted answer does not work anymore.
Now you should use:
http://www.youtube.com/embed/videoseries?list=USERID
And the USERID is your youtube user id with 'UU' appended.
For example, if your user id is TlQ5niAIDsLdEHpQKQsupg then you should put UUTlQ5niAIDsLdEHpQKQsupg.
If you only have the channel id (which you can find in your channel URL) then just replace the first two characters (UC) with UU.
So in the end you would have an URL like this:
http://www.youtube.com/embed/videoseries?list=UCTlQ5niAIDsLdEHpQKQsupg
BTW. you can append &index=1 to specify which video should be played.
See answer on duplicate
Never seen such a username. Do you have a link to a user (youtube website) with such a username ?
Update.
It looks like it is a part of the new V3 api from youtube and I filed a bug report at the youtube dev forum since it wont't work withe the user_uploads iframe
http://code.google.com/p/gdata-issues/issues/detail?id=6463
For example this channel
https://www.youtube.com/channel/UCpAOGs57EWRvOPXQhnYHpow
then ID is UCpAOGs57EWRvOPXQhnYHpow
Now try to load this
http://www.youtube.com/embed/?listType=user_uploads&list=UCpAOGs57EWRvOPXQhnYHpow
This isn't working, Only with real usernames