KICKOFFAPI / TELEGRAM FOOTBALL BOT API

Telegram football bots,
on the wire.

Push instant goal notifications to channels, power fast slash command replies, and stream live scores without breaking a sweat. Built for Telegram, Discord, and messaging bot creators.

CODE EXAMPLE

Build a Telegram football bot in 10 lines

Handle Telegram commands and forward live scores directly to users with zero parsing hassle:

import { Bot } from 'grammy';

const bot = new Bot(process.env.TELEGRAM_BOT_TOKEN);

// Command: /live - Return all live football matches
bot.command('live', async (ctx) => {
  const res = await fetch('https://api.kickoffapi.com/api/v1/fixtures?live=all', {
    headers: { 'x-api-key': process.env.KICKOFF_API_KEY }
  });
  const data = await res.json();
  
  if (!data.results) return ctx.reply('No matches currently in-play.');

  const text = data.response
    .map(m => `⚽ ${m.homeTeam.name} ${m.goalsHome} - ${m.goalsAway} ${m.awayTeam.name} (${m.elapsed}')`)
    .join('\n');

  await ctx.reply(`*Live Scores:*\n${text}`, { parse_mode: 'Markdown' });
});

bot.start();

Want automatic alerts pushed to your channels when a goal is scored? Use KickoffAPI Webhooks to receive JSON events in real-time. Check out the API documentation.

BOT ARCHITECTURE

Slash commands to API mapping

Telegram Bot CommandKickoffAPI EndpointAverage Latency
/live/fixtures?live=all15 ms
/table <league>/standings?league=...&season=202620 ms
/fixtures <team>/fixtures?team=...&next=525 ms
/h2h <teamA> <teamB>/fixtures/headtohead?h2h=...30 ms
FAQ

Frequently asked questions

Can I push live goal alerts to Telegram channels?

Yes. With KickoffAPI Webhooks and Server-Sent Events (SSE), your bot receives instant event payloads for goals, red cards, penalties, and full-time scores without constantly polling the API.

How quickly does the API answer bot slash commands?

Global CDN edge caching delivers live scores, standings, and fixture responses in 10 to 40 ms, ensuring instant replies to user commands like /scores, /table, or /next.

Which messaging platforms are supported?

KickoffAPI outputs pure, standard JSON and HTTPS webhooks compatible with Telegram Bot API, Discord Bots, Slack Apps, WhatsApp Business API, and matrix bridges.

What are the rate limits for bot developers?

The free Hobby tier provides 100 requests per day for development. Paid plans start at $9/month with 2,000 daily requests and scale up to 100,000/day on Ultra with webhook support.

Launch your football bot today

100 free requests every day. Seamless scaling for servers with millions of sports fans.