Tips and tricks

My Understading on how to get the captions / subtiles for a youtube video via api

I have struggled for some hours with this

From my understanding you need to first get the list of subtitles languages first – in their v3 data api it is called captions.list ( link )

From there, you have the list and ids of each caption attached to the video id.

Then, you can use theoretically with only the caption id. But for every video I tried it returns the same error.

A service error occurred: The permissions associated with the request are not sufficient to download the caption track. The request might not be properly authorized, or the video order might not have enabled third-party contributions for this caption.

I have even tried videos like – – and seems that finding a video with enabled contributions is hard.

{"type":"main_options","images_arr":"'#ffffff'","enable_ajax":"off","soundcloud_apikey":"","bg_isparallax":"off","bg_slideshow_time":"0","bg_transition":"slidedown","site_url":"https:\/\/","theme_url":"https:\/\/\/wp-content\/themes\/qucreative\/","blur_ammount":"26","width_column":"50","width_section_bg":"","width_gap":"30","border_width":"0","border_color":"#ffffff","translate_cancel_comment":"Cancel reply","translate_leave_a_comment":"Leave a comment","translate_leave_a_comment_to":"Leave a comment to","is_customize_preview":"off","width_blur_margin":"30","gallery_w_thumbs_autoplay_videos":"off","content_enviroment_opacity":"30","menu_enviroment_opacity":"70","base_url":"https:\/\/"}