Skip to content

GetAnimeTop

Bartłomiej Buchała edited this page Sep 11, 2019 · 2 revisions

GetAnimeTop

Returns list of top anime. This method parses item data by ID from https://myanimelist.net/topanime.php

Parameters

GetAnimeTop()

No parameters.

GetAnimeTop(Int32 page )

Type Name Summary
Int32 page Index of page folding 50 records of top ranging (e.g. 1 will return first 50 records, 2 will return record from 51 to 100 etc.)

GetAnimeTop(TopAnimeExtension extension)

Type Name Summary
TopAnimeExtension extension Extension for specific type of ranking.

GetAnimeTop(Int32 page, TopAnimeExtension extension)

Type Name Summary
Int32 page Index of page folding 50 records of top ranging (e.g. 1 will return first 50 records, 2 will return record from 51 to 100 etc.)
TopAnimeExtension extension Extension for specific type of ranking.

Selecting ranking type

By default, method return list of anime with highest ranking. User can change requested list type by specifying extension parameter of TopAnimeExtension enum type. List of possible values:

Value Name Summary
0 None Basic extension for top anime
1 TopAiring Top airing anime.
2 TopUpcoming Top upcoming anime.
3 TopTV Top TV anime series.
4 TopMovies Top movie anime.
5 TopOva Top OVAs.
6 TopSpecial Top anime specials.
7 TopPopularity Top anime by popularity.
8 TopFavorite Top anime by favoritism.

Usage

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

// Send request for anime ranking (highest rating).
AnimeTop topAnimeList = await jikan.GetAnimeTop();

// Print title of each anime in the top 50
foreach (var listEntry in topAnimeList.Top)
{
	Console.WriteLine(listEntry.Title);
}

// Send request for second page (positions 51-100) of anime with highest ratings.
topAnimeList = await jikan.GetAnimeTop(2);

// Send request for anime with highest ratings currently airing.
topAnimeList = await jikan.GetAnimeTop(TopAnimeExtension.TopAiring);

// Send request for second page of most popular anime.
topAnimeList = await jikan.GetAnimeTop(2, TopAnimeExtension.TopPopularity);

AnimeTop Properties

GetAnimeTop request return an AnimeTop object. Schema:

Type Name Summary
ICollection<AnimeTopEntry> Top Collection of anime entries on top list.

Each of properties is a collection of AnimeTopEntry, which type for anime entry used in rankings. Check schema page for more details.

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