# Deadlock Stat Track (`dopplin1/deadlock-stat-track`) Actor

Deadlock player stats on demand: report cards, match history with new-match tracking, lobby scouting, patch impact, hero win rates, item builds and ranked leaderboards. Optional Discord webhook summaries. Uses the free community Deadlock API.

- **URL**: https://apify.com/dopplin1/deadlock-stat-track.md
- **Developed by:** [Dopplin1](https://apify.com/dopplin1) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Deadlock Stats: Player Reports, Patch Impact, Scouting & Item Builds

Turn Deadlock match data into ready-to-use answers: player report cards, who got buffed by the latest patch, scouting reports on a lobby, the best items for any hero, and scheduled tracking of new matches, with optional summaries posted straight to Discord.

### What you can get

| Mode | You give it | You get |
| --- | --- | --- |
| Player report card | Player names or IDs | Win rate, KDA, streak, last 10 results, best and worst heroes, current rank |
| Player match history | Player names or IDs | One row per match: hero, result, K/D/A, net worth, length |
| Scouting report | Match IDs and/or players | Each player's rank, top 3 heroes and win rate on the hero they played |
| Patch impact | Nothing | Every hero's win and pick rate before vs after the latest patch, biggest winners and losers |
| Best item builds | A hero name | Each item's win rate, how often it's bought and when |
| Hero win rates | Days back | Win rate, pick rate and averages for every hero |
| Match scoreboards | Match IDs | One row per player in each match |
| Ranked leaderboard | Region, optional hero | Top players with their main heroes |

### Track new matches on a schedule

Turn on **Only new matches since the last run** in match history mode, then schedule the Actor (for example, daily). Each run returns only games played since the previous one, which is ideal for coaches, team captains and Discord bots.

### Post results to Discord

Paste a Discord webhook URL (Channel settings > Integrations > Webhooks > New webhook > Copy URL) and every run posts a short summary, for example:

```
Patch impact: 09-29-2026 (14 days before vs after)
Biggest winners
Deadman Danny +10.9 pts (38.9% → 49.8%)
Mo & Krill +2.3 pts (48.7% → 51%)
```

### Example: player report card

```json
{
  "personaName": "UglySad",
  "currentRank": "Eternus 2",
  "matchesAnalyzed": 50,
  "winRatePct": 54,
  "currentStreak": "2 losses",
  "kda": 4.4,
  "mostPlayedHero": "Baba (18 games, 50% WR)",
  "bestHero": "Nurse Harrow (5 games, 100% WR)",
  "last10": "LLWWLWLWWL"
}
```

### Notes

- Players can be entered as a name, a Deadlock account ID, a SteamID64 or a `steamcommunity.com/profiles/...` URL. Custom Steam URLs (`/id/...`) can't be resolved.
- Item win rates favor late-game items, since players who reach them are often already winning. Use the buy rate and buy minute columns for context.
- Only game statistics and public display names are exported.
- Data comes from the free, open-source community [Deadlock API](https://deadlock-api.com). Please consider supporting it. This Actor is not affiliated with or endorsed by Valve or the Deadlock API project.

# Actor input Schema

## `mode` (type: `string`):

Choose the kind of Deadlock data to export.

## `players` (type: `array`):

For report cards, match history and scouting. Each entry can be a player name, a Deadlock account ID, a SteamID64, or a steamcommunity.com/profiles/ URL.

## `reportMatches` (type: `integer`):

How many recent matches each report card covers.

## `maxMatchesPerPlayer` (type: `integer`):

Most recent matches to save for each player.

## `onlyNewMatches` (type: `boolean`):

For match history. Remembers the newest match per player, so scheduled runs return only games played since the previous run.

## `matchIds` (type: `array`):

For match scoreboards and scouting reports. A scouting report covers every player in each match.

## `heroName` (type: `string`):

Hero to analyze item builds for, e.g. Infernus.

## `minMatches` (type: `integer`):

For patch impact and item builds: ignore heroes or items with fewer matches than this.

## `heroStatsDaysBack` (type: `integer`):

For hero win rates: matches from the last N days.

## `region` (type: `string`):

Region for the ranked leaderboard.

## `leaderboardHeroName` (type: `string`):

Leave empty for the overall leaderboard, or enter a hero name like Infernus for that hero's leaderboard.

## `leaderboardLimit` (type: `integer`):

How many top leaderboard entries to save.

## `discordWebhookUrl` (type: `string`):

Post a short summary of each run to a Discord channel. In Discord: Channel settings > Integrations > Webhooks > New webhook > Copy URL.

## Actor input object example

```json
{
  "mode": "playerReport",
  "players": [
    "UglySad"
  ],
  "reportMatches": 50,
  "maxMatchesPerPlayer": 50,
  "onlyNewMatches": false,
  "minMatches": 500,
  "heroStatsDaysBack": 7,
  "region": "NAmerica",
  "leaderboardLimit": 100
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "players": [
        "UglySad"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("dopplin1/deadlock-stat-track").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "players": ["UglySad"] }

# Run the Actor and wait for it to finish
run = client.actor("dopplin1/deadlock-stat-track").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "players": [
    "UglySad"
  ]
}' |
apify call dopplin1/deadlock-stat-track --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dopplin1/deadlock-stat-track"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/HzyUScSvtzi4dG5SX/builds/CaB0PQGhsXz1omrMR/openapi.json
