I need to change video I'd, so the URL got changed. Is it possible? As far as I can see from docs - its not supported... So is there any other way to change video URL programmatically?
Example:
When I uploaded video i received URL: youtube.com/watch?v=EMSGJdnDN8U Now (next day) I want to keep uploaded video on server, but i don't want URL youtube.com/watch?v=EMSGJdnDN8U to be available anymore, but the original video should be available on youtube.com/watch?=nEwUrL100500 (new url) and so on...
Of course I know that i can reupload video and delete original one but i dont like that solution.
Sorry, I don’t think so. The video id is a very important identifier for YouTube and it’s very unlikely that they give you control over it.
Related
So, I have read numerous sites and a bunch of code that can find "the newest video" uploaded or Published, but NONE of them show how to format a URL LINK to just open THAT most recent video in a new tab/window and PLAY it.
I am missing something, obviously, and would love direction and help.
Here is the code that locates the correct video listing...
https://www.googleapis.com/youtube/v3/search?part=snippet&channelId=Myin&maxResults=1&order=date&type=video&key=MyinAlso
And it literally shows up in a new tab, but just white code on a black background - NO VIDEO.
I would love this URL to just open and play that Newest uploaded/streamed video.
I have tried appending "watch?v=" with such items as "playnext=1&index=1", "videos.xml?channel_id=Myin&orderedby=published&playnext=1&index=1" and many other variations of these and other switches/directories/commands - all as links only.
By channel, playlist {when correct one is chosen} works using some variation - but - the newest Live uploaded video only exists in a non-existent list under "/streams", named or "filtered" as "Recently Uploaded" on the "LIVE" tab, or also in another non-existent List/category on the "Home" tab, named "Past Live Streams".
I just want a link that I never have to change, to play the Most Recently Uploaded Live video. This should NOT be this hard and frustrating.
I'm trying to open a .rar file but it has password and it's in the description of a video on Youtube but when I checked the link again it was private and I don't remember the channel's name, so I just want to know if there's a way to find this channel because I just wanna ask to the user if I could have the password. This is the url if it helps, thanks.
https://www.youtube.com/watch?v=6rTPvftDHtQ
I typed "6rTPvftDHtQ" on Google in order to have only webpages containing exactly 6rTPvftDHtQ.
I let you find more details about the other interesting result except this StackOverflow post. The video gaming creator Mataraxu posted the URL of the video as a comment of a Facebook post and the post shares this YouTube channel URL https://www.youtube.com/channel/UC1OnhcSrtZcaI4cgKAfsxsw. If he isn't the man you are looking for, I let you ask him more details.
I WebArchived the webpage from the Google cache because his Facebook webpage doesn't seem to contain anymore this post (and comment), I let you delve this result.
By the way don't hesitate to check your web-browser history as you said that you already went to the video webpage. Maybe with luck you also went on the main webpage of the YouTube channel and then in the URL you would have its name or id.
As far as I know there is no way to do that. One hope would be the waybackmachine, but that has no snapshot of this video page either. So unfortunately you won't be able to search him I guess.
Best Regards!
I see YouTube app updated new function to share videos with the url like this:
https://www.youtube.com/shared?ci=8A940MXKFmQ
My app is using YouTube API/videos/list to get video informations and it required the Video ID field.
How can we get youtube video id from the url above.
Thanks
This is maybe not a good way to do it, but since there seems to be no API for that, check this:
https://github.com/rg3/youtube-dl/commit/4080530624eda994d535e1a01c38ddd6d9aa3805
What they do is fetching the content and search for the meta tag with the name videoId. Again: Not a good way, maybe this approach stops working in a month or a year or maybe never.
I was trying to share a Youtube link and wanted the person to just see that clip without any of the irrelevant suggestions that pop up next to it. I knew that adding ?rel=0 (or &rel=0) at the end of the URL used to achieve this, but this doesn't seem to be working anymore. After googling a bit, I found suggestions to use the youtu.be domain instead of youtube.com, but suggestions were shown nonetheless, or the URL gave an error. How else can I share this link and have no 'related' clips shown on the side? Thanks!
rel=0 is used to disable related videos shown at the end of a video, not to remove the suggested videos in the sidebars.
You can use the embed URL to access the video on it's own - http://youtube.com/embed/dQw4w9WgXcQ. Add ?rel=0 to disable the related videos at the end too.
Note, that rel=0 no longer works if you are signed into your Google account (YouTube, Gmail, etc).
&rel=0 only works when not signed in. However, you can get around this by using the enhanced privacy mode:
https://www.youtube-nocookie.com/embed/[id]?rel=0
As of August 23, 2018,
The behavior for the rel parameter is changing on or after September
25, 2018. The effect of the change is that you will not be able to
disable related videos. However, you will have the option of
specifying that the related videos shown in the player should be from
the same channel as the video that was just played.
To be more specific:
Prior to the change, if the parameter's value is set to 0, then the player does not show related videos.
After the change, if the rel parameter is set to 0, the player will show related videos that are from the same channel as the video that was just played.
If I'm upload some items that should have a content rating, how can I set that via the API?
Here's some tidbits of the code:
Dim newVideo As Video = Nothing
newVideo = New Video()
newVideo.Title = title
That's a part of it, can we set the rating ourselves within the API or is that functionality not there yet?
Also, if a video is blocked or flagged worldwide, do YouTube provide that in the upload successfully response, if a video uploads okay, I can get the ID, but can I also check to see if there's any complaints? I will ignore the Duplicate response for now. But I am more worried about the flagged or block as you only get three strikes.
Setting content rating isn't supported via the API.
If a video is not playable for any reason, including the reasons you mention, it will have an explanation of the problem in yt:state:
https://developers.google.com/youtube/2.0/reference#youtube_data_api_tag_yt:state