Check if a Twitch Stream is Live
## Introduction: This workflow template helps you determine if a Twitch user's stream is currently live or offline. ## Setup Instructions: The Document node holds the sample Twitch username you wish to check. You may adapt it in your workflow by replacing this with a chain that contains the Twitch username you want to check. This value is passed to the GraphQL node query as `$(Document).item.json.twitch` so make sure to change this based on your workflow. ## How it Works: The important nodes here are the `GraphQL` and `IF` nodes. The GraphQL queries the Twitch API, and then the output returns a document with the `stream` property. The IF node then checks if this property has a value; if `null`, it means the user is offline, otherwise the user is online or live. ## Common Use Cases: You can use this with other workflow templates to post live stream alerts to Twitter/X, Bluesky, and Discord via webhooks, etc., to notify your community to join your stream. You may also use an `LLM` node to write a custom alert based on the value of the property `title`. ## How to adjust this template If you want to check a list of Twitch channels, you can simply exchange the `Document` set node in the beginning with your list of channels. For more information on the GraphQL output, please see the official Twitch API documentation: [Get Streams](https://dev.twitch.tv/docs/api/reference/#get-streams)
- Platform
- n8n
- Category
- Social Media
- Price
- $4.99
- Creator
- Roger Filomeno
- get-streams
- if
- set
- graphql
- stickyNote
- manualTrigger
How to import this workflow into n8n
- 1Purchase or download the workflow to get the n8n workflow JSON file.
- 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
- 3Open each node marked with a credential warning and connect your own accounts and API keys.
- 4Run the workflow once manually to verify the data flow, then toggle it to Active.
Related Social Media workflows
- Generate & Auto-Post AI Videos to Social Media with Veo3 and Blotato$14.99
- Automate AI-Driven Social Media Content Creation and Publishing$24.99
- Automate Viral TikTok Cloning and Multi-Platform Posting with AI$19.99
- Automate LinkedIn Content Creation and Publishing via Email with AI$24.99
- Automate Social Media Posts Using Google Trends and AI$14.99
- Automate Video Captioning and Posting to Instagram and TikTok$14.99
Need this deployed? We'll set it up for you.
Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.