platform youtube. Each post uploads one video. A YouTube post needs a video: photos aren’t taken.
What you can post
- One video, with a title and a description.
- The video goes out
public,unlistedorprivate. - Shorts: YouTube makes every square or vertical video up to 3 minutes a Short, and no setting changes that.
video_typeshortonly changes the title: with notitle, the title is the start of the description or post text with#Shortsat the end. Atitlethat is only#Shortsdoes the same on any video, ashortor not. - The video can go into one of the channel’s playlists once it is up.
Settings
Every key is optional. Create a post has the full list.Text
- The title takes 100 characters. The description takes 5,000 bytes: YouTube counts bytes, so a letter outside English can take 2 to 4. PostSyncer cuts longer text to those limits when it’s sent, never inside a letter. A cut description gives the post’s row a
text_shortenednote. See the post object. - YouTube refuses
<and>in a title or description, so PostSyncer takes them out.
Media
- YouTube itself also takes AVI, WMV and FLV, but the API doesn’t take those files: convert them to MP4 first.
- PostSyncer doesn’t check a video’s length for YouTube. YouTube’s own limits apply to the channel.
- Set the video’s thumbnail with
cover_image.thumbnailon the first item: a picture, as a library id or a link. YouTube takes a picture, never a frame. See Video covers.
Playlists
- Get an account lists a channel’s
playlists, each with itsid,title,privacy_statusandvideo_count. List accounts doesn’t, to keep it fast. MCP:get-account. - A channel connected before PostSyncer asked YouTube for playlist access has
playlists_reconnect: trueandplaylists: []. Reconnect it to list its playlists and add videos to them. - When YouTube doesn’t answer,
playlistsisnull, not[]: try again later. Up to 500 playlists are listed. - When YouTube doesn’t add the video to the playlist (the playlist was deleted, or the channel lost access), the video still goes out, and the post’s row gets a
setting_not_appliednote withsetting: "playlist_id"and YouTube’s reason. When YouTube never answers and PostSyncer can’t check the playlist either, the note says the video may not have been added: check the playlist on YouTube. See the post object.
What PostSyncer doesn’t set
- Whether view counts and ratings are public: YouTube shows them either way.
- The audio’s language: PostSyncer doesn’t set it. Set it in YouTube Studio if you need it.
- A time to publish on YouTube’s side: PostSyncer uploads the video at the post’s time.
More than one item and first comments
- YouTube has no threads. The items are joined into one description, with blank lines between them.
- A first comment (
is_first_comment: true) is a comment under the video,first_comment_delayminutes after it goes out (1 when you leave it out). It’s text only: a first comment with media answers422.
Delete a post
Deleting the post in PostSyncer asks YouTube to delete the video. Test safely says what happens when YouTube refuses.Comments
- PostSyncer reads comments an hour after the video goes out, every 6 hours for its first day, then once a day until it’s 7 days old, and whenever you ask with Sync comments.
- A channel needs comment access, which it grants when it connects. A channel connected without it isn’t read on the schedule, and hiding a comment answers
422withYouTube did not hide the comment. Reconnect YouTube and allow comment access.Reconnect the channel to fix it. - Replies go out from the channel, as text. Media on a reply isn’t sent to YouTube.
- Hide holds the comment for review on YouTube, and
"hidden": falsepublishes it again. - Delete removes the channel’s own comment, a reply sent from PostSyncer included. Someone else’s comment is rejected instead, which takes it off YouTube for good. Either way it’s
is_deleted_on_platform: trueand can’t be shown again. - A delete answers
200, also when YouTube refuses or the channel needs reconnecting. Get comment shows whether it was removed.
Analytics
YouTube givesimpressions, likes, comments and shares. See Read analytics.
Example
A draft video, unlisted, with a title, tags and a playlist:Related
Answer comments
Read, reply, hide and delete.
Compare the 12 networks
How YouTube differs from the other networks.