PubNio calls YouTube’s POST /upload/youtube/v3/thumbnails/set (youtube.thumbnails.set) to set a custom thumbnail on an uploaded video. Values checked 2026-12-05.
How PubNio calls it
- Publishing:
POST /api/v1/posts(unless it saves a draft),POST /api/v1/posts/{postId}/publish, orPOST /api/v1/posts/{postId}/targets/{targetId}/retrystarts the delivery. - PubNio sends the image with
uploadType=mediaonly when it is at most 2 MiB and JPEG, PNG, GIF, or BMP. - A failed thumbnail is logged and does not fail the delivery: the video stays published with YouTube’s own thumbnail.
- The image travels as the raw request body under its own
Content-Type, withvideoIdset to the ID YouTube returned for the upload. PubNio reads it from storage before the final video chunk; if that read fails, the delivery fails asmedia_preparation_failedrather than publishing without it.
| Value | Official value | Source | Checked |
|---|---|---|---|
| Quota cost (units) | 50 | YouTube Data API: Quota Calculator | 2026-12-05 |
| Thumbnail size | 50 MiB (2 MiB for the Movies category) | YouTube Data API: Thumbnails: set | 2026-12-05 |
| Thumbnail types | image/jpeg, image/png, application/octet-stream | YouTube Data API: Thumbnails: set | 2026-12-05 |
Scopes
- The pinned spec accepts any one of 4 scopes:
https://www.googleapis.com/auth/youtube,https://www.googleapis.com/auth/youtube.force-ssl,https://www.googleapis.com/auth/youtube.upload, andhttps://www.googleapis.com/auth/youtubepartner. - PubNio’s Google sign-in requests
https://www.googleapis.com/auth/youtube.force-sslandhttps://www.googleapis.com/auth/youtube.upload, which satisfies it. - Before a delivery makes this call, PubNio checks that the account granted
https://www.googleapis.com/auth/youtube.upload.
Errors
PubNio has no YouTube error code pages yet. Provider error codes covers the providers that have them.
Spec and changes
youtube.thumbnails.set in the pinned spec, revision 20261124. YouTube reference: youtube.thumbnails.set reference.
PubNio’s generated YouTube client leaves this method out (media upload requires a dedicated transport), so a hand-written adapter sends it.
Checked weekly; no change to POST /upload/youtube/v3/thumbnails/set recorded since this revision. Change tracker.
Limits
- PubNio’s 2 MiB cap applies to every video, though YouTube’s reference allows larger files outside the Movies category.
Sources
- YouTube Data API v3 discovery document
- youtube.thumbnails.set reference
- YouTube Data API: Quota Calculator, checked 2026-12-05
- YouTube Data API: Thumbnails: set, checked 2026-12-05