Lanyard

API

Retrieve Discord presence via REST API or WebSocket

Visit Website

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)

script.js JS

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

Discord Official API Search Google

People Also Ask about Lanyard

Lanyard vs Discord Official API Lanyard 2025 review

Tool Info

Pricing Free
Category Social
Platform Public API

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

More Social Tools