thesportsdb-client
    Preparing search index...

    Interface Team

    A team. Search and list endpoints fill only some fields (v2 list/teams has no alternate names, for example); a lookup by id fills them all.

    interface Team {
        alternateNames: readonly string[];
        apiFootballId: number | null;
        badge: string | null;
        banner: string | null;
        colours: readonly string[];
        country: string | null;
        description: string | null;
        descriptions: Readonly<Record<string, string>>;
        division: string | null;
        equipment: string | null;
        espnId: string | null;
        fanart: readonly string[];
        formedYear: number | null;
        gender: string | null;
        id: number | null;
        isLocked: boolean | null;
        keywords: readonly string[];
        kind: "Team";
        league: string | null;
        leagueId: number | null;
        leagues: readonly LeagueRef[];
        location: string | null;
        logo: string | null;
        loved: number | null;
        name: string | null;
        raw: RawRecord;
        shortName: string | null;
        socials: Socials;
        sport: string | null;
        stadium: string | null;
        venueId: number | null;
    }

    Hierarchy (View Summary)

    Index
    alternateNames: readonly string[]

    strTeamAlternate, split on commas

    apiFootballId: number | null

    idAPIfootball

    badge: string | null

    strBadge

    banner: string | null

    strBanner

    colours: readonly string[]

    strColour1..strColour3, hex like #EF0107

    country: string | null

    strCountry

    description: string | null

    The English description.

    descriptions: Readonly<Record<string, string>>

    strDescriptionEN, strDescriptionDE, ... keyed by language code

    division: string | null

    strDivision

    equipment: string | null

    strEquipment: the current kit image

    espnId: string | null

    idESPN

    fanart: readonly string[]

    strFanart1..strFanart4

    formedYear: number | null

    intFormedYear

    gender: string | null

    strGender

    id: number | null

    idTeam

    isLocked: boolean | null

    strLocked

    keywords: readonly string[]

    strKeywords, split on commas (nicknames)

    kind: "Team"
    league: string | null

    strLeague

    leagueId: number | null

    idLeague/strLeague: the main league

    leagues: readonly LeagueRef[]

    Every league and cup the team is entered in: idLeague..idLeague7 with their names

    location: string | null

    strLocation

    logo: string | null

    strLogo

    loved: number | null

    intLoved

    name: string | null

    strTeam

    raw: RawRecord

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

    shortName: string | null

    strTeamShort, e.g. ARS

    socials: Socials
    sport: string | null

    strSport

    stadium: string | null

    strStadium

    venueId: number | null

    idVenue