Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to backup the annotations from a YouTube video?

So apparently, YouTube will be removing all existing video annotations:

Update: We will stop showing existing annotations to viewers starting January 15, 2019. All existing annotations will be removed.

Annotations are basically text boxes that can be overlaid on YouTube videos. Some videos use annotations to make corrections to the content or convey easter eggs. An example of an annotation on a video:

Example annotation on a YouTube video

So that prompted me to ask: Is there a way to download the annotation data for a video? For example, either using the YouTube API or youtube-dl.

It would be nice if there were a way to get the annotations in a format where they could be displayed as they were originally on the video, with the original positioning and timing, but I'd be fine with just getting the annotation text in XML or some other plain text format. I mainly just want to save a copy of the annotation text from some video game guide videos where there is a lot of text contained in the annotations.

Is this possible?

like image 797
ahiijny Avatar asked Dec 28 '25 19:12

ahiijny


2 Answers

You can use https://www.youtube.com/annotations_invideo?features=1&legacy=1&video_id=[VIDEO-ID-HERE] to retrieve the annotations in an XML format. Source: https://stefansundin.github.io/youtube-copy-annotations/. Legacy annotations were removed from this API on January 15, 2019 between 15:00 and 15:10 UTC.

An archive was created containing the annotations from 1.4 billion videos and is accessible via an API endpoint available from any Invidious instance: https://docs.invidious.io/api/#get-apiv1videosid. (Also, this archive is still accepting data contributions if you have saved annotation data, see u/omarroth for details.)

A browser extension to redisplay the annotations on the videos after YouTube removed them is now available at https://github.com/isaackd/AnnotationsRestored. In addition, a web player with annotation support built in is also now available at any Invidious instance: https://invidio.us.

like image 158
user9811991 Avatar answered Jan 02 '26 15:01

user9811991


As of now, there's no existing Youtube API that will backup any Youtube Annotations. It is clear from the documentation that annotations will be removed permanently. Annotations didn't work with mobile and in response to creators' call for annotations that would, YouTube created Cards instead. YouTube cards are a great way to engage audience and been mobile-friendly makes it a must more all the video creator.

For more info, you can visit this blogpost.

like image 38
Jessica Rodriguez Avatar answered Jan 02 '26 17:01

Jessica Rodriguez



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!