thesportsdb-client
    Preparing search index...

    Interface V2Search

    search/...: up to about 10 results, summary fields only. Ids arrive as JSON numbers here.

    interface V2Search {
        events(name: string): Promise<Event[]>;
        leagues(name: string): Promise<League[]>;
        players(name: string): Promise<Player[]>;
        teams(name: string): Promise<Team[]>;
        venues(name: string): Promise<Venue[]>;
    }
    Index
    • Needs the exact stored event name; a loose "Arsenal vs Chelsea" finds nothing.

      Parameters

      • name: string

      Returns Promise<Event[]>