Skip to content

GetUserAnimeList

Bartłomiej Buchała edited this page Dec 11, 2018 · 3 revisions

GetUserAnimeList

Returns entries on user's anime list. This method parses item data by username from https://myanimelist.net/animelist/{username}. Returned list is paged with page size equal 300 anime entries.

Parameters

GetUserAnimeList(String username)

Type Name Summary
String username Username.

GetUserAnimeList(String username, Int32 page)

Type Name Summary
String username Username.
Int32 page Index of page folding 300 records of top ranging (e.g. 1 will return first 300 records, 2 will return record from 301 to 600 etc.)

GetUserAnimeList(String username, UserAnimeListExtension filter)

Type Name Summary
String username Username.
UserAnimeListExtension filter Option to filter list.

GetUserAnimeList(String username, Int32 page, UserAnimeListExtension filter)

Type Name Summary
String username Username.
Int32 page Index of page folding 300 records of top ranging (e.g. 1 will return first 300 records, 2 will return record from 301 to 600 etc.)
UserAnimeListExtension filter Option to filter list.

Filtering

By default GetUserAnimeList returns information about all anime entries. It is possible to filter returned entries using overload method with UserAnimeListExtension enum. List of possible values:

Value Name Summary
0 All Basic extension, parse data for all entries.
1 Watching Watching extension, parses only anime with watching status.
2 Completed Completed extension, parses only anime with completed status.
3 OnHold On hold extension, parses only anime with on hold status.
4 Dropped Dropped extension, parses only anime with dropped status.
5 PlanToWatch Plan to watch extension, parses only anime with plan to watch status.

Usage

// Initialize JikanWrapper
IJikan jikan = new Jikan(true);

// Send request for anime list of user with "Ervelan" username (first 300 entries)
UserAnimeList animeList = await jikan.GetUserAnimeList("Ervelan");

// Print first 300 anime on requested list wiht scores assigned by user.
foreach (var anime in animeList.Anime)
{
	Console.WriteLine("Title: " + anime.Title + ", " + anime.Score);
}

// Send request for anime list of user with "Ervelan" username (entries from position 301 to 600).
animeList = await jikan.GetUserAnimeList("Ervelan", 2);

// Send request for anime list of user with "Ervelan" username (dropped anime only).
animeList = await jikan.GetUserAnimeList("Ervelan", UserAnimeListExtension.Dropped);

// Send request for anime list of user with "Ervelan" username (completed anime only, from position 301 to 600).
animeList = await jikan.GetUserAnimeList("Ervelan", UserAnimeListExtension.Completed, 2);

UserAnimeList Properties

GetUserAnimeList request return an UserAnimeList object. Schema:

Type Name Summary
ICollection<AnimeListEntry> Anime Collection of user's anime on their anime list.

Anime is a collection of AnimeListEntry objects. For schema for latter, check it's page.

General information

Home Page

Getting started

Using own instance of Jikan

Migrating to version 2.0

Rate limiting

Winforms issue

Methods

Anime

Characters

Club

Manga

People

Rankings

Season

Search

Users

Other

Jikan Metadata

Class Schema

Main Classes

Secondary Classes

Search related classes

Enumerations Schema

Clone this wiki locally