Overview
This node interacts with the Twitch API to retrieve various types of information related to Twitch channels, games, and categories. Specifically, for the "Get Game Details" operation, it fetches detailed information about a specific game by its name. This is useful for scenarios where you want to enrich your workflow with metadata about a particular game on Twitch, such as its ID, box art, or other descriptive details.
Practical examples include:
- Automatically retrieving game details to display alongside Twitch stream data.
- Enriching marketing or analytics workflows with game metadata.
- Building dashboards that show detailed info about popular or user-specified games.
Properties
| Name | Meaning |
|---|---|
| Game Name | Name of the game to get details for |
Output
The output is a JSON array containing objects with detailed information about the requested game(s). Each object corresponds to one game and includes fields returned by the Twitch API's /games endpoint, such as game ID, name, box art URL, and other metadata.
No binary data is output by this node.
Dependencies
- Requires an API key credential for authenticating requests to the Twitch API.
- The node uses a helper function to make authenticated HTTP GET requests to Twitch endpoints.
- No additional external dependencies beyond the Twitch API and n8n's credential system.
Troubleshooting
Common issues:
- Providing an incorrect or misspelled game name may result in empty results.
- Missing or invalid API credentials will cause authentication errors.
- Network connectivity problems can prevent successful API calls.
Error messages:
- Authentication errors typically indicate invalid or missing API keys; ensure the credential is correctly configured.
- Empty responses mean no matching game was found; verify the spelling and existence of the game name.
- Rate limit errors from Twitch require waiting before retrying or adjusting usage patterns.