Real-Time Integration
The Deadlock Draft API provides real-time draft data via WebSockets, ideal for creating overlays, streams, and companion applications.
Read-Only Access
This API is designed for read-only integration. Draft modifications are only allowed through the web interface. Each draft has a unique WebSocket endpoint accessed via the draft ID.
Draft Lifecycle
Drafts have a limited lifespan. Completed drafts are automatically deleted after 48 hours. Empty drafts are removed after 2 hours of inactivity.
Getting Started
Connect to our WebSocket API to receive real-time updates about a draft session.
WebSocket Connection
wss://deadlock.pub/ws/draft/[draftId]
Replace [draftId] with the ID of the draft you want to monitor.
Key Steps
- Connect to the WebSocket endpoint
- Request draft data with
get_draft
message - Listen for real-time updates
- Handle draft completion or deletion
Available Data
Information you can display in your application
- TeamsTeam names and status
- Picks & BansSelected and banned heroes
- Turn TimerCurrent turn and remaining time
- Draft StatusWaiting, countdown, in progress, or completed
- Countdown TimerTime until draft begins