Forum Settings
Forums

[Feature request] Video links in anime details endpoint

New
Sep 2, 2022 1:36 AM
#1
Offline
Apr 2019
3
Hello, members and mal team.
Thank you for this amazing site and cool public api.

I need a promotion video to show it on anime details screen in my android app. Any chances to have it via public api like "pictures" field or something like that.
Reply Disabled for Non-Club Members
Sep 2, 2022 7:53 AM
#2
四十二

Offline
Mar 2016
479
R1dje said:
I need a promotion video to show it on anime details screen in my android app. Any chances to have it via public api like "pictures" field or something like that.

Hi! You can add the (undocumented) videos field to get a list of promotional videos.
For example:

GET https://api.myanimelist.net/v2/anime/1?fields=videos

{
    "id": 1,
    "title": "Cowboy Bebop",
    "main_picture": {
        "medium": "https://api-cdn.myanimelist.net/images/anime/4/19644.jpg",
        "large": "https://api-cdn.myanimelist.net/images/anime/4/19644l.jpg"
    },
    "videos": [
        {
            "id": 2224,
            "title": "PV Blu-ray Box version",
            "url": "https://youtu.be/qig4KOK2R2g",
            "created_at": 1452104316000,
            "updated_at": 1453125827000,
            "thumbnail": "https://i.ytimg.com/vi/qig4KOK2R2g/mqdefault.jpg"
        },
        {
            "id": 2114,
            "title": "PV 2",
            "url": "https://youtu.be/QCaEJZqLeTU",
            "created_at": 1452101124000,
            "updated_at": 1453126159000,
            "thumbnail": "https://i.ytimg.com/vi/QCaEJZqLeTU/mqdefault.jpg"
        },
        {
            "id": 3065,
            "title": "PV 1 English dub version",
            "url": "https://youtu.be/gY5nDXOtv_o",
            "created_at": 1453126096000,
            "updated_at": 1457702231000,
            "thumbnail": "https://i.ytimg.com/vi/gY5nDXOtv_o/mqdefault.jpg"
        }
    ]
}
HTCPCP/1.0  ★ MetaMAL  ★ Picture credits: Kieed & 1041uuu
Sep 2, 2022 8:00 AM
#3
Offline
Apr 2019
3
@ZeroCrystal
Thanks a lot.
Sep 4, 2022 10:37 PM
#4
Offline
Apr 2021
2
@ZeroCrystal Thanks but for some reason this is not working with lists, it is returning all the other fields correctly
https://api.myanimelist.net/v2/users/@me/animelist?status=watching&sort=anime_title&limit=100&offset=0&fields=list_status%2Csynopsis%2Caverage_episode_duration%2Cmedia_type%2Cvideos
https://api.myanimelist.net/v2/users/gujal/animelist?status=watching&fields=synopsis%2Cmean%2Crating%2Cgenres%2Cstudios%2Cstart_date%2Caverage_episode_duration%2Cmedia_type%2Cstatus%2Cvideos'

{
    "node":
    {
        "id": 47164,
        "title": "Dungeon ni Deai wo Motomeru no wa Machigatteiru Darou ka IV: Shin Shou - Meikyuu-hen",
        "main_picture":
        {
            "medium": "https://api-cdn.myanimelist.net/images/anime/1318/126474.jpg",
            "large": "https://api-cdn.myanimelist.net/images/anime/1318/126474l.jpg"
        },
        "synopsis": "Intrepid adventurer Bell Cranel has leveled up, but he can’t rest on his dungeoneering laurels just yet. The Hestia Familia still has a long way to go before it can stand toe-to-toe with the other Familias of Orario — but before Bell can set out on his next mission, reports of a brutal murder rock the adventuring community! One of Bell’s trusted allies stands accused of the horrible crime, and it’s up to Bell and his friends to clear their name and uncover a nefarious plot brewing in the dungeon’s dark depths.\n\n(Source: Sentai Filmworks)",
        "mean": 7.89,
        "rating": "pg_13",
        "genres": [
        {
            "id": 1,
            "name": "Action"
        },
        {
            "id": 2,
            "name": "Adventure"
        },
        {
            "id": 4,
            "name": "Comedy"
        },
        {
            "id": 10,
            "name": "Fantasy"
        },
        {
            "id": 22,
            "name": "Romance"
        }],
        "studios": [
        {
            "id": 7,
            "name": "J.C.Staff"
        }],
        "start_date": "2022-07-21",
        "average_episode_duration": 1425,
        "media_type": "tv",
        "status": "currently_airing"
    }
}

Should this be working, please clarify

Also any plans to add api access for the "Characters & Voice Actors" for an anime. Thanks
gujalSep 4, 2022 11:35 PM
Sep 5, 2022 8:02 AM
#5
四十二

Offline
Mar 2016
479
gujal said:
@ZeroCrystal Thanks but for some reason this is not working with lists, it is returning all the other fields correctly
Should this be working, please clarify

Also any plans to add api access for the "Characters & Voice Actors" for an anime. Thanks

Unfortunately, certain fields cannot be retrieved together with the anime list. They can only be queried individually.

The Characters and People endpoints are underway, but I don't think they'll be released anytime soon.
HTCPCP/1.0  ★ MetaMAL  ★ Picture credits: Kieed & 1041uuu
Sep 9, 2022 5:50 PM
#6
Offline
Apr 2021
2
Thanks for the update
Reply Disabled for Non-Club Members

More topics from this board

» Requesting additional authorizations

SomeNewGuy - Aug 18

1 by ZeroCrystal »»
Aug 22, 8:31 AM

» Scraping from HTML suggested rate

Davenzo - Jan 8, 2023

4 by 7k72 »»
Jun 23, 6:35 AM

» Accessing Many Users' List

loukylor - Jun 11

0 by loukylor »»
Jun 11, 3:07 PM

» Caching strategy to avoid making additional API calls

Jakuten - Jun 3

4 by Jakuten »»
Jun 8, 11:30 AM

» Manga Update API Endpoint Disabled

arturitojedi - May 15

0 by arturitojedi »»
May 15, 6:45 PM
It’s time to ditch the text file.
Keep track of your anime easily by creating your own list.
Sign Up Login