How to bulk update youtube videos description - youtube-api

We just changed the structure of our website and now we have to update the description of all our YouTube videos (around 750 video); in the description there should be a link to our website to buy the pdf file of the musical sheet shown on the video, and the new link structure is "example.com/?v={the yt video id}" (ex: example.com/?v=EIghgjBddo)
the new description template should be like this
Buy the pdf file: example.com/?v=EIghgjBddo
Facebook: fb.com/xxx
Pinterest: pinterest.com/xxx
don't forget to subscribe and like...
...
Is there a way to automatically bulk generate all the descriptions at once using some google API, because it is almost impossible to be done manually. the website is working with php and and jquery if that could help

Related

Youtube API 3 get latest videos - but I want the URL to just open and PLAY that video

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.

Youtube API v3 upload get Video Link

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

How to get video id from new share url pattern

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.

Embedding Youtube Videos on user's wall with the Javascript API

I'm attempting to embed a Youtube video on a user's wall using the Javascript API. I've poured over a bunch of different tutorials and came up with this:
var data = {
method: 'feed',
link: current_video_url, // Link to the vide on our site
source: current_video_src, // Link to the Youtube video, http://youtube.com/v/[hash]
picture: current_picture_url, // Thumbnail from youtube
title: current_video_title, // Title from our page
caption: current_video_description // Text from our page
}
FB.ui(data);
Running the Facebook Debugger shows that the current_video_url link is being properly parsed for OG tags and is available as an embedded video. I ran a debugger and all the variables are being properly set in the data variable.
This worked fine for about 2 days, and then we pushed the site live. We set up a new AppID in Facebook but now all the videos are just thumbnails instead of being embedded in the user's wall. I thought maybe this is a problem with the live site but now the dev site is broken too.
What's the best way to get this to work consistently?

YouTube API, Can I add a developer tag to an uploaded video?

My youtube videos have no developer tag and now I want to add one for them
I can get the videoEntry for those videos
I can add new developer tag as new MediaCategory
I can add MediaCategory as new Category to my video entry (displayed fine)
After I called VideoEntry.update() and use my own function to display the developer tag, it shows me the video has no dev tag. The function is working since I tested with my newly uploaded video(with dev tag during uploaing process)
My question is, Is it possible to add a developer tag after a video had been uploaded.
If possible, What's the essential steps? Do I use VideoEntry.update() ?
I currently have the same problem. According to this, you cannot add developer tags after the video has been uploaded. I do not know why Youtube has this restriction.

Resources