Upload

It uploads the video to Youtube.

body: returns data

success_score: api success rate

errors: errors encountered in api

Here is the code:-

youtube.upload(title='Testing Upload', video_path='C:/Users/video.mp4', kid_type="Yes, it's made for kids", description='I am testing', type='Public')
Parameters
  • title (str) – title of video

  • video_path (str) – local file path of video

  • kid_type (str) – e.g. Yes, it’s made for kids

  • description (str) – description of video

  • type (str) – e.g. Public or Private

Returns

{“body”: {‘VideoLink’: ‘VideoLink’}, “success_score”: “100”, “errors”: []}

Return type

dict