Skip to main content
The YouTube API endpoints let you upload videos to a connected YouTube channel and optionally set a custom thumbnail after publishing. Use the publish endpoint to send a video live with a title, description, and privacy status, then call the thumbnail endpoint with the returned video ID to attach a custom thumbnail image. Both endpoints authenticate via your Dohoo API key.
Dohoo uses YouTube API Services. By connecting your YouTube channel, you agree to the YouTube Terms of Service.

Publish a video

Upload a video to your connected YouTube channel.

Endpoint

Request headers

Request body

Example request

Example response

Set privacyStatus to "unlisted" while testing so your video is accessible via direct link but won’t appear in search results or on your channel page.

Set a custom thumbnail

Attach a custom thumbnail image to a previously published YouTube video.

Endpoint

Replace :videoId in the URL with the videoId returned from the publish endpoint above.

Request headers

Request body

Example request

Example response

Custom thumbnails are only available on YouTube channels that are verified. If your channel is unverified, the thumbnail endpoint will return an error and YouTube will auto-generate a thumbnail instead.
YouTube recommends thumbnail images at 1280×720 pixels (16:9 aspect ratio), under 2 MB, in JPG, GIF, or PNG format.