Options for posting using the YouTube API
youTubeOptions
object with at a title
parameter - max 100 characters.
The title
is the only required field and can use autogenerated with the transcribe endpoint.
For example, to post a YouTube video with default settings:
private
by default, but the visibility can be set to public
or unlisted
.
Please see the optional fields below for more details.
visibility
, tags
, and publishAt
date. Please see the comments for requirements and descriptions.
title
must be 100 characters or less. The post
must be 5,000 characters or less. The post
and title
may contain any characters except < and >.list=
. The authenticated user and channel must be the owner of the playlist to add videos.isVideo
parameter. See the /post endpoint for details.publishAt
field will allow YouTube to control the publishing time.
The video will be to private until the publish time when it will be made public.
If the publish time is in the past, the video will be made public immediately.
Do not use the post scheduleDate
field when using the publishAt
field.containsSyntheticMedia
field is used to disclose that a video contains realistic Altered or Synthetic (A/S) content: Make a real person appear to say or do something they didn’t actually say or do, alter footage of a real event or place, generate a realistic-looking scene that did not actually occur.shorts
parameter to the youTubeOptions
object.
thumbNail
is a URL of a JPEG or PNG and less than 2MB in size. The file extension must end in png, jpg, or jpeg.
playListId
in the youTubeOptions
object.
Be sure that the authenticated user and channel are the owner of the playlist.
subTitleUrl
field in the youTubeOptions
object to specify the URL to your SRT or SBV file.
subTitleUrl
: A valid SRT or SBV file. The URL must start with https://
and end in .srt
or
.sbv
and be a valid SRT or SBV file. The file must be under 100 MB.subTitleLanguage
: Optional: The language of the subtitles. Much be a valid language
code. Default: “en”.subTitleName
: Optional: The name of the caption track. The name is intended to be visible to
the user as an option during playback. The maximum name length supported is 150 characters.
Default: “English”.tags
array in the youTubeOptions
object.
Tags must be at least 2 characters in length each and the total length of all tags must be 500 characters or less.
@handle
to a YouTube post, YouTube does not support resolving mentions in the post text.
The @handle
will remain as plain text.