thesportsdb-client
    Preparing search index...

    Interface V1Tv

    TV listings. Free keys: 1 per call.

    interface V1Tv {
        channel(name: string): Promise<TvListing[]>;
        channelId(channelId: number): Promise<TvListing[]>;
        day(
            date: Day,
            options?: { country?: string; sport?: string },
        ): Promise<TvListing[]>;
    }
    Index
    • eventstv.php?id=: by channel id (TvListing.channelId), not event id.

      Parameters

      • channelId: number

      Returns Promise<TvListing[]>

    • eventstv.php?d=: listings for a day, optionally a sport, or a country and sport. The API returns an empty body for a country without a sport, so that is rejected here.

      Parameters

      • date: Day
      • options: { country?: string; sport?: string } = {}

      Returns Promise<TvListing[]>