On-Demand Match Demo Downloader
Pass a Match ID, match URL, or tournament share-link to automatically download and parse the demo.
Rate Limit: 60 req/min (Queue-throttled)
✓ Ready. Last file: CS2-MATCH-948102_de_mirage.dem (128.06 KB - SHA256 Verified)
100%
Protocol: HTTP/2 Streaming & Auto Gzip Decompression
Checksum: 51ba41f5ecc2c72a806931f866662f4e...
Competitive 5v5 • Map: de_mirage • 128 Tick
Natus Vincere 13 - 11 FaZe Clan
Match Duration: 44.5 mins • 24 Rounds Played • Server: Frankfurt (EU-Central)
Total Kills
165
Bomb Plants
11
Clutches Won
4
Player Average Damage Per Round (ADR) Extracted from tick events
Frag Weapon Distribution Kills by weapon class
Parsed Player Telemetry (Tick-Accurate)
10 Players • Source: .dem parsed binary| Player Name | Team | K / D (+/-) | ADR | HS % | Rating 2.0 | Utility Dmg |
|---|---|---|---|---|---|---|
| s1mple | Team A | 24 / 12 (+12) | 98.4 | 58.3% | 1.45 | 240 |
| broky | Team B | 21 / 15 (+6) | 84.6 | 47.6% | 1.25 | 140 |
| frozen | Team B | 20 / 16 (+4) | 81.3 | 55.0% | 1.19 | 220 |
| b1t | Team A | 19 / 14 (+5) | 78.2 | 68.4% | 1.18 | 180 |
| ropz | Team B | 18 / 17 (+1) | 76.8 | 61.1% | 1.08 | 175 |
Authenticated Scraping & Download Engine Architecture
Designed for reliability against session timeouts, bot mitigation, and large file streams.
1. Session & Auth Persistence
Handles Steam OpenID / Form logins, stores encrypted session cookies and Bearer tokens in session_store.json. Automatically triggers re-login on 401/403 expiry.
2. Chunked Stream Downloader
Streams .dem.gz files in 64KB chunks to keep memory usage minimal, tracks real-time progress, and validates SHA-256 integrity before unpacking.
3. On-Demand REST / Queue API
Built with FastAPI and async background workers. Clients or Discord bots call POST /api/v1/demos/download and poll task status until ready.
Execution Flow:
User Request (Match ID) âž” Check Session Validity âž” (Auto-Refresh Auth if expired)
âž” Query Match API Endpoint with Auth Header âž” Obtain Signed CDN Download Link
âž” Stream .dem.gz in background âž” Verify SHA-256 Checksum âž” Gzip Decompress .dem âž” Trigger Analytics Parser