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.
- Open the Google Cloud console and create a project.
- Enable YouTube Data API v3 for it.
- Configure the consent screen as External, and add your own Google address as a test user.
- Create an OAuth client of the type Web application, and paste the redirect address above as an authorised redirect URI.
- 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.
- 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.uploadhttps://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.
| Limit | Value |
|---|---|
| Title | at most 100 characters |
| Description | at most 5000 bytes |
| Tags | at most 500 characters in all |
| Video file | at most 274.9 GB |
| Video formats | mp4 |
| Thumbnail | at most 52.4 MB, png, jpg, jpeg |
| Visibility | private, unlisted, public |
Where the numbers come from#
- YouTube: the page for the post, read on 2026-11-19.
YouTube publishes only after you approve the post.