Skip to content

SearchCharacter

Bartłomiej Buchała edited this page Dec 7, 2018 · 1 revision

SearchCharacter

Returns list of results related to search. This method parses item data by query from https://myanimelist.net/character.php. Returned list is paged with page size equal 50 character entries.

Parameters

SearchCharacter(String query)

Type Name Summary
String query Search query.

SearchCharacter(String query, Int32 page)

Type Name Summary
String query Search query.
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.)

Usage

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

// Send request to search character with "spiegel" key word
CharacterSearchResult characterSearchResult = await jikan.SearchCharacter("spiegel");

// Print name of the first result
// Output -> "Spike Spiegel"
Console.WriteLine(characterSearchResult.Results.First().Name);

// Send request to search character with "edward" key word, second page (positions 51-100)
characterSearchResult = await jikan.SearchCharacter("edward", 2);

CharacterSearchResult ResultProperties

SearchCharacter request return an CharacterSearchResult object. Schema:

Type Name Summary
Nullable<Int32> ResultLastPage Index of the last page.
ICollection<CharacterSearchEntry> Results List of search results.

Results is a collection of CharacterSearchEntry objects. Schema:

Type Name Summary
ICollection<String> AlternativeNames Nicknames/alternative names of the character separated by comma.
ICollection<MALSubItem> Animeography Character's animeography (without anime type).
String ImageURL Character's image URL
Int64 MalId ID associated with MyAnimeList.
ICollection<MALSubItem> Mangaography Character's mangaography (without anime type).
String Name Name of the character.
String URL URL to character'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