How to hit the AniList API

AniList's API is GraphQL at https://graphql.anilist.co: every request is a POST with a query. Reads need no login.

Authentication

None for public data, about 90 requests a minute. User actions need an OAuth token.

Full reference: https://docs.anilist.co/

Look up an anime

curl -X POST https://graphql.anilist.co \
  -H "Content-Type: application/json" \
  -d '{"query": "query { Media(search: \"Cowboy Bebop\", type: ANIME) { id title { romaji english } episodes averageScore } }"}'
Run in PostTaco
Example response (trimmed)
{
  "data": {
    "Media": {
      "id": 1,
      "title": {
        "romaji": "Cowboy Bebop",
        "english": "Cowboy Bebop"
      },
      "episodes": 26,
      "averageScore": 86
    }
  }
}