Twitch
API actions for the Twitch integration.
Twitch
Inspect Twitch channels, streams, and create clips using an access token.
Create a clip
Create a new clip from a broadcaster's live stream.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
broadcaster_id | string | Yes | The broadcaster ID to clip from. |
has_delay | boolean | No | Whether the clip creation should be delayed (Twitch may queue processing). |
Response
{
"edit_url": "mock_value",
"id": "mock_value",
"status": "mock_value"
}Get user profile
Retrieve a Twitch user's profile details by login.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
user_login | string | Yes | The Twitch login/username (lowercase). |
Response
{
"status": "mock_value",
"user": {
"description": "mock_value",
"display_name": "mock_value",
"id": "mock_value",
"login": "mock_value"
}
}List channel followers
Return followers for a broadcaster with counts and timestamps.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
broadcaster_id | string | Yes | The broadcaster ID to fetch followers for. |
first | number | No | Maximum number of followers to return (1-100). |
Response
{
"followers": [
{
"followed_at": "mock_value",
"user_id": "mock_value",
"user_name": "mock_value"
}
],
"status": "mock_value",
"total": "mock_value"
}List live streams
List active streams by broadcaster login or game ID.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
user_login | string | No | Filter by broadcaster login (optional). |
game_id | string | No | Filter by game/category ID (optional). |
first | number | No | Maximum number of streams to return (1-100). |
Response
{
"status": "mock_value",
"streams": [
{
"id": "mock_value",
"title": "mock_value",
"user_id": "mock_value",
"user_name": "mock_value",
"viewer_count": "mock_value"
}
]
}