Today's LoL matches in Discord

Post today's pro card to a Discord channel with one REST call. Free 500 calls a month.

node webhook
const key = process.env.CITO_API_KEY;
const webhook = process.env.DISCORD_WEBHOOK_URL;

const res = await fetch("https://api.citoapi.com/api/v1/lol/schedule/today", {
  headers: { "x-api-key": key },
});
const json = await res.json();
const lines = (json.data || []).slice(0, 8).map((m) => {
  const a = m.team1?.name || "?";
  const b = m.team2?.name || "?";
  return `**${m.leagueName}** ${a} vs ${b}`;
});

await fetch(webhook, {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    content: lines.join("\n") || "No matches today.",
  }),
});
webhook body
{
  "content": "**LCK** kt Rolster vs HANJIN BRION\n**Hitpoint Masters** EXILE Esports vs BRUTE"
}

What data is returned

GET /schedule/today
Same endpoint as the Python page and /today
data[].team1.name
Corner names for the Discord line
leagueName
LCK, LEC, LPL, and other tracked leagues
DISCORD_WEBHOOK_URL
Channel webhook. No Discord bot token required for this sample
Rate limits
Free 500/month. A daily post fits. High-traffic bots need a paid plan

When to use this

  • Esports servers that want today's card in a channel
  • A first Cito integration before slash commands
  • Any product that already posts to Discord and needs team names, not HTML scrape

Full reference docs citoapi.com/docs/api/league-of-legends

Get your free LoL API key