Twitch stream schedule API
A channel’s published stream schedule as Helix’s Schedule: upcoming segments with start, end, title and category, and any vacation.
GET /v1/twitch/users/{handle}/schedule1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/twitch/users/lirik/schedule",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "data": { "segments": [ { "id": "eyJzZWdtZW50SUQiOiJiNzU0MDEzZC1iOTRlLTRlNmEtYWFmYi03YmM0NmMzNDEzODciLCJpc29ZZWFyIjoyMDI2LCJpc29XZWVrIjo0N30=", "start_time": "2026-11-22T17:00:00Z", "end_time": null, "title": "", "canceled_until": null, "category": null, "is_recurring": true }, { "id": "eyJzZWdtZW50SUQiOiI0YjczZTVjYi05ODQzLTQ5ZmQtYjg2Yi0zYzVjMjYwNjQ0YjIiLCJpc29ZZWFyIjoyMDI2LCJpc29XZWVrIjo0OH0=", "start_time": "2026-11-23T17:00:00Z", "end_time": null, "title": "", "canceled_until": null, "category": null, "is_recurring": true }, "… 4 more" ], "broadcaster_id": "23161357", "broadcaster_name": "LIRIK", "broadcaster_login": "lirik", "vacation": null }}Parameters
| Name | Type | Description |
|---|---|---|
handlepath · required | string | Twitch login (username) or channel URL. Example: ninja. |
Response fields
200 with a TwitchScheduleResponse, in the shape of Twitch’s Helix API objects.
| Field | Type | Description |
|---|---|---|
data | object |
Status codes
| Status | Meaning |
|---|---|
200 | The schedule. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | No Twitch channel or clip by that name. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Twitch is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Questions
What if a channel has no schedule?
You get an empty segments list, charged as a normal call.
Twitch is a trademark of Twitch Interactive, Inc. We are not affiliated with or endorsed by Twitch.