Create Clip
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.
Variables
Name | Type | Description |
---|---|---|
Example Value: 7/11/2022 3:01:53 AM Timestamp of clip creation | ||
Example Value: AwkwardHelplessSalamanderSwiftRage String identifier of the created clip | ||
Example Value: True/False Boolean result of the request | ||
Example Value: https://clips.twitch.tv/AwkwardHelplessSalamanderSwiftRage Full URL to the created clip |
C# Usage
Create a 30 second Twitch Clip
public ClipData CreateClip()
No parameters
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;
}
}
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.