PowerShell command to check you real Deadlock in-match hours

Tips & Guides

You'll need to find your steam ID which can be found from opening steam and clicking your profile then selecting "account details" your steam id should be listed at the top of the page. Just replace "(YOUR STEAM ID)"

Open powershell and paste this entire code block -

$accountId = YOUR_STEAM_ACCOUNT_ID
$url = "https://api.deadlock-api.com/v1/players/$accountId/match-history?only_stored_history=true"

$matches = Invoke-RestMethod $url

$totalSeconds = ($matches | Measure-Object -Property match_duration_s -Sum).Sum
$totalHours = [math]::Round($totalSeconds / 3600, 2)

"Matches: $($matches.Count)"
"In-match playtime: $totalHours hours"    

You should see something like this back -

Matches: 2000
In-match playtime: 1000 hours

You can compare your in game time to the average here too https://statlocker.gg/playtime-by-rank

Posted Jun 27, 2026, 10:29 AM UTC

115
Loading comments…