AniList

AniList

The main class for AniList-Node

Constructor

new AniList(accessKeyopt, optionsopt)

Source:
Since:
  • 1.0.0
Parameters:
Name Type Attributes Description
accessKey String <optional>
The AniList API token. If no key is provided, the user will not be able to access private information such as the authorized user's profile (if set to private).
options InitOptions <optional>
Optional options to use when getting info from AniList

Classes

Activity
Lists
Media
People
Recommendation
Search
Thread
User

Members

activity

Source:
Since:
  • 1.7.0
See:

lists

Source:
Since:
  • 1.1.0
See:

media

Source:
Since:
  • 1.0.0
See:

people

Source:
Since:
  • 1.0.0
See:

recommendation

Source:
Since:
  • 1.8.0
See:

searchEntry

Source:
Since:
  • 1.7.0
See:

thread

Source:
Since:
  • 1.11.0
See:

user

Source:
Since:
  • 1.0.0
See:

Methods

(async) favouriteStudio(id) → {Boolean}

Description:
  • [Requires Login] Favourite/Unfavourite a studio
Source:
Since:
  • 1.12.0
Parameters:
Name Type Description
id Number Required. The ID tied to the AniList entry.
Returns:
Returns true if added, false otherwise.
Type
Boolean

genres() → {Array.<String>}

Description:
  • Grabs all possible genres
Source:
Since:
  • 1.12.0
Returns:
Type
Array.<String>

mediaTags() → {Array.<MediaTag>}

Description:
  • Grabs all possible media tags
Source:
Since:
  • 1.12.0
Returns:
Type
Array.<MediaTag>
Description:
  • Searches AniList based on a specific term.
Source:
Since:
  • 1.0.0
Deprecated:
  • Please use AniList.Search class via `AniList.searchEntry` for updated searching. AniList.Search will replace this function in the next major update (v2.0.0).
Parameters:
Name Type Default Description
type String Required. Either anime, manga, character, staff, studio, or user.
term String Required. The term to lookup. (ie: "Honzuki no Gekokujou" or "AurelicButter")
page Number 1 Which page of the results to look at. Will default to 1 if not provided.
amount Number 5 The amount of results per page. AniList will cap this at 25 and function will default to 5 if not provided.
Returns:
Type
SearchEntry

siteStatistics() → {AniListStats}

Description:
  • Grabs the site's statistics over the last seven days
Source:
Since:
  • 1.14.0
Returns:
Type
AniListStats

studio(studio) → {StudioEntry}

Description:
  • Grabs data on a studio
Source:
Since:
  • 1.0.0
Parameters:
Name Type Description
studio String | Number The studio ID or name on AniList.
Returns:
Type
StudioEntry