Forum Settings
Forums
New
Feb 14, 2021 10:29 AM
#1

Offline
Aug 2019
22



Mal4J is a Java wrapper for the MyAnimeList REST API. This library is compatible with Java 8+, Java 9+ modules, and Android.

✨ Features

🔎 Search Queries

Find Anime and Manga by search, ranking, season, and suggestions.

MyAnimeList mal = MyAnimeList.withClientID("");
List<AnimePreview> search =
    mal.getAnime()
        .withQuery("さくら荘のペットな彼女")
        .withLimit(1)
        .withOffset(1)
        .includeNSFW(false)
        .search();


📋 Anime and Manga Lists

Read and edit your Anime and Manga listings.

MyAnimeList mal = MyAnimeList.withToken("");
MangaListStatus status =
    mal.updateMangaListing(28107)
        .status(MangaStatus.Reading)
        .volumesRead(7)
        .chaptersRead(2)
        .rereading(false)
        .priority(Priority.High)
        .timesReread(0)
        .rereadValue(RereadValue.VeryHigh)
        .tags("tags", "more tags")
        .comments("comments")
        .update();


📦 Everything Else

All information provided in the MyAnimeList API including Anime, Manga, forums, genres, pictures, statistics, and characters, are accessible in this library.

MyAnimeList mal = MyAnimeList.withClientID("");
Anime anime = mal.getAnime(13759);

String ja = anime.getAlternativeTitles().getJapanese();
Genre[] genres = anime.getGenres();
RelatedAnime[] relatedAnime = anime.getRelatedAnime();
AnimeRecommendation[] recs = anime.getRecommendations();
OpeningTheme[] op = anime.getOpeningThemes();
Video[] PV = anime.getVideos();
List<Character> characters = anime.getCharacters().search();

Character character = mal.getCharacter(61371);
Person person = mal.getPerson(10765);


KatsuteDevMay 24, 2023 1:19 PM
Reply Disabled for Non-Club Members
Reply Disabled for Non-Club Members

More topics from this board

» Log user on the main site with API access token

Niccol0 - 7 hours ago

0 by Niccol0 »»
7 hours ago

» Deauthorization of third party apps/api - no setting?

Exodor - Jul 23

2 by Exodor »»
Jul 24, 1:21 PM

» Any plans to implement a non-web oauth flow?

plays2 - Jul 3

1 by ZeroCrystal »»
Jul 6, 7:35 AM

Sticky: » [USER SUBMITTED GUIDE] How to access the new MAL API using OAuth 2.0 ( 1 2 3 4 )

ZeroCrystal - Jul 7, 2020

189 by ZeroCrystal »»
Jun 23, 5:05 AM

» I made a webapp to compare plan-to-watch lists

daux - Apr 16, 2022

26 by shunthespy »»
Jun 20, 3:04 PM
It’s time to ditch the text file.
Keep track of your anime easily by creating your own list.
Sign Up Login