Media

AniList. Media

Access AniList's media data.

Methods

anime(id) → {AnimeEntry}

Description:
  • Fetch an anime entry by its AniList ID.
Source:
Since:
  • 1.0.0
Parameters:
Name Type Description
id Number Required. The ID tied to the AniList entry.
Returns:
Type
AnimeEntry

(async) favouriteAnime(id) → {Boolean}

Description:
  • [Requires Login] Favourite/Unfavourite an anime
Source:
Since:
  • 1.12.0
Parameters:
Name Type Description
id Number Required. The ID tied to the AniList entry.
Returns:
Returns true if added, false otherwise.
Type
Boolean

(async) favouriteManga(id) → {Boolean}

Description:
  • [Requires Login] Favourite/Unfavourite a manga
Source:
Since:
  • 1.12.0
Parameters:
Name Type Description
id Number Required. The ID tied to the AniList entry.
Returns:
Returns true if added, false otherwise.
Type
Boolean

manga(id) → {MangaEntry}

Description:
  • Fetch a manga entry by its AniList ID.
Source:
Since:
  • 1.0.0
Parameters:
Name Type Description
id Number Required. The ID tied to the AniList entry.
Returns:
Type
MangaEntry