Forum Settings
Forums

Season API doesn't seem to be working properly

New
Jan 4, 10:11 AM
#1
Offline
Oct 2014
4
Hello,

I tried using the API but I have a few issues.


1) Some animes are missing from the output
With the same API call as below, it doesn't find Towa no Yuugure even though this anime appears on this page.

2) Anime score sorting doesn't seem to work
URL:
https://api.myanimelist.net/v2/anime/season/2025/fall?sort=anime_score&limit=500&fields=mean

Output:
{
  "data": [
    {
      "node": {
        "id": 47794,
        "title": "MILGЯAM",
        "main_picture": {
          "medium": "https://cdn.myanimelist.net/images/anime/1497/112023.jpg",
          "large": "https://cdn.myanimelist.net/images/anime/1497/112023l.jpg"
        },
        "mean": 8.22
      }
    },
    {
      "node": {
        "id": 61903,
        "title": "Kaguya-sama wa Kokurasetai: Otona e no Kaidan",
        "main_picture": {
          "medium": "https://cdn.myanimelist.net/images/anime/1112/150697.webp",
          "large": "https://cdn.myanimelist.net/images/anime/1112/150697l.webp"
        },
        "mean": 8.62
      }
    },
    {
      "node": {
        "id": 21,
        "title": "One Piece",
        "main_picture": {
          "medium": "https://cdn.myanimelist.net/images/anime/1244/138851.jpg",
          "large": "https://cdn.myanimelist.net/images/anime/1244/138851l.jpg"
        },
        "mean": 8.73
      }
    },
    {
      "node": {
        "id": 61930,
        "title": "Uma Musume: Cinderella Gray Part 2",
        "main_picture": {
          "medium": "https://cdn.myanimelist.net/images/anime/1120/152280.jpg",
          "large": "https://cdn.myanimelist.net/images/anime/1120/152280l.jpg"
        },
        "mean": 8.68
      }
    },
    {
      "node": {
        "id": 60098,
        "title": "Boku no Hero Academia: Final Season",
        "main_picture": {
          "medium": "https://cdn.myanimelist.net/images/anime/1959/151055.jpg",
          "large": "https://cdn.myanimelist.net/images/anime/1959/151055l.jpg"
        },
        "mean": 8.77
      }
    },
    {
      "node": {
        "id": 61517,
        "title": "Kingdom 6th Season",
        "main_picture": {
          "medium": "https://cdn.myanimelist.net/images/anime/1282/151476.jpg",
          "large": "https://cdn.myanimelist.net/images/anime/1282/151476l.jpg"
        },
        "mean": 8.79
      }
    },
    {
      "node": {
        "id": 62610,
        "title": "Mafiosa",
        "main_picture": {
          "medium": "https://cdn.myanimelist.net/images/anime/1287/152345.jpg",
          "large": "https://cdn.myanimelist.net/images/anime/1287/152345l.jpg"
        },
        "mean": 6.83
      }
    },
    {
      "node": {
        "id": 56877,
        "title": "Ao no Orchestra Season 2",
        "main_picture": {
          "medium": "https://cdn.myanimelist.net/images/anime/1078/151796.jpg",
          "large": "https://cdn.myanimelist.net/images/anime/1078/151796l.jpg"
        },
        "mean": 7.18
      }
    },
    {
      "node": {
        "id": 61354,
        "title": "Benghuai: Xing Qiong Tiedao - Huangjin Shishi PVs",
        "main_picture": {
          "medium": "https://cdn.myanimelist.net/images/anime/1051/148911.jpg",
          "large": "https://cdn.myanimelist.net/images/anime/1051/148911l.jpg"
        },
        "mean": 6.84
      }
    },
etc...



Thanks in advance.
Jan 4, 11:40 AM
#2

Offline
Aug 2018
947
For the first point, add nsfw=true to the query param and the missing anime comes. The show is rated R - 17+ so that could be why its marked as nsfw

Second point - yup you're right anime_score sorting is not working for this API

Looks like someone reported this bug in 2022 in the API club but there's been no updates (sad): https://myanimelist.net/forum/?topicid=2030371
Maybe you can bump that thread but you'll have to sort the list through your code until it gets fixed (if ever)
<Something>
Jan 4, 12:03 PM
#3
Offline
Oct 2014
4
Reply to xLoop
For the first point, add nsfw=true to the query param and the missing anime comes. The show is rated R - 17+ so that could be why its marked as nsfw

Second point - yup you're right anime_score sorting is not working for this API

Looks like someone reported this bug in 2022 in the API club but there's been no updates (sad): https://myanimelist.net/forum/?topicid=2030371
Maybe you can bump that thread but you'll have to sort the list through your code until it gets fixed (if ever)
Thanks for the info, I bumped the thread and will try adding nsfw param.

More topics from this board

» why wont my pfp show up in posts i make?

eternalworm2008 - 26 minutes ago

1 by Alexioos95 »»
15 minutes ago

» STOP REMOVING AI REVIEWS OMG

idkwhyihavemal - Yesterday

6 by LaceyKuroki »»
2 hours ago

» Myanimelist android app gone

RandyMidget - Oct 11, 2024

19 by Tythesly »»
10 hours ago

» Making my list bigger in width

Costache_ - Yesterday

2 by Costache_ »»
Yesterday, 10:02 AM

» Sorta unrealated but is anyone's MAL's not working properly???

_Angie - Jan 4

4 by deg »»
Jan 5, 4:25 PM
It’s time to ditch the text file.
Keep track of your anime easily by creating your own list.
Sign Up Login