Skip to content
This repository has been archived by the owner on Dec 2, 2022. It is now read-only.

GetAnimeList

Marco Dal Zovo edited this page Jul 23, 2021 · 4 revisions

Returns a list of Anime objects filtered.

Parameters

Name Type Summary
filter AnimeFilter The request's filter

AnimeFilter

Name Type Optional Summary
Title String Yes The anime's title to search
AnilistId Int64 Yes The anime's anilist id to search
MyAnimeListId Int64 Yes The anime's mal id to search
Formats AnimeFormatEnum[] Yes The anime's formats to search
Status AnimeStatusEnum Yes The anime's status to search
Year Int32 Yes The anime's release year to search
Season AnimeSeasonEnum Yes The anime's release season to search
Genres String[] Yes The anime's genres to search

Usage

AnimeFilter filter = new AnimeFilter()
{
  Title = "Cowboy Bebop",
  AnilistId = 1,
  MyAnimeListId = 1,
  Formats = new AnimeFormatEnum[2]
  {
    AnimeFormatEnum.TV,
    AnimeFormatEnum.TV_SHORT
  },
  Status = AnimeStatusEnum.FINISHED,
  Year = 1998,
  Season = AnimeSeasonEnum.SPRING,
  Genres = new string[3]
  {
    "Action",
    "Guns",
    "Military"
  },
  Sort = new Dictionary<string, SortDirectionEnum>()
  {
    { "titles.en", SortDirectionEnum.DESCENDING }
  }
};

var result = await AniAPI.Instance.GetAnimeList(filter);
Clone this wiki locally