Skip to content

SearchPerson

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

SearchPerson

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

Parameters

SearchPerson(String query)

Type Name Summary
String query Search query.

SearchPerson(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 person with "sawashiro" key word
PersonSearchResult personSearchResult = await jikan.SearchPerson("sawashiro");

// Print name of the first result
// Output -> "Miyuki Sawashiro"
Console.WriteLine(personSearchResult.Results.First().Name);

// Send request to search person with "sawashiro" key word, second page (positions 51-100)
personSearchResult = await jikan.SearchPerson("sawashiro", 2);

PersonSearchResult ResultProperties

SearchPerson request return an PersonSearchResult object. Schema:

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

Results is a collection of PersonSearchEntry objects. Schema:

Type Name Summary
ICollection<String> AlternativeNames Nicknames/alternative names of the person separated by comma.
String ImageURL Perosn's image URL
Int64 MalId ID associated with MyAnimeList.
String Name Name of the person.
String URL URL to person'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