CreateClip

Create a 30 second Twitch Clip
Twitch API restrictions
  • The generated clip will always be 30 seconds in length
  • The clip title will match your stream title at the time of creation
    To make your own changes to the clip duration and/or title, you can manually edit the clip later.

Signature

public ClipData CreateClip()

Parameters

No parameters.

Return Type

Twitch.Common.Models.Api.ClipData

Example

using System;
using Twitch.Common.Models.Api; //Needed for ClipData Type
public class CPHInline
{
    public bool Execute()
    {
        //Create Clip
        ClipData clip = CPH.CreateClip(); 
        //Access created clip data
        //Get clip creator name
        string creatorName = clip.CreatorName;
        //Get clip url
        string url = clip.Url;
        //Get clip game id
        string gameId = clip.GameId;

        return true;
    }
}