Overview
Can be accessed using client.helix.clips on an ApiClient instance.
Example
const api = new ApiClient(new StaticAuthProvider(clientId, accessToken));
const clipId = await api.helix.clips.createClip({ channelId: '125328655' });
Methods
createClip(params)
asyncCreates a clip of a running stream.
Returns the ID of the clip.
| Parameter | Type | Description |
|---|---|---|
| params | HelixClipCreateParams | see below |
| params.channelId | string | The ID of the broadcaster of which you want to create a clip. |
| params.createAfterDelay | boolean | Add a delay before the clip creation that accounts for the usual delay in the viewing experience. |
getClipById(id)
asyncRetrieves the clip identified by the given ID.
| Parameter | Type | Description |
|---|---|---|
| id | string | The clip ID. |
getClipsByIds(ids)
asyncRetrieves the clips identified by the given IDs.
| Parameter | Type | Description |
|---|---|---|
| ids | Array<string> | The clip IDs. |
getClipsForBroadcaster(user, filter)
asyncRetrieves the latest clips for the specified broadcaster.
| Parameter | Type | Description |
|---|---|---|
| user | UserIdResolvable | The broadcaster to fetch clips for. |
| filter | HelixClipFilter | |
| filter.endDate | string | The latest date to find clips for. |
| filter.limit | number | The maximum number of results to retrieve. Defaults to 20. |
| filter.startDate | string | The earliest date to find clips for. |
getClipsForBroadcasterPaginated(user, filter)
Creates a paginator for the latest clips for the specified broadcaster.
| Parameter | Type | Description |
|---|---|---|
| user | UserIdResolvable | The broadcaster to fetch clips for. |
| filter | HelixClipFilter | |
| filter.endDate | string | The latest date to find clips for. |
| filter.limit | number | The maximum number of results to retrieve. Defaults to 20. |
| filter.startDate | string | The earliest date to find clips for. |
getClipsForGame(gameId, filter)
asyncRetrieves the latest clips for the specified game.
| Parameter | Type | Description |
|---|---|---|
| gameId | string | The game ID. |
| filter | HelixClipFilter | |
| filter.endDate | string | The latest date to find clips for. |
| filter.limit | number | The maximum number of results to retrieve. Defaults to 20. |
| filter.startDate | string | The earliest date to find clips for. |
getClipsForGamePaginated(gameId, filter)
Creates a paginator for the latest clips for the specified game.
| Parameter | Type | Description |
|---|---|---|
| gameId | string | The game ID. |
| filter | HelixClipFilter | |
| filter.endDate | string | The latest date to find clips for. |
| filter.limit | number | The maximum number of results to retrieve. Defaults to 20. |
| filter.startDate | string | The earliest date to find clips for. |