Lanyard
APIRetrieve Discord presence via REST API or WebSocket
Overview
Lanyard provides REST and WebSocket interfaces to fetch real-time Discord presence data. Key REST endpoints include `/api/v1/users/{user_id}` for individual user status and `/api/v1/users` for bulk queries. WebSocket support enables live updates for presence changes. Responses are JSON-formatted, containing details like online status, current activity (games, streams, Spotify), device info, and timestamps. Use cases include displaying Discord status on personal websites, integrating into dashboards, or building apps that sync with user presence.
Example Integration (JavaScript)
fetch('https://github.com/Phineas/lanyard')
.then(res => res.json())
.then(data => console.log(data))
.catch(err => console.error(err)); Key Features
- RESTful API
- WebSocket Support
- JSON Responses
- Real-time Presence Updates
- No Auth Required
Frequently Asked Questions
? Is Lanyard free to use?
Yes, Lanyard is completely free for personal and non-commercial use.
? Does it require an API Key?
No, Lanyard does not require an API key for accessing its interfaces.
? What is the response format?
All responses are in JSON format, including user status, activity details, device info, and timestamps.
Top Alternatives
People Also Ask about Lanyard
Tool Info
Pros
- ⊕ Easy to integrate
- ⊕ Real-time updates via WebSocket
- ⊕ No API key needed
- ⊕ Open-source project
Cons
- ⊖ Requires user to join a Lanyard-enabled Discord server
- ⊖ No official SLA
- ⊖ Potential rate limits for REST requests