torii-gateAnime

The ctx.anime API provides methods to interact with the anime system in Seanime.

Core Methods

getAnimeEntry

Gets a an anime entry, using the cache if available.

Parameters:

  • mediaId: Number - The AniList media ID

Example:

const animeEntry = await ctx.anime.getAnimeEntry(21)

getAnimeMetadata

Gets raw anime metadata from the metadata provider

Parameters:

  • from : "anilist" | "mal" | "kitsu" | "anidb"

  • mediaId: Number - The media ID

Example:

const metadata = await ctx.anime.getAnimeMetadata("anilist", 21)

clearEpisodeMetadataCache

Empties the episode metadata cache

Last updated