jikan-me / jikan

Unofficial MyAnimeList PHP+REST API which provides functions other than the official API
https://jikan.moe
MIT License
851 stars 94 forks source link

Anime reviews endpoint always returns page 1 #531

Closed jantosz closed 9 months ago

jantosz commented 10 months ago

When I call the reviews/anime/ endpoint, it returns page 1 every time, no matter what page number I specify (has_next_page is true).

{'last_visible_page': 1, 'has_next_page': True}

Alucard2169 commented 9 months ago

the has_next_page:True tells you if there are more pages of data present in the database, as long as it's true you can further make a request for more pages.

for example try this https://api.jikan.moe/v4/reviews/anime?page=3

irfan-dahir commented 9 months ago

@jantosz This is intended behavior for reviews.

Reviews are parsed from this page: https://myanimelist.net/reviews.php?t=anime

There is no pagination information only a "Next" button which helps identify whether has_next_page should be set to true. This is why last_visible_page falls back to 1.

Alucard2169 commented 9 months ago

@irfan-dahir that makes sense