JSONAPIXtreamChannel: {
    type: "channel";
    id: string;
    attributes: {
        name: string;
        epgId: string;
        number: number;
        tvArchive: boolean;
        tvArchiveDuration: number;
        logo: string;
        createdAt: Date;
        url?: string;
    };
    relationships?: {
        categories?: { data: { type: "channel-category"; id: string }[] };
    };
}

JSON:API Xtream channel information

This type represents a live TV channel in the Xtream system in JSON:API format

Type declaration

  • type: "channel"

    The resource type (channel)

  • id: string

    The unique identifier for the channel

  • attributes: {
        name: string;
        epgId: string;
        number: number;
        tvArchive: boolean;
        tvArchiveDuration: number;
        logo: string;
        createdAt: Date;
        url?: string;
    }

    The channel attributes

    • name: string

      The name of the channel

    • epgId: string

      The Electronic Program Guide channel ID

    • number: number

      The position/order number of the channel

    • tvArchive: boolean

      Flag indicating if TV archive is available

    • tvArchiveDuration: number

      The duration of available archive in days

    • logo: string

      The URL for the channel's logo

    • createdAt: Date

      The date when the channel was added to the system

    • Optionalurl?: string

      URL to access the stream

  • Optionalrelationships?: { categories?: { data: { type: "channel-category"; id: string }[] } }

    The channel relationships

    • Optionalcategories?: { data: { type: "channel-category"; id: string }[] }

      The categories relationship if applicable