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.
Related
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 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.
I am trying to get the rating for a song via the Apple Music API, as it describes here.
Hence, the URL I am using is:
https://api.music.apple.com/v1/me/ratings/songs/493341471
493341471 is the playbackStoreID (of the MPMediaItem) of the song 'Born to Die'. I have this song in my library, and I have added it to my "loved" list both on iTunes on my computer and on my iPhone. Yet, when I make this GET request, I get back a 404 Resource not Found error from Apple.
I also tried the same url but using the MPMediaItem property persistentId (its persistentID is 2932020188133715832), and that didn't work either.
The documentation says the url format is
https://api.music.apple.com/v1/me/ratings/songs/{id}
and their example gives a 9 digit id, exactly as the playbackStoreID I used above.
I tried searching the Apple Music catalogue for this song, and the id that was returned was indeed 493341471.
Yet, no matter what I do, I get a resource not found. Anyone have any idea what "id" the documentation here may be referring to?
Seems like you have to like/dislike a specific song with your apple music account then you can get an HTTP 200 response.
I am new to the Youtube API.
I am trying to use it to upload a file through my page on youtube.
Everything is working, and the File gets uploaded.
Now i want to display the link to the Video, so i can save it in the database. Its also enough if i can log it in the console and make an ajax call to save in the db.
The point is, i dont know how to get it.
I am using exactly the code form here:https://developers.google.com/youtube/v3/code_samples/javascript
You have it already, it's the video id in the response after you upload.
https://developers.google.com/youtube/v3/docs/videos#resource
Then the url is like this - https://www.youtube.com/watch?v=id
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