-
Notifications
You must be signed in to change notification settings - Fork 15
Using own instance of Jikan
By default, jikan.net library sends requests to the default endpoint (As for 13th February 2022, default endpoint is set to https://api.jikan.moe/v4/
). You may however host your own instance of Jikan REST API as described in an official repository. The benefits of hosting your own instance is lesser workload - in contrast to shared endpoint, you control who sends requests to Jikan.
To use jikan.net with your own instance, pass the url address as a string or Uri class to main class constructor.
IJikan jikanClient;
// Uses default endpoint
jikanClient = new Jikan();
//
var httpClient = new HttpClient {BaseAddress = new Uri("<url_to_your_instance>")};
jikanClient = new Jikan(new JikanClientConfiguration { SuppressException = false }, client)
// Older way of defining own endpoint, client uses custom endpoint via configuration - will be removed in version 2.3.0
var jikanConfig = new JikanClientConfiguration { Endpoint = "<url_to_your_instance>" };
jikanClient = new Jikan(jikanConfig);
Before applying your own Jikan REST API endpoint to jikan.net library, it's best to check if your instance is working properly. This can be checked through sending simple request via web browser, for example pasting <url_to_your_instance>/anime/1
to search bar.
- 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