MediaVariables is an interface representing the variables for the MediaQuery. It includes optional parameters for querying media data.

interface MediaVariables {
    asHtml?: boolean;
    averageScore?: number;
    averageScore_greater?: number;
    averageScore_lesser?: number;
    averageScore_not?: number;
    chapters?: number;
    chapters_greater?: number;
    chapters_lesser?: number;
    countryOfOrigin?: string;
    duration?: number;
    duration_greater?: number;
    duration_lesser?: number;
    endDate?: FuzzyDateInput;
    endDate_greater?: number;
    endDate_lesser?: number;
    endDate_like?: string;
    episodes?: number;
    episodes_greater?: number;
    episodes_lesser?: number;
    format?: MediaFormat;
    format_in?: MediaFormat[];
    format_not?: MediaFormat;
    format_not_in?: MediaFormat[];
    genre?: string;
    genre_in?: string[];
    genre_not_in?: string[];
    id?: number;
    idMal?: number;
    idMal_in?: number[];
    idMal_not?: number;
    idMal_not_in?: number[];
    id_in?: number[];
    id_not?: number;
    id_not_in?: number[];
    isAdult?: boolean;
    isLicensed?: boolean;
    licensedBy?: string;
    licensedById?: number;
    licensedById_in?: number[];
    licensedBy_in?: string[];
    minimumTagRank?: number;
    onList?: boolean;
    popularity?: number;
    popularity_greater?: number;
    popularity_lesser?: number;
    popularity_not?: number;
    search?: string;
    season?: MediaSeason;
    seasonYear?: number;
    sort?: MediaSort[];
    source?: MediaSource;
    source_in?: MediaSource[];
    startDate?: FuzzyDateInput;
    startDate_greater?: number;
    startDate_lesser?: number;
    startDate_like?: string;
    status?: MediaStatus;
    status_in?: MediaStatus[];
    status_not?: MediaStatus;
    status_not_in?: MediaStatus[];
    tag?: string;
    tagCategory?: string;
    tagCategory_in?: string[];
    tagCategory_not_in?: string[];
    tag_in?: string[];
    tag_not_in?: string[];
    type?: MediaType;
    volumes?: number;
    volumes_greater?: number;
    volumes_lesser?: number;
}

Properties

asHtml?: boolean

asHtml is a boolean representing whether the media should be returned as HTML.

averageScore?: number

averageScore is a number representing the average score of the media.

averageScore_greater?: number

averageScore_greater is a number representing the average score of the media that should be greater.

averageScore_lesser?: number

averageScore_lesser is a number representing the average score of the media that should be lesser.

averageScore_not?: number

averageScore_not is a number representing the average score of the media that should not be included.

chapters?: number

chapters is a number representing the number of chapters of the media.

chapters_greater?: number

chapters_greater is a number representing the number of chapters of the media that should be greater.

chapters_lesser?: number

chapters_lesser is a number representing the number of chapters of the media that should be lesser.

countryOfOrigin?: string

countryOfOrigin is a string representing the country of origin of the media.

duration?: number

duration is a number representing the duration of the media.

duration_greater?: number

duration_greater is a number representing the duration of the media that should be greater.

duration_lesser?: number

duration_lesser is a number representing the duration of the media that should be lesser.

endDate?: FuzzyDateInput

endDate is a number representing the end date of the media.

endDate_greater?: number

endDate_greater is a number representing the end date of the media that should be greater.

endDate_lesser?: number

endDate_lesser is a number representing the end date of the media that should be lesser.

endDate_like?: string

endDate_like is a string representing the end date of the media that should be like.

episodes?: number

episodes is a number representing the number of episodes of the media.

episodes_greater?: number

episodes_greater is a number representing the number of episodes of the media that should be greater.

episodes_lesser?: number

episodes_lesser is a number representing the number of episodes of the media that should be lesser.

format?: MediaFormat

format is a string representing the format of the media.

format_in?: MediaFormat[]

format_in is an array of strings representing the formats of the media that should be included.

format_not?: MediaFormat

format_not is a string representing the format of the media that should not be included.

format_not_in?: MediaFormat[]

format_not_in is an array of strings representing the formats of the media that should not be included.

genre?: string

genre is a string representing the genre of the media.

genre_in?: string[]

genre_in is an array of strings representing the genres of the media that should be included.

genre_not_in?: string[]

genre_not_in is an array of strings representing the genres of the media that should not be included.

id?: number

id is a number representing the id of the media.

idMal?: number

idMal is a number representing the MyAnimeList id of the media.

idMal_in?: number[]

idMal_in is an array of numbers representing the MyAnimeList ids of the media that should be included.

idMal_not?: number

idMal_not is a number representing the MyAnimeList id of the media that should not be included.

idMal_not_in?: number[]

idMal_not_in is an array of numbers representing the MyAnimeList ids of the media that should not be included.

id_in?: number[]

id_in is an array of numbers representing the ids of the media that should be included.

id_not?: number

id_not is a number representing the id of the media that should not be included.

id_not_in?: number[]

id_not_in is an array of numbers representing the ids of the media that should not be included.

isAdult?: boolean

isAdult is a boolean representing whether the media is for adults.

isLicensed?: boolean

isLicensed is a boolean representing whether the media is licensed.

licensedBy?: string

licensedBy is a string representing who licensed the media.

licensedById?: number

licensedById is a number representing the id of who licensed the media.

licensedById_in?: number[]

licensedById_in is an array of numbers representing the ids of who licensed the media that should be included.

licensedBy_in?: string[]

licensedBy_in is an array of strings representing who licensed the media that should be included.

minimumTagRank?: number

minimumTagRank is a number representing the minimum tag rank of the media.

onList?: boolean

onList is a boolean representing whether the media is on the list.

popularity?: number

popularity is a number representing the popularity of the media.

popularity_greater?: number

popularity_greater is a number representing the popularity of the media that should be greater.

popularity_lesser?: number

popularity_lesser is a number representing the popularity of the media that should be lesser.

popularity_not?: number

popularity_not is a number representing the popularity of the media that should not be included.

search?: string

search is a string representing the search query for the media.

season?: MediaSeason

season is a string representing the season of the media.

seasonYear?: number

seasonYear is a number representing the year of the season of the media.

sort?: MediaSort[]

sort is an array of strings representing the sorting of the media.

source?: MediaSource

source is a string representing the source of the media.

source_in?: MediaSource[]

source_in is an array of strings representing the sources of the media that should be included.

startDate?: FuzzyDateInput

startDate is a number representing the start date of the media.

startDate_greater?: number

startDate_greater is a number representing the start date of the media that should be greater.

startDate_lesser?: number

startDate_lesser is a number representing the start date of the media that should be lesser.

startDate_like?: string

startDate_like is a string representing the start date of the media that should be like.

status?: MediaStatus

status is a string representing the status of the media.

status_in?: MediaStatus[]

status_in is an array of strings representing the statuses of the media that should be included.

status_not?: MediaStatus

status_not is a string representing the status of the media that should not be included.

status_not_in?: MediaStatus[]

status_not_in is an array of strings representing the statuses of the media that should not be included.

tag?: string

tag is a string representing the tag of the media.

tagCategory?: string

tagCategory is a string representing the category of the tag of the media.

tagCategory_in?: string[]

tagCategory_in is an array of strings representing the categories of the tags of the media that should be included.

tagCategory_not_in?: string[]

tagCategory_not_in is an array of strings representing the categories of the tags of the media that should not be included.

tag_in?: string[]

tag_in is an array of strings representing the tags of the media that should be included.

tag_not_in?: string[]

tag_not_in is an array of strings representing the tags of the media that should not be included.

type?: MediaType

type is a string representing the type of the media. It can be either 'ANIME' or 'MANGA'.

volumes?: number

volumes is a number representing the number of volumes of the media.

volumes_greater?: number

volumes_greater is a number representing the number of volumes of the media that should be greater.

volumes_lesser?: number

volumes_lesser is a number representing the number of volumes of the media that should be lesser.