Official MAL API

Information
Welcome to the official MyAnimeList's API club! This is a place where developers can talk about the API, ask questions, look for help to fix bugs, suggest new features, and showcase their projects. Join us and subscribe to the club! First time here? No worries. You can start from this topic. Don't hesitate to leave a comment or open a new discussion if you need help! Quick access


Club Members


Displaying 5 of 282 topics | See All
Club Discussion
[Repost] list of all relation_type and media_type.
Mr_UnknownOtaku - Dec 8
4 repliesby -DxP- »»
8 hours ago
How to get author name?
EdibleMuffin - Feb 12
4 repliesby XAvishkar »»
Dec 8, 9:52 AM
401 Unauthorized when doing authorization flow
Konng_ - Nov 16
2 repliesby Konng_ »»
Nov 28, 3:24 PM
[discontinued] I made a webapp to compare plan-to-watch lists
daux - Apr 16, 2022
33 repliesby daux »»
Oct 2, 4:17 PM
Requesting additional authorizations
SomeNewGuy - Aug 18
1 repliesby ZeroCrystal »»
Aug 22, 8:31 AM



Club Comments
xiaobenbrn | Nov 4, 3:02 AM
I am a student. I want to crawl the top 100 most popular characters and their corresponding information. How can I obtain the API

Varansehir | Jul 27, 9:20 AM
(I can't log in when I'm running API verification on my site.)
My password is correct, and my username is correct, but I can't log in.
I can log in from myanimelist.net, but I can't log in from my site.

ZeroCrystal | May 10, 7:16 AM
@blackholeearth0- The nsfw field shouldn't be trusted that much.
If you want to filter out 18+ entries, you can use the rating field.

blackholeearth0- | May 9, 4:53 AM
zenshuu anime is not visible.. at api..

if we enable +18 .. it s visible..

but anime itself pg-13 , thats stated at the website??

expected behavior :
i expect zenshu to be visible , even when NSFW filter is ON.. at the map api..

-----

https://github.com/axiel7/MoeList/issues/334

Jhiday | Mar 29, 8:59 AM
@Leriouch : your HTTP request is wrongly formatted. If you're writing it as such a low level, it should look like :

POST /v1/oauth2/token HTTP/1.1
Host: myanimelist.net

(The Host header should always be exactly your target's hostname, and the first line shouldn't include it.)

Leriouch | Mar 29, 8:38 AM
I believe the problem may be with the URL for the token https://myanimelist.net/apiconfig/references/authorization on this documentation site. It's saying this page doesn't exist when I look it up https://myanimelist.net/v1/oauth2/token HTTP/1.1 but apparently this is what I need to get tokens.

Maybe I am confused after going through steps 1-5 and completing them and getting my authorization code, do I need to do step 6?

Leriouch | Mar 29, 8:28 AM
I did not hash anything and I am using the same code verifier from the previous steps. I am coming back to this but am still having the same error. I generated a new authorization code and tried following the second format in step 6 for receiving tokens but I still get an HTML page saying not found. I'm still not sure what the problem is.

POST https://myanimelist.net/v1/oauth2/token HTTP/1.1
Host: server.example.com
Content-Type: application/x-www-form-urlencoded

client_id=YOUR_CLIENT_ID
&client_secret=YOUR_CLIENT_SECRET
&grant_type=authorization_code
&code=AUTHORIZATION_CODE
&redirect_uri=YOUR_REDIRECT_URI
&code_verifier=YOUR_PKCE_CODE_VERIFIER

It's been a while since I worked on this so do I need to get a new code verifier or something else? For my host header I put myanimelist.com but maybe that's suppose to be different. I'm just not sure what the problem is because the previous steps work fine.

ZeroCrystal | Feb 9, 7:35 AM
@Leriouch Just to be sure: the code verifier is identical to the one you previously used for the authentication step? Or did you perform any kind of hashing?

Also, if it's a JSON object, can you share the full response message you're getting from MAL?

Club in App
Chat features have been enabled for this club inside the official MAL app! Click here to get it.
Club Stats
Members: 1823
Pictures:
Category: Other
Created: Jul 14, 2009


Club Staff
Kineta (Secretary)
myanimelistllc (Secretary)
ZeroCrystal (Secretary)

Club Type
This is a public club.
Anyone can join and invite others to join. Club details, pictures, comments and club discussions can be viewed by any user, regardless of whether they are a member of the club or not.

Club Secretary can change the Club Type at any time. For more information on Club Types, click here.


It’s time to ditch the text file.
Keep track of your anime easily by creating your own list.
Sign Up Login