all-about-apikey/myanimelist/README.md

1.0 KiB

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........