Forum Settings
Forums

User Tags, Related Anime and Related Manga Never Included

New
Nov 9, 2023 8:53 AM
#1
Offline
Aug 2009
10
I've tried everything I can think of but my Tags from my user list are never returned. The API documentation states Tags should be included in both the my_list_status object from the Get Anime Details and Get User Anime List endpoint. I've also tried with my client id and my logged-in token.

Oh, but I can update Tags through the Update endpoint.

Also, the Related Anime/Manga fields are always empty arrays from both the Anime Details and Manga Details endpoints.

Thoughts?
Reply Disabled for Non-Club Members
Nov 11, 2023 4:39 AM
#2
四十二

Offline
Mar 2016
488
@Subtonics Hi! At the top of the documentation, you can see that nested fields must be enclosed in curly brackets.
For example, you can get the tags for an anime like this:

GET https://api.myanimelist.net/v2/users/ZeroCrystal/animelist?fields=my_list_status{tags}&limit=1

{
    "data": [
        {
            "node": {
                "id": 52034,
                "title": "\"Oshi no Ko\"",
                "main_picture": {
                    "medium": "https://cdn.myanimelist.net/images/anime/1812/134736.jpg",
                    "large": "https://cdn.myanimelist.net/images/anime/1812/134736l.jpg"
                },
                "my_list_status": {
                    "status": "completed",
                    "score": 8,
                    "num_episodes_watched": 11,
                    "is_rewatching": false,
                    "updated_at": "2023-11-11T12:29:30+00:00",
                    "tags": [
                        "Tag1",
                        "Tag2",
                        "Tag3"
                    ]
                }
            }
        }
    ],
    "paging": {
        "next": "https://api.myanimelist.net/v2/users/ZeroCrystal/animelist?offset=1&fields=my_list_status%7Btags%7D&limit=1"
    }
}


On the other hand, the related anime/manga issue is a known bug. You can get the related_anime for an anime but not the related_manga. Similarly, you can retrieve the related_manga for a manga, but not its related_anime.
There's not much we can do about it.
HTCPCP/1.0  ★ MetaMAL  ★ Picture credits: Kieed & 1041uuu
Nov 11, 2023 7:31 AM
#3
Offline
Aug 2009
10
Reply to ZeroCrystal
@Subtonics Hi! At the top of the documentation, you can see that nested fields must be enclosed in curly brackets.
For example, you can get the tags for an anime like this:

GET https://api.myanimelist.net/v2/users/ZeroCrystal/animelist?fields=my_list_status{tags}&limit=1

{
    "data": [
        {
            "node": {
                "id": 52034,
                "title": "\"Oshi no Ko\"",
                "main_picture": {
                    "medium": "https://cdn.myanimelist.net/images/anime/1812/134736.jpg",
                    "large": "https://cdn.myanimelist.net/images/anime/1812/134736l.jpg"
                },
                "my_list_status": {
                    "status": "completed",
                    "score": 8,
                    "num_episodes_watched": 11,
                    "is_rewatching": false,
                    "updated_at": "2023-11-11T12:29:30+00:00",
                    "tags": [
                        "Tag1",
                        "Tag2",
                        "Tag3"
                    ]
                }
            }
        }
    ],
    "paging": {
        "next": "https://api.myanimelist.net/v2/users/ZeroCrystal/animelist?offset=1&fields=my_list_status%7Btags%7D&limit=1"
    }
}


On the other hand, the related anime/manga issue is a known bug. You can get the related_anime for an anime but not the related_manga. Similarly, you can retrieve the related_manga for a manga, but not its related_anime.
There's not much we can do about it.
@ZeroCrystal Wow, sorry I completely missed that.

Thank you!
Sep 13, 2024 3:24 PM
#4
Offline
Mar 2021
2
Reply to ZeroCrystal
@Subtonics Hi! At the top of the documentation, you can see that nested fields must be enclosed in curly brackets.
For example, you can get the tags for an anime like this:

GET https://api.myanimelist.net/v2/users/ZeroCrystal/animelist?fields=my_list_status{tags}&limit=1

{
    "data": [
        {
            "node": {
                "id": 52034,
                "title": "\"Oshi no Ko\"",
                "main_picture": {
                    "medium": "https://cdn.myanimelist.net/images/anime/1812/134736.jpg",
                    "large": "https://cdn.myanimelist.net/images/anime/1812/134736l.jpg"
                },
                "my_list_status": {
                    "status": "completed",
                    "score": 8,
                    "num_episodes_watched": 11,
                    "is_rewatching": false,
                    "updated_at": "2023-11-11T12:29:30+00:00",
                    "tags": [
                        "Tag1",
                        "Tag2",
                        "Tag3"
                    ]
                }
            }
        }
    ],
    "paging": {
        "next": "https://api.myanimelist.net/v2/users/ZeroCrystal/animelist?offset=1&fields=my_list_status%7Btags%7D&limit=1"
    }
}


On the other hand, the related anime/manga issue is a known bug. You can get the related_anime for an anime but not the related_manga. Similarly, you can retrieve the related_manga for a manga, but not its related_anime.
There's not much we can do about it.
@ZeroCrystal

Hi was wondering about the related_anime, I've tried adding related_anime to my fields as part of query for an anime and it does not return related anime. I guess more aptly does the related anime field work at all?
Sep 14, 2024 6:23 AM
#5
四十二

Offline
Mar 2016
488
Reply to GibsonBrash
@ZeroCrystal

Hi was wondering about the related_anime, I've tried adding related_anime to my fields as part of query for an anime and it does not return related anime. I guess more aptly does the related anime field work at all?
@GibsonBrash Hi, can you share your query? I just tested it with Code Geass and it works as expected.

GET https://api.myanimelist.net/v2/anime/1575?fields=related_anime

{
    "id": 1575,
    "title": "Code Geass: Hangyaku no Lelouch",
    "main_picture": {
        "medium": "https://cdn.myanimelist.net/images/anime/1032/135088.jpg",
        "large": "https://cdn.myanimelist.net/images/anime/1032/135088l.jpg"
    },
    "related_anime": [
        {
            "node": {
                "id": 1953,
                "title": "Code Geass: Hangyaku no Lelouch Picture Drama",
                "main_picture": {
                    "medium": "https://cdn.myanimelist.net/images/anime/7/23278.webp",
                    "large": "https://cdn.myanimelist.net/images/anime/7/23278l.webp"
                }
            },
            "relation_type": "side_story",
            "relation_type_formatted": "Side story"
        },
        {
            "node": {
                "id": 2124,
                "title": "Code Geass: Hangyaku no Lelouch Recaps",
                "main_picture": {
                    "medium": "https://cdn.myanimelist.net/images/anime/7/22569.webp",
                    "large": "https://cdn.myanimelist.net/images/anime/7/22569l.webp"
                }
            },
            "relation_type": "summary",
            "relation_type_formatted": "Summary"
        },
        {
            "node": {
                "id": 2904,
                "title": "Code Geass: Hangyaku no Lelouch R2",
                "main_picture": {
                    "medium": "https://cdn.myanimelist.net/images/anime/1088/135089.webp",
                    "large": "https://cdn.myanimelist.net/images/anime/1088/135089l.webp"
                }
            },
            "relation_type": "sequel",
            "relation_type_formatted": "Sequel"
        },
        {...and so on...}
    ]
}
HTCPCP/1.0  ★ MetaMAL  ★ Picture credits: Kieed & 1041uuu
Sep 14, 2024 12:30 PM
#6
Offline
Mar 2021
2
Reply to ZeroCrystal
@GibsonBrash Hi, can you share your query? I just tested it with Code Geass and it works as expected.

GET https://api.myanimelist.net/v2/anime/1575?fields=related_anime

{
    "id": 1575,
    "title": "Code Geass: Hangyaku no Lelouch",
    "main_picture": {
        "medium": "https://cdn.myanimelist.net/images/anime/1032/135088.jpg",
        "large": "https://cdn.myanimelist.net/images/anime/1032/135088l.jpg"
    },
    "related_anime": [
        {
            "node": {
                "id": 1953,
                "title": "Code Geass: Hangyaku no Lelouch Picture Drama",
                "main_picture": {
                    "medium": "https://cdn.myanimelist.net/images/anime/7/23278.webp",
                    "large": "https://cdn.myanimelist.net/images/anime/7/23278l.webp"
                }
            },
            "relation_type": "side_story",
            "relation_type_formatted": "Side story"
        },
        {
            "node": {
                "id": 2124,
                "title": "Code Geass: Hangyaku no Lelouch Recaps",
                "main_picture": {
                    "medium": "https://cdn.myanimelist.net/images/anime/7/22569.webp",
                    "large": "https://cdn.myanimelist.net/images/anime/7/22569l.webp"
                }
            },
            "relation_type": "summary",
            "relation_type_formatted": "Summary"
        },
        {
            "node": {
                "id": 2904,
                "title": "Code Geass: Hangyaku no Lelouch R2",
                "main_picture": {
                    "medium": "https://cdn.myanimelist.net/images/anime/1088/135089.webp",
                    "large": "https://cdn.myanimelist.net/images/anime/1088/135089l.webp"
                }
            },
            "relation_type": "sequel",
            "relation_type_formatted": "Sequel"
        },
        {...and so on...}
    ]
}
@ZeroCrystal

GET https://api.myanimelist.net/v2/anime/ranking?ranking_type=all&limit=10&offset=0&fields=related_anime

based on your example it leads me to believe i can only get the related_anime if I query a specific anime by ID even though the documentation says I should be able to do it this way. Also should mention this works for every other field except related_anime
Sep 16, 2024 11:15 AM
#7
四十二

Offline
Mar 2016
488
Reply to GibsonBrash
@ZeroCrystal

GET https://api.myanimelist.net/v2/anime/ranking?ranking_type=all&limit=10&offset=0&fields=related_anime

based on your example it leads me to believe i can only get the related_anime if I query a specific anime by ID even though the documentation says I should be able to do it this way. Also should mention this works for every other field except related_anime
@GibsonBrash Yes, it doesn't work for the rankings, among other things. I wasn't sure whether you were trying to request a single anime or calling a different endpoint.
HTCPCP/1.0  ★ MetaMAL  ★ Picture credits: Kieed & 1041uuu
Reply Disabled for Non-Club Members

More topics from this board

» I built a spotify-styled 'MyAnimeList Wrapped' for a yearly review of your anime and manga

XAvishkar - Dec 14

1 by Joeliazeers »»
Dec 17, 1:01 PM

» [Repost] list of all relation_type and media_type.

Mr_UnknownOtaku - Dec 8

4 by -DxP- »»
Dec 12, 8:43 AM

» How to get author name?

EdibleMuffin - Feb 12

4 by XAvishkar »»
Dec 8, 9:52 AM

» 401 Unauthorized when doing authorization flow

Konng_ - Nov 16

2 by Konng_ »»
Nov 28, 3:24 PM

» [discontinued] I made a webapp to compare plan-to-watch lists

daux - Apr 16, 2022

33 by daux »»
Oct 2, 4:17 PM
It’s time to ditch the text file.
Keep track of your anime easily by creating your own list.
Sign Up Login