Use case

Build a live score app

Every live match of 20 sports in one call, the match details your users tap into — events, lineups, statistics — and every change pushed the moment it happens.

The build, step by step

  1. The live board

    All live matches, or one sport's, with score, status and the running clock.

    GET /v2/livescores
  2. The match screen

    Goals, cards and substitutions of the match the user opened, then its lineups and statistics.

    GET /v2/fixtures/{id}/events
  3. Live without polling

    Subscribe once; every score, status and clock change arrives as a delta (Business).

    subscribe livescores

A live board in ten lines

The SDK's stream keeps the merged state for you — reconnects, replay and deltas included.

TypeScript
import { SportsAPI } from 'sportsapi';

const client = new SportsAPI({ apiKey: process.env.SPORTSAPI_API_KEY });

// first paint
const { data } = await client.livescores.list({ sport: 'football' });
render(data);

// then every change (Business)
const stream = client.stream(['sport:football']);
stream.on('delta', () => render(stream.fixtures('sport:football')));
Which plan

Start on Free to build it; an app that polls fits Starter or Pro, a pushed live layer needs Business.

Compare plans