Deadlock Game Match Statistics Web Scraper and Reporter - n8n Workflow

Use this comprehensive n8n workflow to scrape the latest competitive match statistics from DeadlockTracker.gg upon an n8n trigger and automatically send detailed player data back via Telegram.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

Competitive gamers who want instant updates on their recent match performance.
Community managers needing quick access to match data for team analysis.
Developers looking for advanced examples of web scraping using the n8n node structure.
Users searching for effective n8n templates for data extraction and notification.

Overview

Keeping track of specific player match results in competitive games often requires manual website refreshing. This powerful n8n workflow eliminates that effort by automating the entire process. Initiated by a simple Telegram message, the n8n workflow uses targeted web scraping (HTTP Request nodes combined with advanced Function nodes using Cheerio) to pull the most recent match ID, fetch the detailed match page, extract player names, chosen heroes, and ranks, and then structure this information into a readable message. This n8n solution is an excellent example of using custom code within an n8n node to solve complex data parsing challenges, making it one of the most useful n8n templates for data integration.

How it Works

This automation is initiated by the Telegram n8n trigger. The flow executes the following steps:


  1. Trigger Reception: The workflow starts when a message is received by the configured Telegram bot via the Telegram n8n trigger.

  2. Profile Fetching: An HTTP Request n8n node (Fetch Profile HTML) hits the specified player's DeadlockTracker profile URL to retrieve the raw HTML.

  3. ID Extraction: A Function n8n node (Extract Match ID) uses regular expressions to scan the retrieved profile HTML and isolate the ID of the most recent match.

  4. Match Data Fetching: A second HTTP Request n8n node (Fetch Match HTML) uses the dynamically extracted Match ID to construct the URL and fetch the specific match details HTML.

  5. Data Parsing: A critical Function n8n node (Parse Players) utilizes the cheerio library (common in n8n custom code) to precisely scrape the nickname, hero selection, and rank for every player listed in that match.

  6. Message Formatting: A final Function n8n node (Format Message) organizes the scraped player data into a structured, localized text message.

  7. Notification: The resulting message is sent back to the initiating Telegram chat using the Send Telegram Message n8n node, completing the execution of the n8n workflow.

Installation Guide

To deploy this n8n workflow, follow these steps:


  1. Import: Copy the provided JSON data and import it directly into your n8n instance as a new n8n workflow.

  2. Telegram Credentials: You must configure a valid 'Telegram Api' credential. This involves setting up a bot via BotFather on Telegram and inputting the Bot Token into the n8n credentials manager.

  3. Telegram Trigger Setup: Ensure the Telegram Trigger n8n node is active and configured to listen for incoming messages on your chosen bot.

  4. Activation: Once credentials are set, activate the entire n8n workflow. The flow will execute every time your bot receives a message, pulling the updated statistics.

Node Details

Telegram Trigger (n8n trigger): Initiates the n8n workflow upon receiving any message in the linked Telegram bot. It captures the chat ID needed for the response.
Fetch Profile HTML (n8n node - HTTP Request): Retrieves the primary player profile HTML from DeadlockTracker.gg. Configured to use a fixed URL and return the body as a string.
Extract Match ID (n8n node - Function): Key transformation step. Uses JavaScript regex (/\(#(\d{8})\)/g) to pull the latest 8-digit match ID from the profile HTML, enabling targeted data retrieval later in the n8n workflow.
Fetch Match HTML (n8n node - HTTP Request): Dynamically fetches the match page using an expression to insert the matchId found in the previous step: https://deadlocktracker.gg/match/{{$json["matchId"]}}.
Parse Players (n8n node - Function): Uses the cheerio module to parse the match HTML. It iterates over relevant HTML elements (.player-wrapper) to extract structured data points like player name, hero, and rank, which is essential for the final output.
Format Message (n8n node - Function): Maps the parsed items into a clean, readable text format (localized with Russian text), preparing the payload for the messaging service.


  • Send Telegram Message (n8n node - Telegram): Final action. Sends the formatted statistical text back to the originating chat ID, completing the n8n template execution.

Related n8n Workflows

Free

Nodes: 4 Nodes
Updated: December 26 2025
View all
Created by
Eska
Eska

Featured*