Unofficial MyAnimeList PHP+REST API which provides functions other than the official API
score
and scoredBy
which is affected by MAL's 2024 April Fools featureThey will most likely revert this change in a few days so the previous version will continue to work, however it is recommended to update to this version as it parses score
and scoredBy
from a the statistics panel on the left instead.
Full Changelog: https://github.com/jikan-me/jikan/compare/v4.0.8...v4.0.9
Full Changelog: https://github.com/jikan-me/jikan/compare/v4.0.7...v4.0.8
Full Changelog: https://github.com/jikan-me/jikan/compare/v4.0.4...v4.0.5
Full Changelog: https://github.com/jikan-me/jikan/compare/v4.0.3...v4.0.4
true
when there is no more pages left by @pushrbx in https://github.com/jikan-me/jikan/pull/502
Full Changelog: https://github.com/jikan-me/jikan/compare/v4.0.2...v4.0.3
Full Changelog: https://github.com/jikan-me/jikan/compare/v4.0.1...v4.0.2
Full Changelog: https://github.com/jikan-me/jikan/compare/v3.3.2...v4.0.0
This is because the Review API has been completely revamped and is no longer backwards compatible.
Reviews
$data = $jikan->getReviews( new \Jikan\Request\Reviews\ReviewsRequest( \Jikan\Helper\Constants::MANGA, // type 1, // page \Jikan\Helper\Constants::REVIEWS_SORT_MOST_VOTED, // sort true, // show spoilers true // show preliminary ) );
Parses: https://myanimelist.net/reviews.php?t=manga&spoiler=on&preliminary=on&sort=mostvoted
Anime/Manga Reviews
$data = $jikan->getAnimeReviews( new \Jikan\Request\Anime\AnimeReviewsRequest( 1, // MAL ID 1, // page \Jikan\Helper\Constants::REVIEWS_SORT_MOST_VOTED, //sort true, // show spoilers false // show preliminary ) );
Parses: https://myanimelist.net/anime/1/Cowboy_Bebop/reviews?sort=mostvoted&spoiler=on&preliminary=off
User Reviews
$data = $jikan->getUserReviews( new \Jikan\Request\User\UserReviewsRequest('Stark700', 1) // username and page );