thesportsdb-client
    Preparing search index...

    Interface EventStat

    One team statistic for an event, home vs away (lookupeventstats.php, lookup/event_stats).

    interface EventStat {
        apiFootballId: number | null;
        away: number | null;
        event: string | null;
        eventId: number | null;
        home: number | null;
        id: number | null;
        kind: "EventStat";
        name: string | null;
        raw: RawRecord;
    }

    Hierarchy (View Summary)

    Index
    apiFootballId: number | null

    idApiFootball (note the different capitalisation in the API)

    away: number | null

    intAway

    event: string | null

    strEvent

    eventId: number | null

    idEvent

    home: number | null

    intHome

    id: number | null

    idStatistic

    kind: "EventStat"
    name: string | null

    strStat, e.g. Shots on Goal, Ball Possession

    raw: RawRecord

    Every field as the API sent it (blank strings as null). Use it for unmodelled fields: team.raw["strKeywords"].