Skip to content

Publishing

Publish to YouTube

Create your YouTube developer app, connect it, and publish within the limits of YouTube.

Last updated:

Stuarty publishes to YouTube through a developer app that you create and own (ADR-0035): no Stuarty account stands between you and YouTube, and the secret stays in your vault.

Set up the developer app#

You need a Google account, and a Google Cloud project that you create. Stuarty uses the redirect address <your Stuarty address>/social/callback, for example http://127.0.0.1:7878/social/callback on a local server. The Connections page of Stuarty shows the exact value to paste.

  1. Open the Google Cloud console and create a project.
  2. Enable YouTube Data API v3 for it.
  3. Configure the consent screen as External, and add your own Google address as a test user.
  4. Create an OAuth client of the type Web application, and paste the redirect address above as an authorised redirect URI.
  5. In Stuarty, open Connections, choose Connect, pick YouTube, and paste the client id and the client secret. The secret goes into the vault and is never shown again.
  6. Choose the sign-in. Google asks you to accept the permissions, and sends you back to Stuarty.

Two things to know. While the consent screen is in the status Testing, Google may expire the refresh token after a few days; the connection then shows that it needs a new sign-in, and you sign in again. And Stuarty always sends a visibility with the video (private, unlisted or public, your choice per post), so a video is never public by accident.

A video upload counts against the daily quota of your API project; the limits below are the ones Stuarty checks before it sends anything.

Permissions and hosts#

The sign-in asks for these permissions and no others:

  • https://www.googleapis.com/auth/youtube.upload
  • https://www.googleapis.com/auth/youtube.readonly

The only hosts Stuarty contacts for YouTube: www.googleapis.com, oauth2.googleapis.com. They are contacted only after you create the connection.

The official guide is here (read on 2026-11-19).

Limits#

These are the limits Stuarty checks a post to YouTube against before anything is sent (publish:validate). A post that breaks one is refused with the limit named, and nothing leaves your machine.

LimitValue
Titleat most 100 characters
Descriptionat most 5000 bytes
Tagsat most 500 characters in all
Video fileat most 274.9 GB
Video formatsmp4
Thumbnailat most 52.4 MB, png, jpg, jpeg
Visibilityprivate, unlisted, public

Where the numbers come from#

YouTube publishes only after you approve the post.