Use this efficient n8n workflow to instantly check the live status of any Twitch user via the GraphQL API. This n8n template utilizes the GraphQL n8n node for reliable monitoring and custom alerting.
Download this n8n workflow template and start using it instantly.
Determining if a Twitch channel is live is a common requirement for automated systems, allowing users to send alerts or kick off subsequent processes (like starting a recording or posting a social media announcement). This sophisticated n8n workflow provides a robust method using the Twitch internal GraphQL endpoint.
Unlike traditional REST API calls, leveraging GraphQL ensures you retrieve only the exact data needed, making the request highly efficient. This n8n template serves as a foundational component for creating complex monitoring solutions. The logic checks for the presence of the stream object in the response; if it exists, the stream is active. This core logic flow control is handled perfectly by the n8n node structure.
This automation is initiated by a manual n8n trigger, though in a real-world scenario, you would likely substitute this with a Cron n8n node or Webhook n8n trigger to run scheduled checks.
twitch variable to the target username (YOUR-TWITCH-USERNAME).https://gql.twitch.tv/gql endpoint. It uses the username defined in the previous step to retrieve the stream object details (viewers count, title, type).client-id header which is a publicly known value used by Twitch for anonymous access, bypassing the need for complex OAuth authentication for simple status checks.stream object returned in the response ({{ $json.data.user.stream }}) is not empty. If the object contains data (True branch), the user is live. If the object is null or empty (False branch), the user is offline. You would connect subsequent n8n nodes to these branches for customized actions (e.g., sending a Slack message, updating a database, or performing other complex actions within your n8n workflow).twitch variable from YOUR-TWITCH-USERNAME to the actual Twitch username you wish to monitor.YOUR-TWITCH-USERNAME) in a variable named twitch. Key Configuration: Sets a simple string assignment for easy reference in downstream n8n nodes.client-id header. The query dynamically references the twitch variable from the preceding n8n node.data.user.stream is 'notEmpty'. If stream data is present, the condition is true (user is live).Use this robust n8n workflow template to check URL availability using Peekalink and conditionally fetch rich link previews. Essential flow control for data validation in n8n.

Use this n8n workflow to ensure Awork tasks cannot be marked complete until all dependencies and subtasks are finalized. Automated status rollback and commenting.

Use this powerful n8n workflow to audit all your active workflows, identify which AI models are in use across every n8n node, and centralize the data in Google Sheets.

Deploy an automated n8n workflow using the Line messaging trigger and OpenRouter's multimodal AI (Qwen LLM) to instantly translate Chinese text and images. Find high-value n8n templates here.

Automate instant Chinese translation responses directly within Line messenger using this powerful n8n workflow. Integrate OpenRouter's Qwen model for high-quality, real-time linguistic support.








































