A robust, API for tracking real-time Discord presence, activities, and Spotify status.
Fetch a user's current status via a simple HTTP GET request.
{
"success": true,
"data": {
"discord_user": {
"username": "Marki",
"id": "1053571917665280010"
},
"discord_status": "online",
"listening_to_spotify": true,
"spotify": {
"song": "Never Gonna Give You Up",
"artist": "Rick Astley"
}
}
}
Connect for real-time event streaming.
Send this immediately after opening the connection.
{
"op": 2,
"d": {
"subscribe_to_id": "1053571917665280010"
}
}
The server will send an INIT_STATE payload with a heartbeat_interval. You must send Op 3 periodically.
{
"op": 3
}