Steam Web API icon

Steam Web API

Get data from the Steam Web API

Overview

This n8n node interacts with the Steam Web API to retrieve a user's recently played games. It is useful for workflows that need to fetch and process gaming activity data from Steam, such as generating reports of recent gameplay, integrating with other services (e.g., Discord notifications), or tracking user engagement over time.

Example scenarios:

  • Automatically logging your most recently played Steam games to a spreadsheet.
  • Sending yourself a daily summary of your recent gaming activity via email.
  • Triggering automations based on specific games being played.

Properties

Name Type Meaning
Steam ID String The unique identifier for a Steam user. You can find this on your Steam account page. Required to specify whose recently played games to fetch.
Simplify Boolean Whether to return a simplified version of the response instead of the raw data. If enabled, the output will be easier to use in subsequent workflow steps.

Output

  • json:
    • If "Simplify" is false, the output contains the full raw response from the Steam Web API's GetRecentlyPlayedGames endpoint, which typically includes:
      • response: An object containing:
        • total_count: Number of games returned.
        • games: Array of objects, each representing a game with fields like appid, name, playtime_2weeks, playtime_forever, etc.
    • If "Simplify" is true, the output contains a streamlined array of game objects with only the most relevant fields (such as game name, app ID, and playtime).

Dependencies

  • External Service: Requires access to the Steam Web API.
  • API Key: You must configure a valid Steam API key in n8n credentials under steamApi.
  • n8n Configuration: No additional environment variables are required beyond the credential setup.

Troubleshooting

  • Invalid Steam ID:
    Error message: "No games found for the provided Steam ID."
    Resolution: Double-check the Steam ID. Ensure it is correct and public profile/game details are enabled in Steam privacy settings.

  • Missing API Key:
    Error message: "Missing credentials for steamApi."
    Resolution: Add your Steam API key in n8n's credentials section.

  • Network/API Errors:
    Error message: "Request failed with status code 403/404/500."
    Resolution: Check your network connection, ensure the Steam API is operational, and verify your API key has not been revoked.

Links and References

Discussion