Lodol Docs

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

ParameterTypeRequiredDescription
broadcaster_idstringYesThe broadcaster ID to clip from.
has_delaybooleanNoWhether 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

ParameterTypeRequiredDescription
user_loginstringYesThe 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

ParameterTypeRequiredDescription
broadcaster_idstringYesThe broadcaster ID to fetch followers for.
firstnumberNoMaximum 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

ParameterTypeRequiredDescription
user_loginstringNoFilter by broadcaster login (optional).
game_idstringNoFilter by game/category ID (optional).
firstnumberNoMaximum 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"
    }
  ]
}

On this page