YouTube

Upload videos with a title, playlist, thumbnail and subtitles.

API id: youtube

At a glance

TitleRequired, up to 100 characters. Send it as channels[].title.
Description5,000 characters (the block's content)
Files per postExactly 1 video
File needed?Yes
ThreadsNo
Edit after publishYes — description, title and options
Delete after publishYes
AnalyticsViews, impressions, likes, comments
CommentsRead and reply

Files

  • Video only: MP4 or MOV.

Options

KeyTypeWhat it does
privacyStatuschoicepublic (default), unlisted or private.
tagstextComma-separated keywords. The whole list must fit in 500 characters.
categoryIdchoiceThe video category. Default: 22 (People & Blogs). See the list below.
playlistIdchoiceAdds the video to one of the channel's playlists.
selfDeclaredMadeForKidstrue / falseMarks the video as made for kids. This is a legal declaration: the video loses comments, notifications and personalised ads.
defaultLanguagechoiceLanguage of the title and description, like en or fr.
defaultAudioLanguagechoiceLanguage spoken in the video.
thumbnailmediaCustom thumbnail. JPEG or PNG, up to 2 MB. Needs a verified YouTube channel.
captionFilemediaA subtitle file (.vtt or .srt), uploaded with POST /media first. Needs captionLanguage.
captionLanguagechoiceLanguage of the subtitle file.

Categories: 1 Film & Animation, 2 Autos & Vehicles, 10 Music, 15 Pets & Animals, 17 Sports, 19 Travel & Events, 20 Gaming, 22 People & Blogs, 23 Comedy, 24 Entertainment, 25 News & Politics, 26 Howto & Style, 27 Education, 28 Science & Technology, 29 Nonprofits & Activism.

Example

{
  "channelId": "CHANNEL_YOUTUBE",
  "title": "How we cut our build time in half",
  "options": {
    "privacyStatus": "unlisted",
    "categoryId": "28",
    "tags": "devops, ci, build",
    "selfDeclaredMadeForKids": "false"
  },
  "blocks": [{ "content": "In this video we walk through…", "mediaIds": ["VIDEO_ID"] }]
}

Good to know

Private until audited

Until your Google Cloud project passes YouTube's compliance audit, YouTube makes every upload private, whatever privacyStatus you send.

  • Without a verified channel, a custom thumbnail is skipped. The video still publishes and YouTube picks a frame.

Comments

You can read the comments on a published video and reply to them. See Read and reply to comments.

  • Newest first, 50 comments per page. Use nextCursor for more.
  • Up to 5 replies are shown under each comment. YouTube needs a separate request for more, which Bulkit does not spend your quota on.
  • YouTube only nests one level. A reply to a reply is posted under the top-level comment.
  • Each reply uses 51 units of your Google project's daily quota (50 for the reply, 1 to check the comment). Reading a page uses 1. The default quota is 10,000 units a day, shared with uploads.
  • Needs youtube.force-ssl, the same permission as deleting a video. An account connected before that shows needs-reconnect.

Set up

To connect accounts, you first need your own app on this platform. See the YouTube app setup guide.

On this page