-
Notifications
You must be signed in to change notification settings - Fork 14
SearchAnime
Bartłomiej Buchała edited this page Sep 24, 2021
·
10 revisions
Returns list of results related to search. This method parses item data by query from https://myanimelist.net/anime.php
. Returned list is paged with page size equal 50 anime entries.
Type | Name | Summary |
---|---|---|
String |
query | Search query. |
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.) |
Type | Name | Summary |
---|---|---|
String |
query | Search query. |
AnimeSearchConfig |
searchConfig | List of result related to search query. |
Type | Name | Summary |
---|---|---|
AnimeSearchConfig |
searchConfig | List of result related to search query. |
Type | Name | Summary |
---|---|---|
AnimeSearchConfig |
searchConfig | List of result related to 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.) |
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.) |
AnimeSearchConfig |
searchConfig | List of result related to search query. |
By default SearchAnime
search in all accessible anime. It is possible to filter returned entries using overload method by defining AnimeSearchConfig
object and passing it to SearchAnime
method. Schema:
Type | Name | Summary |
---|---|---|
Nullable<DateTime> |
EndDate | Filter end date of results. |
Boolean |
GenreIncluded | If true, search anime of genres included in Genres If false, exlude genres included from Genres from search result. |
ICollection<AnimeGenreSearch> |
Genres | Genres to seach/exclude. |
AgeRating |
Rating | Age rating. |
Nullable<Int32> |
Score | Minimum score results (1-10). |
Nullable<DateTime> |
StartDate | Filter start date of results. |
AiringStatus |
Status | Current status. |
AnimeType |
Type | Anime type of searched result; |
// Initialize JikanWrapper
IJikan jikan = new Jikan(true);
// Send request to search anime with "haibane" key word
AnimeSearchResult animeSearchResult = await jikan.SearchAnime("haibane");
// Print title of the first result
// Output -> "Haibane Renmei"
Console.WriteLine(animeSearchResult.Results.First().Title);
// Send request to search anime with "gundam" key word, second page of results
animeSearchResult = await jikan.SearchAnime("gundam", 2);
AnimeSearchConfig animeSearchConfig = new AnimeSearchConfig()
{
Type = AnimeType.Movie,
Score = 7
};
// Send request to search anime with "gundam" key word, movies with score bigger than 7 only.
animeSearchResult = await jikan.SearchAnime("gundam", animeSearchConfig);
animeSearchConfig = new AnimeSearchConfig()
{
Genres = { AnimeGenreSearch.Action, AnimeGenreSearch.Adventure },
GenreIncluded = true
};
// Send request to search anime with "samurai" key word, with action and/or adventure genre.
animeSearchResult = await jikan.SearchAnime("samurai", animeSearchConfig);
animeSearchConfig = new AnimeSearchConfig()
{
Genres = { AnimeGenreSearch.Mecha, AnimeGenreSearch.Romance },
GenreIncluded = false
};
// Send request to search anime with "samurai" key word, without mecha and/or romance genre.
animeSearchResult = await jikan.SearchAnime("samurai", animeSearchConfig);
animeSearchConfig = new AnimeSearchConfig()
{
Rating = AgeRating.RX
};
// Send request to search adult anime only
animeSearchResult = await jikan.SearchAnime(animeSearchConfig);
// Send request to search adult anime only, second page of results
animeSearchResult = await jikan.SearchAnime(animeSearchConfig, 2);
// Send request to search anime with "samurai" key word, adult anime only, second page of results
animeSearchResult = await jikan.SearchAnime("samurai" 2, animeSearchConfig);
SearchManga
request return an AnimeSearchResult object. Schema:
Type | Name | Summary |
---|---|---|
Nullable<Int32> |
ResultLastPage | Index of the last page. |
ICollection<AnimeSearchEntry> |
Results | List of search results. |
Results
is a collection of AnimeSearchEntry
objects. Schema:
Type | Name | Summary |
---|---|---|
Boolean |
Airing | Is anime currently airing. |
String |
Description | Anime's description. |
Nullable<DateTime> |
EndDate | Datetime when anime ended airing. |
Nullable<Int32> |
Episodes | Anime's episode count. |
String |
ImageURL | Anime's image URL |
Int64 |
MalId | ID associated with MyAnimeList. |
Nullable<Int32> |
Members | Anime members count on MyAnimeList. |
String |
Rated | Anime rating (e. g. "PG-13", "R"). |
Nullable<Single> |
Score | Anime's score on MyAnimeList up to 2 decimal places. |
Nullable<DateTime> |
StartDate | Datetime when anime started airing. |
String |
Title | Title of the anime. |
String |
Type | Anime type (e. g. "TV", "Movie"). |
String |
URL | URL to anime's page. |
- GetAnimeAsync
- GetAnimeEpisodesAsync
- GetAnimeCharactersAsync
- GetAnimeStaffAsync
- GetAnimeForumTopicsAsync
- GetAnimeMoreInfoAsync
- GetAnimeNewsAsync
- GetAnimePicturesAsync
- GetAnimeRecommendationsAsync
- GetAnimeReviewsAsync
- GetAnimeStatisticsAsync
- GetAnimeUserUpdatesAsync
- GetAnimeVideosAsync
- GetMangaAsync
- GetMangaCharactersAsync
- GetMangaForumTopicsAsync
- GetMangaMoreInfoAsync
- GetMangaNewsAsync
- GetMangaPicturesAsync
- GetMangaRecommendationsAsync
- GetMangaReviews
- GetMangaStatistics
- GetMangaUserUpdates
- Jikan
- BaseJikanRequest
- Anime
- AnimeCharactersStaff
- AnimeEpisodes
- AnimeGenre
- AnimeNews
- AnimePictures
- AnimeReviews
- AnimeStats
- AnimeTop
- AnimeUserUpdates
- AnimeVideos
- Character
- CharacterPictures
- CharactersTop
- Club
- ClubMembers
- ForumTopics
- Magazine
- Manga
- MangaCharacters
- MangaGenre
- MangaNews
- MangaPictures
- MangaReviews
- MangaStats
- MangaTop
- MangaUserUpdates
- MoreInfo
- PeopleTop
- Person
- Producer
- Recommendations
- Schedule
- Season
- SeasonArchives
- StatusMetadata
- UserAnimeList
- UserFriends
- UserHistory
- UserMangaList
- UserProfile
- AnimeEpisode
- AnimeListEntry
- AnimeReview
- AnimeReviewer
- AnimeReviewScores
- AnimeStaffPosition
- AnimeSubEntry
- AnimeTopEntry
- AnimeUserUpdate
- CharacterEntry
- CharacterTopEntry
- ClubMember
- EpisodeVideo
- ForumPostSnippet
- Friend
- ForumTopic
- HistoryEntry
- Licensor
- MALImageSubItem
- MALSubItem
- MangaListEntry
- MangaReview
- MangaReviewer
- MangaReviewScores
- MangaSubEntry
- MangaTopEntry
- MangaUserUpdate
- News
- PersonTopEntry
- Picture
- PromoVideo
- PublishedManga
- Recommendation
- Review
- Reviewer
- RelatedAnime
- RelatedManga
- ScoringStatEntry
- ScoringStats
- SeasonArchive
- StaffPositionEntry
- TimePeriod
- UserAnimeStatistics
- UserFavoritesSection
- UserFavoritesSection
- UserUpdate
- VoiceActingRole
- VoiceActorEntry
- AnimeSearchConfig
- AnimeSearchEntry
- AnimeSearchResult
- CharacterSearchEntry
- CharacterSearchResult
- MangaSearchConfig
- MangaSearchEntry
- MangaSearchResult
- PersonSearchEntry
- PersonSearchResult
- AgeRating
- Status
- AnimeExtension
- AnimeGenreSearch
- AnimeType
- CharacterExtension
- ClubExtensions
- MangaExtension
- MangaGenreSearch
- MangaType
- PersonExtension
- ScheduledDay
- SeasonExtension
- Seasons
- TopAnimeExtension
- TopMangaExtension
- UserAnimeListExtension
- UserExtension
- UserHistoryExtension
- UserMangaListExtension