all-about-apikey/myanimelist
Muhammad Daffa 7372a52709 Fix repository structure and add todolist 2022-07-23 20:53:29 +07:00
..
README.md Fix repository structure and add todolist 2022-07-23 20:53:29 +07:00

README.md

MyAnimeList

Description

Anime and Manga Database and Community

Example Request

  • Curl
curl 'https://api.myanimelist.net/v2/anime?q=one&limit=4' \
-H 'Authorization: Bearer YOUR_TOKEN'
  • Raw
GET /v2/anime?q=one&limit=4 HTTP/1.1
Host: api.myanimelist.net
Authorization: Bearer YOUR_TOKEN

Response

  • Success
{
  "data": [
    {
      "node": {
        "id": 459,
        "title": "One Piece Movie 1",
        "main_picture": {
          "medium": "https://myanimelist.cdn-dena.com/images/anime/5/20925.jpg",
          "large": "https://myanimelist.cdn-dena.com/images/anime/5/20925l.jpg"
        }
      }
    }
  ],
  "paging": {
    "next": "https://api.myanimelist.net/v2/anime?offset=4&q=one&limit=4"
  }
}
  • Error
{
    "error": "invalid_token"
}

Regex

^[A-Za-z0-9-_=]+\.[A-Za-z0-9-_=]+\.?[A-Za-z0-9-_.+/=]*$

Example API key

eyJpc3MiOiJPbmxpbmUgSldUIEJ1aWxkZXIiLCJpYXQiOjE2M.jkxMDcxMjAsImV4cCI6MTY2MDY0MzEyMCwiYXVkIjo........