Video Upload Guide

Legacy Twitch API v5 is deprecated and scheduled to be decommissioned on February 28, 2022. For more information, refer to the timeline announcement and the v5 migration guide to use the latest version of the Twitch API.


This guide covers how to use API endpoints to upload videos, enabling you to create tools for creating and managing videos on Twitch. If instead you are looking for information on how to upload videos in the Creator Dashboard, please see the Video on Demand Twitch help article for the latest information. In either case, please note that the channel uploading videos must be a Twitch Partner or Affiliate.

Broadcasters often like to add personal branding (for intros and outros) and create compilation videos from their streams. With the video endpoints, you can enable those experiences and upload the end result directly to Twitch.

Video Formats

When uploading a video, the API accepts the following formats:

Rate Limits

There is a rate limit of 5 simultaneous uploads per user, with a maximum of 100 uploads in 24 hours.

How to Upload a Video

1. Get an Authentication Token

You need an OAuth token with the channel_editor scope for the channel where the video will live. Once you have the token, you add it to the Authorization header when you create the video.

For information about getting OAuth access tokens, see the Apps & Authentication Guide.

2. Create a Video

See the Create Video endpoint.

This example creates a video entitled “Test video” in the 44322889 channel.

curl -H 'Accept: application/vnd.twitchtv.v5+json' \
-H 'Authorization: OAuth cfabdegwdoklmawdzdo98xt2fo512y' \
-H 'Client-ID: uo6dggojyb8d6soh92zknwmi5ej1q2' \
-X POST ' video'

The response will include the following information, which is used in subsequent steps:

3. Upload Video Parts

See the Upload Video Part endpoint.

This uploads the first part of video 106400740, created in the prior step.

curl -H 'Content-Length: 8896493' \
--data-binary "@test.mp4" \
-X PUT ''

4. Complete the Video Upload

See the Complete Video Upload endpoint.

This example completes the upload of video 106400740.

curl -X POST ''