Web API & widget
Your Discord server, live on your website
Members, online count, events, leaderboard, team and news. As a ready-made widget with one line of code, or as a JSON API to build everything in your own design.
- 1Paste code
- 2Request with key
- 3Vanguard reads Discord
- 4Live on your site
The ready-made widget
Click blocks, pick a colour, copy the code, paste it into your page. Works in every site builder that allows HTML: WordPress, Wix, Jimdo, Squarespace, Carrd, your own pages. The widget adapts to light/dark, loads only when visible and refreshes every minute.
- One line of HTML, no server needed
- Own scope (Shadow DOM): doesn’t clash with your CSS
- German and English, accessible, no cookies
The JSON API
Fetch the data yourself and build it into your own look: home page, team page, event calendar, stats dashboard, Discord counter in the header. It’s a read-only REST API with CORS enabled for the browser.
-
GET https://vanguard.luna-interactive.de/v1/stats - Public keys for the browser, secret ones for your server
- Examples for JavaScript, React, PHP, Node, Python, WordPress
Live in three steps
- 1
Create a key
In the dashboard under Management → Web API & widget. Add your domain so the key only works on your site.
- 2
Share
You decide what the website may see: events, giveaways, news, leaderboard, team. Vanguard never hands out content from channels not everyone can see.
- 3
Paste
Widget code or your own code on your page. Data is at most 30 seconds old.
Try the builder
With example data of a made-up server. In the dashboard you get the same preview with your real data.
Keys & security
Public key vg_pk_…
For websites and the widget. It can only read and is bound to the domains you add in the dashboard (also *.example.com). Send as X-Vanguard-Key or ?key=.
Secret key vg_sk_…
For your server, e.g. when you cache the data yourself. Shown only once. Only as Authorization: Bearer …. Vanguard rejects it from a browser or inside a URL, so it can’t leak by accident.
Privacy
Names and avatars are only included if the server team shares the leaderboard or team list. Every member can opt out in the Data-Center (or with /mydata), and won’t appear on any website.
API reference
Base URL https://vanguard.luna-interactive.de/v1 · Responses as JSON: { "ok": true, "data": …, "meta": … } · /v1/stats is free, everything else is part of Vanguard Premium.
GET/v1/stats
Server stats
Free
Name, icon, banner and invite, members, online count, voice, boosts and activity of the last 7 days. Free.
Fields
server.name / icon / banner / description | string|null | Server basics. Images as Discord CDN links. | |
server.invite | string|null | Invite link from the dashboard or vanity URL. | |
members.total / online / in_voice | number | Members total, online now (approx., from Discord), in voice now. | |
boosts.count / tier | number | Server boosts and boost tier 0–3. | |
activity.* | number | Messages today and 7 days, joins/leaves 7 days, voice minutes 7 days. | |
Example response
{
"ok": true,
"data": {
"server": {
"id": "1187654321098765432",
"name": "Glowing Forest",
"description": "Cozy gaming community with events every week.",
"icon": null,
"banner": null,
"created_at": "2023-03-14T19:22:05.000Z",
"invite": "https://discord.gg/glowingforest"
},
"members": {
"total": 2481,
"online": 612,
"in_voice": 23
},
"boosts": {
"count": 14,
"tier": 2
},
"channels": {
"text": 31,
"voice": 9
},
"activity": {
"messages_today": 1840,
"messages_7d": 12711,
"joins_7d": 29,
"leaves_7d": 11,
"voice_minutes_7d": 9354
}
},
"meta": {
"endpoint": "stats",
"cached": false,
"generated_at": "2026-10-24T18:00:00.000Z"
}
}
GET/v1/growth
Growth
PRO
Daily values for charts: members, joins, leaves, messages and voice minutes.
Parameters
days | 7–365 | Default 30 | Range in days |
Fields
series[].date | YYYY-MM-DD | Day (Europe/Berlin time zone). | |
series[].members | number|null | Member count at the end of the day. | |
series[].joins / leaves / messages / voice_minutes | number | Daily values. | |
totals.* | number | Sums over the range. | |
Example response
{
"ok": true,
"data": {
"days": 30,
"series": [
{
"date": "2026-09-25",
"members": 2379,
"joins": 4,
"leaves": 1,
"messages": 1600,
"voice_minutes": 900
},
{
"date": "2026-09-26",
"members": 2384,
"joins": 5,
"leaves": 2,
"messages": 1937,
"voice_minutes": 1111
},
{
"date": "2026-09-27",
"members": 2389,
"joins": 6,
"leaves": 3,
"messages": 2274,
"voice_minutes": 1322
},
{
"date": "2026-09-28",
"members": 2393,
"joins": 7,
"leaves": 1,
"messages": 2611,
"voice_minutes": 1533
},
{
"date": "2026-09-29",
"members": 2397,
"joins": 8,
"leaves": 2,
"messages": 1848,
"voice_minutes": 1044
},
{
"date": "2026-09-30",
"members": 2399,
"joins": 4,
"leaves": 3,
"messages": 2185,
"voice_minutes": 1255
},
{
"date": "2026-10-01",
"members": 2401,
"joins": 5,
"leaves": 1,
"messages": 2522,
"voice_minutes": 1466
},
{
"date": "2026-10-02",
"members": 2403,
"joins": 6,
"leaves": 2,
"messages": 1759,
"voice_minutes": 977
},
{
"date": "2026-10-03",
"members": 2405,
"joins": 7,
"leaves": 3,
"messages": 2096,
"voice_minutes": 1188
},
{
"date": "2026-10-04",
"members": 2407,
"joins": 8,
"leaves": 1,
"messages": 2433,
"voice_minutes": 1399
},
{
"date": "2026-10-05",
"members": 2409,
"joins": 4,
"leaves": 2,
"messages": 1670,
"voice_minutes": 910
},
{
"date": "2026-10-06",
"members": 2412,
"joins": 5,
"leaves": 3,
"messages": 2007,
"voice_minutes": 1121
},
{
"date": "2026-10-07",
"members": 2416,
"joins": 6,
"leaves": 1,
"messages": 2344,
"voice_minutes": 1332
},
{
"date": "2026-10-08",
"members": 2421,
"joins": 7,
"leaves": 2,
"messages": 2681,
"voice_minutes": 1543
},
{
"date": "2026-10-09",
"members": 2426,
"joins": 8,
"leaves": 3,
"messages": 1918,
"voice_minutes": 1054
},
{
"date": "2026-10-10",
"members": 2431,
"joins": 4,
"leaves": 1,
"messages": 2255,
"voice_minutes": 1265
},
{
"date": "2026-10-11",
"members": 2436,
"joins": 5,
"leaves": 2,
"messages": 2592,
"voice_minutes": 1476
},
{
"date": "2026-10-12",
"members": 2440,
"joins": 6,
"leaves": 3,
"messages": 1829,
"voice_minutes": 987
},
{
"date": "2026-10-13",
"members": 2444,
"joins": 7,
"leaves": 1,
"messages": 2166,
"voice_minutes": 1198
},
{
"date": "2026-10-14",
"members": 2447,
"joins": 8,
"leaves": 2,
"messages": 2503,
"voice_minutes": 1409
},
{
"date": "2026-10-15",
"members": 2450,
"joins": 4,
"leaves": 3,
"messages": 1740,
"voice_minutes": 920
},
{
"date": "2026-10-16",
"members": 2452,
"joins": 5,
"leaves": 1,
"messages": 2077,
"voice_minutes": 1131
},
{
"date": "2026-10-17",
"members": 2453,
"joins": 6,
"leaves": 2,
"messages": 2414,
"voice_minutes": 1342
},
{
"date": "2026-10-18",
"members": 2455,
"joins": 7,
"leaves": 3,
"messages": 1651,
"voice_minutes": 1553
},
{
"date": "2026-10-19",
"members": 2457,
"joins": 8,
"leaves": 1,
"messages": 1988,
"voice_minutes": 1064
},
{
"date": "2026-10-20",
"members": 2460,
"joins": 4,
"leaves": 2,
"messages": 2325,
"voice_minutes": 1275
},
{
"date": "2026-10-21",
"members": 2464,
"joins": 5,
"leaves": 3,
"messages": 2662,
"voice_minutes": 1486
},
{
"date": "2026-10-22",
"members": 2468,
"joins": 6,
"leaves": 1,
"messages": 1899,
"voice_minutes": 997
},
{
"date": "2026-10-23",
"members": 2473,
"joins": 7,
"leaves": 2,
"messages": 2236,
"voice_minutes": 1208
},
{
"date": "2026-10-24",
"members": 2478,
"joins": 8,
"leaves": 3,
"messages": 2573,
"voice_minutes": 1419
}
],
"totals": {
"joins": 178,
"leaves": 76,
"messages": 64818,
"voice_minutes": 38211
}
},
"meta": {
"endpoint": "growth",
"cached": false,
"generated_at": "2026-10-24T18:00:00.000Z"
}
}
GET/v1/leaderboard
Leaderboard
PRO
The level ranking with name, avatar, level and progress. Must be shared by the team. Members who opted out are left out.
Parameters
limit | 1–50 | Default 10 | Number of places |
Fields
entries[].rank | number | Rank on the server (gaps possible after opt-outs). | |
entries[].user.id / name / avatar | string | Discord ID, display name on the server, avatar link. | |
entries[].level / xp | number | Level and total XP. | |
entries[].progress.current / needed / percent | number | Progress to the next level. | |
Example response
{
"ok": true,
"data": {
"entries": [
{
"rank": 1,
"user": {
"id": "1187000000000000000",
"name": "Mira",
"avatar": "/dimg/embed/avatars/0.png"
},
"level": 25,
"xp": 61250,
"progress": {
"current": 2760,
"needed": 3000,
"percent": 92
},
"messages": 4200,
"voice_minutes": 3100
},
{
"rank": 2,
"user": {
"id": "1187000000000000001",
"name": "Kai",
"avatar": "/dimg/embed/avatars/1.png"
},
"level": 24,
"xp": 55120,
"progress": {
"current": 1440,
"needed": 3000,
"percent": 48
},
"messages": 3600,
"voice_minutes": 2680
},
{
"rank": 3,
"user": {
"id": "1187000000000000002",
"name": "Lena",
"avatar": "/dimg/embed/avatars/2.png"
},
"level": 22,
"xp": 46300,
"progress": {
"current": 930,
"needed": 3000,
"percent": 31
},
"messages": 3000,
"voice_minutes": 2260
},
{
"rank": 4,
"user": {
"id": "1187000000000000003",
"name": "Nightowl",
"avatar": "/dimg/embed/avatars/3.png"
},
"level": 19,
"xp": 33910,
"progress": {
"current": 1200,
"needed": 3000,
"percent": 40
},
"messages": 2400,
"voice_minutes": 1840
},
{
"rank": 5,
"user": {
"id": "1187000000000000004",
"name": "Stardust",
"avatar": "/dimg/embed/avatars/4.png"
},
"level": 16,
"xp": 23550,
"progress": {
"current": 1890,
"needed": 3000,
"percent": 63
},
"messages": 1800,
"voice_minutes": 1420
}
]
},
"meta": {
"endpoint": "leaderboard",
"cached": false,
"generated_at": "2026-10-24T18:00:00.000Z"
}
}
GET/v1/events
Events
PRO
Running and planned events from the event planner, with cover image, sign-ups and XP bonus.
Parameters
limit | 1–25 | Default 5 | Number of events |
Fields
events[].name / emoji / description | string | What the event is. | |
events[].status | planned|running | Planned or running now. | |
events[].starts_at / ends_at | ISO 8601 | Times in UTC. | |
events[].cover | string|null | Cover image link. | |
events[].signup | object|null | count, max, open (only when sign-up is on). | |
events[].discord_event | string|null | Link to the Discord server event. | |
Example response
{
"ok": true,
"data": {
"events": [
{
"id": 41,
"name": "Double XP weekend",
"emoji": "⚡",
"status": "running",
"starts_at": "2026-10-23T18:00:00.000Z",
"ends_at": "2026-10-25T18:00:00.000Z",
"description": "Every message and every voice minute counts double.",
"cover": null,
"signup": null,
"xp_multiplier": 2,
"location": null,
"discord_event": null
},
{
"id": 42,
"name": "Movie night",
"emoji": "🍿",
"status": "planned",
"starts_at": "2026-10-31T19:00:00.000Z",
"ends_at": "2026-10-31T21:00:00.000Z",
"description": "Popcorn ready? We’re watching a movie together.",
"cover": null,
"signup": {
"count": 18,
"max": 30,
"open": true
},
"xp_multiplier": null,
"location": "🍿 Cinema",
"discord_event": "https://discord.com/events/1187654321098765432/1299999999999999999"
},
{
"id": 43,
"name": "Among Us tournament",
"emoji": "🚀",
"status": "planned",
"starts_at": "2026-11-05T18:00:00.000Z",
"ends_at": "2026-11-05T20:00:00.000Z",
"description": "",
"cover": null,
"signup": {
"count": 10,
"max": 10,
"open": false
},
"xp_multiplier": null,
"location": null,
"discord_event": null
}
]
},
"meta": {
"endpoint": "events",
"cached": false,
"generated_at": "2026-10-24T18:00:00.000Z"
}
}
GET/v1/giveaways
Giveaways
PRO
Running giveaways from public channels with prize, end, entries and link.
Parameters
limit | 1–25 | Default 5 | Number of giveaways |
Fields
giveaways[].prize / description | string | Prize and text. | |
giveaways[].ends_at | ISO 8601 | End (for a countdown). | |
giveaways[].entries / winners | number | Entries and number of winners. | |
giveaways[].url | string|null | Link to the message in Discord. | |
Example response
{
"ok": true,
"data": {
"giveaways": [
{
"id": 7,
"prize": "Discord Nitro (1 month)",
"description": "Good luck!",
"winners": 1,
"entries": 213,
"ends_at": "2026-10-26T23:00:00.000Z",
"required_role": null,
"url": "https://discord.com/channels/1187654321098765432/1187654321098765440/1299999999999999990"
}
]
},
"meta": {
"endpoint": "giveaways",
"cached": false,
"generated_at": "2026-10-24T18:00:00.000Z"
}
}
GET/v1/announcements
News
PRO
The latest announcements posted with the announcement planner, only from channels everyone can see.
Parameters
limit | 1–20 | Default 5 | Number of posts |
Fields
announcements[].title / text | string|null | Title and text with Discord markdown (**bold**, *italic*, links). Mentions are already turned into names. | |
announcements[].image / color | string|null | Image link and colour (#hex). | |
announcements[].posted_at | ISO 8601 | When posted. | |
announcements[].url | string|null | Link to the message in Discord. | |
Example response
{
"ok": true,
"data": {
"announcements": [
{
"id": 12,
"title": "🎃 Halloween tournament",
"text": "Our big gaming tournament starts on **October 31**! Sign up by Friday. Prizes: Nitro, roles and *eternal glory*.",
"image": null,
"color": "#f97316",
"posted_at": "2026-10-24T13:00:00.000Z",
"channel": "announcements",
"url": "https://discord.com/channels/1187654321098765432/1187654321098765441/1299999999999999991"
},
{
"id": 11,
"title": "New emotes",
"text": "20 new server emotes are live. Try them out!",
"image": null,
"color": "#22c55e",
"posted_at": "2026-10-22T18:00:00.000Z",
"channel": "announcements",
"url": null
}
]
},
"meta": {
"endpoint": "announcements",
"cached": false,
"generated_at": "2026-10-24T18:00:00.000Z"
}
}
GET/v1/team
Team
PRO
The team roles you choose, with their members. Each person only in their highest role, without bots and members who opted out.
Fields
roles[].name / color | string | Role name and colour. | |
roles[].members[].id / name / avatar | string | Discord ID, display name, avatar link. | |
Example response
{
"ok": true,
"data": {
"roles": [
{
"id": "1187654321098765450",
"name": "Admin",
"color": "#e74c3c",
"members": [
{
"id": "1187000000000000010",
"name": "Joshua",
"avatar": "/dimg/embed/avatars/1.png"
}
]
},
{
"id": "1187654321098765451",
"name": "Moderator",
"color": "#3498db",
"members": [
{
"id": "1187000000000000011",
"name": "Kai",
"avatar": "/dimg/embed/avatars/2.png"
},
{
"id": "1187000000000000012",
"name": "Mira",
"avatar": "/dimg/embed/avatars/3.png"
}
]
},
{
"id": "1187654321098765452",
"name": "Support",
"color": "#7c6cff",
"members": [
{
"id": "1187000000000000013",
"name": "Lena",
"avatar": "/dimg/embed/avatars/4.png"
}
]
}
]
},
"meta": {
"endpoint": "team",
"cached": false,
"generated_at": "2026-10-24T18:00:00.000Z"
}
}
GET/v1/boosters
Boosters
Free
Everyone currently boosting the server, longest first, with avatar (animated if the profile picture is a GIF) and boost duration. Free, must be shared by the team. Ready-made image: /v1/boosters.gif is the animated Hall of Boosters from the dashboard, embed it as <img src="…/v1/boosters.gif?key=vg_pk_…">.
Parameters
limit | 1–100 | Default 50 | Number of boosters |
Fields
boosts / tier | number | Server boosts and boost tier 0–3. | |
next_tier | object|null | Progress to the next tier (tier, needed, percent), null at tier 3. | |
total | number | Number of boosters in the list. Boosters hidden in the booster hall don’t count, those who opted out of website display do. | |
boosters[].rank | number | Place by boost duration (gaps possible after opt-outs). | |
boosters[].user.id / name / avatar | string | Discord ID, display name, avatar link (.gif for animated avatars). | |
boosters[].since / days / months | ISO 8601 / number | Since when and for how long. | |
boosters[].boosts | number | How many boosts the person gives (counted from boost messages). | |
boosters[].tier | object | id, name, color of the tier: Spark, Glow, Aurora or Legend (by duration or number of boosts). | |
boosters[].color | string|null | Card colour picked by the person. | |
goals[] | array | Boost goals of the server: label, kind, reward, reached, ready, needed, percent. | |
bound_boosts | number | Boosts spent on perks (server tag, role styles), not counted towards the level. | |
Example response
{
"ok": true,
"data": {
"boosts": 14,
"tier": 2,
"bound_boosts": 3,
"next_tier": {
"tier": 3,
"needed": 3,
"percent": 57.1
},
"goals": [
{
"label": "Level 3",
"kind": "level",
"reward": "Animated banner",
"reached": false,
"ready": false,
"needed": 3,
"percent": 82.4
}
],
"total": 4,
"boosters": [
{
"rank": 1,
"user": {
"id": "1187000000000000020",
"name": "Mira",
"avatar": "/dimg/embed/avatars/2.png"
},
"since": "2025-09-07T18:00:00.000Z",
"days": 412,
"months": 13,
"boosts": 2,
"tier": {
"id": "legend",
"name": "Legend",
"color": "#f5c542"
},
"color": null
},
{
"rank": 2,
"user": {
"id": "1187000000000000021",
"name": "Kai",
"avatar": "/dimg/embed/avatars/3.png"
},
"since": "2026-04-19T18:00:00.000Z",
"days": 188,
"months": 6,
"boosts": 1,
"tier": {
"id": "aurora",
"name": "Aurora",
"color": "#a78bfa"
},
"color": null
},
{
"rank": 3,
"user": {
"id": "1187000000000000022",
"name": "Nightowl",
"avatar": "/dimg/embed/avatars/4.png"
},
"since": "2026-08-24T18:00:00.000Z",
"days": 61,
"months": 2,
"boosts": 2,
"tier": {
"id": "glow",
"name": "Glow",
"color": "#7dd3fc"
},
"color": null
},
{
"rank": 4,
"user": {
"id": "1187000000000000023",
"name": "Lena",
"avatar": "/dimg/embed/avatars/5.png"
},
"since": "2026-10-15T18:00:00.000Z",
"days": 9,
"months": 0,
"boosts": 1,
"tier": {
"id": "spark",
"name": "Spark",
"color": "#f47fff"
},
"color": null
}
]
},
"meta": {
"endpoint": "boosters",
"cached": false,
"generated_at": "2026-10-24T18:00:00.000Z"
}
}Errors & limits
| Status | Code | Meaning |
|---|---|---|
401 | missing_key / invalid_key | No or invalid key. |
402 | premium_required | Endpoint is part of Premium. |
403 | not_shared | Not shared by the team in the dashboard. |
403 | origin_not_allowed | Website is not in the public key’s domain list. |
403 | secret_in_browser | Secret key used in the browser. |
429 | rate_limited | Too many requests, see Retry-After. |
Errors always come as { "ok": false, "error": { "code", "message", "docs" } }. Every response has the headers X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset.
How to start
Invite Vanguard, get a key in the dashboard and get going.