Skip to content
AniLink

AniList page-query operations

The paginated AniList GraphQL query operations, grouped by response domain.

Page queries

anilist.query.page.users

UsersQuery fetches a page of users. Returns a UsersPageResponse with the items and PageInfo.

Signature

TypeScript
users(variables: UsersVariables, options?: RequestOptions): Promise<UsersPageResponse>

Auth: Not required — public data. Pass a token for viewer-scoped fields.

NameTypeRequiredDescription
pagenumbernoa number representing the page number.
perPagenumbernoa number representing the number of items per page.
idnumbernoa number representing the id of the user.
namestringnoa string representing the name of the user.
isModeratorbooleannoa boolean representing whether the user is a moderator.
searchstringnoa string representing the search term.
sortstring[]noan array of strings representing the sort order.
asHtmlbooleannoa boolean representing whether to return the result as HTML.
animeStatLimitnumbernoa number representing the limit for anime statistics.
mangaStatLimitnumbernoa number representing the limit for manga statistics.
animeStatSortstring[]noan array of strings representing the sort order for anime statistics.
mangaStatSortstring[]noan array of strings representing the sort order for manga statistics.
FieldTypeDescription
pageInfoPageInfoThe pagination information
usersUserResponse[]a list of `UserResponse` entries representing the users.
  • AniLinkApiError — non-success AniList HTTP response
  • AniLinkGraphQLError — HTTP 200 response carrying GraphQL errors
  • AniLinkNetworkError — timeout, cancellation, or transport failure

Example

TypeScript
await aniLink.anilist.query.page.users({page: 1, perPage: 10});

anilist.query.page.medias

MediasQuery fetches a page of anime/manga. Returns a MediasPageResponse with the items and PageInfo.

Signature

TypeScript
medias(variables: MediasVariables, options?: RequestOptions): Promise<MediasPageResponse>

Auth: Not required — public data. Pass a token for viewer-scoped fields.

NameTypeRequiredDescription
pagenumbernoa number representing the page number.
perPagenumbernoa number representing the number of items per page.
idnumbernoa number representing the id of the media.
idMalnumbernoa number representing the MyAnimeList id of the media.
startDatenumbernoa number representing the start date of the media.
endDatenumbernoa number representing the end date of the media.
seasonstringnoa string representing the season of the media.
seasonYearnumbernoa number representing the year of the season of the media.
type"ANIME" | "MANGA"noa string representing the type of the media. It can be either 'ANIME' or 'MANGA'.
formatstringnoa string representing the format of the media.
statusstringnoa string representing the status of the media.
episodesnumbernoa number representing the number of episodes of the media.
durationnumbernoa number representing the duration of the media.
chaptersnumbernoa number representing the number of chapters of the media.
volumesnumbernoa number representing the number of volumes of the media.
isAdultbooleannoa boolean representing whether the media is for adults.
genrestringnoa string representing the genre of the media.
tagstringnoa string representing the tag of the media.
minimumTagRanknumbernoa number representing the minimum tag rank of the media.
tagCategorystringnoa string representing the category of the tag of the media.
onListbooleannoa boolean representing whether the media is on the list.
licensedBystringnoa string representing who licensed the media.
licensedByIdnumbernoa number representing the id of who licensed the media.
averageScorenumbernoa number representing the average score of the media.
popularitynumbernoa number representing the popularity of the media.
sourcestringnoa string representing the source of the media.
countryOfOriginstringnoa string representing the country of origin of the media.
isLicensedbooleannoa boolean representing whether the media is licensed.
searchstringnoa string representing the search term for the media.
id_notnumbernoa number representing the id of the media that should not be included.
id_innumber[]noan array of numbers representing the ids of the media that should be included.
id_not_innumber[]noan array of numbers representing the ids of the media that should not be included.
idMal_notnumbernoa number representing the MyAnimeList id of the media that should not be included.
idMal_innumber[]noan array of numbers representing the MyAnimeList ids of the media that should be included.
idMal_not_innumber[]noan array of numbers representing the MyAnimeList ids of the media that should not be included.
startDate_greaternumbernoa number representing the minimum start date of the media.
startDate_lessernumbernoa number representing the maximum start date of the media.
startDate_likestringnoa string representing the start date of the media that should be included.
endDate_greaternumbernoa number representing the minimum end date of the media.
endDate_lessernumbernoa number representing the maximum end date of the media.
endDate_likestringnoa string representing the end date of the media that should be included.
format_instring[]noan array of strings representing the formats of the media that should be included.
format_notstringnoa string representing the format of the media that should not be included.
format_not_instring[]noan array of strings representing the formats of the media that should not be included.
status_instring[]noan array of strings representing the statuses of the media that should be included.
status_notstringnoa string representing the status of the media that should not be included.
status_not_instring[]noan array of strings representing the statuses of the media that should not be included.
episodes_greaternumbernoa number representing the minimum number of episodes of the media.
episodes_lessernumbernoa number representing the maximum number of episodes of the media.
duration_greaternumbernoa number representing the minimum duration of the media.
duration_lessernumbernoa number representing the maximum duration of the media.
chapters_greaternumbernoa number representing the minimum number of chapters of the media.
chapters_lessernumbernoa number representing the maximum number of chapters of the media.
volumes_greaternumbernoa number representing the minimum number of volumes of the media.
volumes_lessernumbernoa number representing the maximum number of volumes of the media.
genre_instring[]noan array of strings representing the genres of the media that should be included.
genre_not_instring[]noan array of strings representing the genres of the media that should not be included.
tag_instring[]noan array of strings representing the tags of the media that should be included.
tag_not_instring[]noan array of strings representing the tags of the media that should not be included.
tagCategory_instring[]noan array of strings representing the categories of the tags of the media that should be included.
tagCategory_not_instring[]noan array of strings representing the categories of the tags of the media that should not be included.
licensedBy_instring[]noan array of strings representing who licensed the media that should be included.
licensedById_innumber[]noan array of numbers representing the ids of who licensed the media that should be included.
averageScore_notnumbernoa number representing the average score of the media that should not be included.
averageScore_greaternumbernoa number representing the minimum average score of the media.
averageScore_lessernumbernoa number representing the maximum average score of the media.
popularity_notnumbernoa number representing the popularity of the media that should not be included.
popularity_greaternumbernoa number representing the minimum popularity of the media.
popularity_lessernumbernoa number representing the maximum popularity of the media.
source_instring[]noan array of strings representing the sources of the media that should be included.
sortstring[]noan array of strings representing the sorting order of the media.
asHtmlbooleannoa boolean representing whether the media should be returned as HTML.
FieldTypeDescription
pageInfoPageInfoThe pagination information
mediaMediaResponse[]a list of `MediaResponse` entries representing the media.
  • AniLinkApiError — non-success AniList HTTP response
  • AniLinkGraphQLError — HTTP 200 response carrying GraphQL errors
  • AniLinkNetworkError — timeout, cancellation, or transport failure

Example

TypeScript
await aniLink.anilist.query.page.medias({page: 1, perPage: 10, type: 'ANIME'});

anilist.query.page.characters

CharactersQuery fetches a page of characters. Returns a CharactersPageResponse with the items and PageInfo.

Signature

TypeScript
characters(variables: CharactersVariables, options?: RequestOptions): Promise<CharactersPageResponse>

Auth: Not required — public data. Pass a token for viewer-scoped fields.

NameTypeRequiredDescription
pagenumbernoa number representing the page number.
perPagenumbernoa number representing the number of items per page.
idnumbernoa number representing the id of the character.
isBirthdaybooleannoa boolean representing whether it is the character's birthday.
searchstringnoa string representing the search term.
id_notnumbernoa number representing the id that should not be included.
id_innumber[]noan array of numbers representing the ids that should be included.
id_not_innumber[]noan array of numbers representing the ids that should not be included.
sortstring[]noan array of strings representing the sort order.
asHtmlbooleannoa boolean representing whether to return the result as HTML.
mediaSortstring[]noan array of strings representing the media sort order.
mediaOnListbooleannoa boolean representing whether the media is on the list.
mediaPagenumbernoa number representing the media page number.
mediaPerPagenumbernoa number representing the number of media items per page.
FieldTypeDescription
pageInfoPageInfoThe pagination information
charactersCharacterResponse[]a list of `CharacterResponse` entries representing the characters.
  • AniLinkApiError — non-success AniList HTTP response
  • AniLinkGraphQLError — HTTP 200 response carrying GraphQL errors
  • AniLinkNetworkError — timeout, cancellation, or transport failure

Example

TypeScript
await aniLink.anilist.query.page.characters({page: 1, perPage: 10});

anilist.query.page.staffs

StaffsQuery fetches a page of staff members. Returns a StaffsPageResponse with the items and PageInfo.

Signature

TypeScript
staffs(variables: StaffsVariables, options?: RequestOptions): Promise<StaffsPageResponse>

Auth: Not required — public data. Pass a token for viewer-scoped fields.

NameTypeRequiredDescription
pagenumbernoa number representing the page number.
perPagenumbernoa number representing the number of items per page.
idnumbernoa number representing the id of the staff.
isBirthdaybooleannoa boolean representing whether it is the staff's birthday.
searchstringnoa string representing the search term.
id_notnumbernoa number representing the id of the staff that should not be included.
id_innumber[]noan array of numbers representing the ids of the staff that should be included.
id_not_innumber[]noan array of numbers representing the ids of the staff that should not be included.
sortstring[]noan array of strings representing the sort order.
asHtmlbooleannoa boolean representing whether to return the result as HTML.
staffMediaSortstring[]noan array of strings representing the sort order for staff media.
staffMediaTypestringnoa string representing the type of the staff media.
staffMediaOnListbooleannoa boolean representing whether the staff media is on the list.
staffMediaPagenumbernoa number representing the page number for staff media.
staffMediaPerPagenumbernoa number representing the number of staff media items per page.
charactersSortstring[]noan array of strings representing the sort order for characters.
charactersPagenumbernoa number representing the page number for characters.
charactersPerPagenumbernoa number representing the number of characters per page.
characterMediaSortstring[]noan array of strings representing the sort order for character media.
characterMediaOnListbooleannoa boolean representing whether the character media is on the list.
characterMediaPagenumbernoa number representing the page number for character media.
characterMediaPerPagenumbernoa number representing the number of character media items per page.
FieldTypeDescription
pageInfoPageInfoThe pagination information
staffStaffResponse[]a list of `StaffResponse` entries representing the staff.
  • AniLinkApiError — non-success AniList HTTP response
  • AniLinkGraphQLError — HTTP 200 response carrying GraphQL errors
  • AniLinkNetworkError — timeout, cancellation, or transport failure

Example

TypeScript
await aniLink.anilist.query.page.staffs({page: 1, perPage: 10});

anilist.query.page.studios

StudiosQuery fetches a page of studios. Returns a StudiosPageResponse with the items and PageInfo.

Signature

TypeScript
studios(variables: StudiosVariables, options?: RequestOptions): Promise<StudiosPageResponse>

Auth: Not required — public data. Pass a token for viewer-scoped fields.

NameTypeRequiredDescription
pagenumbernoa number representing the page number.
perPagenumbernoa number representing the number of items per page.
idnumbernoa number representing the id of the studio.
searchstringnoa string representing the search term.
id_notnumbernoa number representing the id of the studio that should not be included.
id_innumber[]noan array of numbers representing the ids of the studios that should be included.
id_not_innumber[]noan array of numbers representing the ids of the studios that should not be included.
sortstring[]noan array of strings representing the sort order.
asHtmlbooleannoa boolean representing whether to return the result as HTML.
mediaSortstring[]noan array of strings representing the sort order for media.
mediaIsMainbooleannoa boolean representing whether the media is main.
mediaOnListbooleannoa boolean representing whether the media is on the list.
mediaPagenumbernoa number representing the page number for media.
mediaPerPagenumbernoa number representing the number of media items per page.
staffMediaSortstring[]noan array of strings representing the sort order for staff media.
staffMediaTypestringnoa string representing the type of the staff media.
staffMediaOnListbooleannoa boolean representing whether the staff media is on the list.
staffMediaPagenumbernoa number representing the page number for staff media.
staffMediaPerPagenumbernoa number representing the number of staff media items per page.
charactersSortstring[]noan array of strings representing the sort order for characters.
charactersPagenumbernoa number representing the page number for characters.
charactersPerPagenumbernoa number representing the number of characters per page.
characterMediaSortstring[]noan array of strings representing the sort order for character media.
characterMediaOnListbooleannoa boolean representing whether the character media is on the list.
characterMediaPagenumbernoa number representing the page number for character media.
characterMediaPerPagenumbernoa number representing the number of character media items per page.
FieldTypeDescription
pageInfoPageInfoThe pagination information
studiosStudioResponse[]a list of `StudioResponse` entries representing the studios.
  • AniLinkApiError — non-success AniList HTTP response
  • AniLinkGraphQLError — HTTP 200 response carrying GraphQL errors
  • AniLinkNetworkError — timeout, cancellation, or transport failure

Example

TypeScript
await aniLink.anilist.query.page.studios({page: 1, perPage: 10});

anilist.query.page.mediaLists

MediaListsQuery fetches a page of media list entries. Returns a MediaListsPageResponse with the items and PageInfo.

Signature

TypeScript
mediaLists(variables: MediaListsVariables, options?: RequestOptions): Promise<MediaListsPageResponse>

Auth: Not required — public data. Pass a token for viewer-scoped fields.

NameTypeRequiredDescription
pagenumbernoa number representing the page number.
perPagenumbernoa number representing the number of items per page.
idnumbernoa number representing the id of the media list.
userIdnumbernoa number representing the id of the user.
userNamestringnoa string representing the name of the user.
typestringnoa string representing the type of the media.
statusstringnoa string representing the status of the media list.
mediaIdnumbernoa number representing the id of the media.
isFollowingbooleannoa boolean representing whether the user is following the media.
notesstringnoa string representing the notes for the media list.
startedAtnumbernoa number representing the start date of the media list.
completedAtnumbernoa number representing the completion date of the media list.
compareWithAuthListbooleannoa boolean representing whether to compare with the authenticated list.
userId_innumber[]noan array of numbers representing the user ids that should be included.
status_instring[]noan array of strings representing the statuses that should be included.
status_not_instring[]noan array of strings representing the statuses that should not be included.
status_notstringnoa string representing the status that should not be included.
mediaId_innumber[]noan array of numbers representing the media ids that should be included.
mediaId_not_innumber[]noan array of numbers representing the media ids that should not be included.
notes_likestringnoa string representing the notes that should be included.
startedAt_greaternumbernoa number representing the minimum start date.
startedAt_lessernumbernoa number representing the maximum start date.
startedAt_likestringnoa string representing the start date that should be included.
completedAt_greaternumbernoa number representing the minimum completion date.
completedAt_lessernumbernoa number representing the maximum completion date.
completedAt_likestringnoa string representing the completion date that should be included.
sortstring[]noan array of strings representing the sort order.
scoreFormatstringnoa string representing the score format.
asArraybooleannoa boolean representing whether to return the result as an array.
asHtmlbooleannoa boolean representing whether to return the result as HTML.
FieldTypeDescription
pageInfoPageInfoThe pagination information
mediaListMediaListResponse[]a list of `MediaListResponse` entries representing the media list.
  • AniLinkApiError — non-success AniList HTTP response
  • AniLinkGraphQLError — HTTP 200 response carrying GraphQL errors
  • AniLinkNetworkError — timeout, cancellation, or transport failure

Example

TypeScript
await aniLink.anilist.query.page.mediaLists({page: 1, perPage: 10, userId: 542244});

anilist.query.page.airingSchedules

AiringSchedulesQuery fetches a page of airing schedule entries. Returns an AiringSchedulesPageResponse with the items and PageInfo.

Signature

TypeScript
airingSchedules(variables: AiringSchedulesVariables, options?: RequestOptions): Promise<AiringSchedulesPageResponse>

Auth: Not required — public data. Pass a token for viewer-scoped fields.

NameTypeRequiredDescription
pagenumbernoa number representing the page number.
perPagenumbernoa number representing the number of items per page.
idnumbernoa number representing the id of the airing schedule.
mediaIdnumbernoa number representing the id of the media associated with the airing schedule.
episodenumbernoa number representing the episode number of the airing schedule.
airingAtnumbernoa number representing the airing time of the airing schedule.
notYetAiredbooleannoa boolean representing whether the airing schedule has not yet aired.
id_notnumbernoa number representing the id that should not be included.
id_innumber[]noan array of numbers representing the ids that should be included.
id_not_innumber[]noan array of numbers representing the ids that should not be included.
mediaId_notnumbernoa number representing the media id that should not be included.
mediaId_innumber[]noan array of numbers representing the media ids that should be included.
mediaId_not_innumber[]noan array of numbers representing the media ids that should not be included.
episode_notnumbernoa number representing the episode number that should not be included.
episode_innumber[]noan array of numbers representing the episode numbers that should be included.
episode_not_innumber[]noan array of numbers representing the episode numbers that should not be included.
episode_greaternumbernoa number representing the minimum episode number.
episode_lessernumbernoa number representing the maximum episode number.
airingAt_greaternumbernoa number representing the minimum airing time.
airingAt_lessernumbernoa number representing the maximum airing time.
sortstring[]noan array of strings representing the sort order.
asHtmlbooleannoa boolean representing whether to return the result as HTML.
FieldTypeDescription
pageInfoPageInfoThe pagination information
airingSchedulesAiringScheduleResponse[]a list of `AiringScheduleResponse` entries representing the airing schedules.
  • AniLinkApiError — non-success AniList HTTP response
  • AniLinkGraphQLError — HTTP 200 response carrying GraphQL errors
  • AniLinkNetworkError — timeout, cancellation, or transport failure

Example

TypeScript
await aniLink.anilist.query.page.airingSchedules({page: 1, perPage: 10});

anilist.query.page.mediaTrends

MediaTrendsQuery fetches a page of media trend entries. Returns a MediaTrendsPageResponse with the items and PageInfo.

Signature

TypeScript
mediaTrends(variables: MediaTrendsVariables, options?: RequestOptions): Promise<MediaTrendsPageResponse>

Auth: Not required — public data. Pass a token for viewer-scoped fields.

NameTypeRequiredDescription
pagenumbernoa number representing the page number.
perPagenumbernoa number representing the number of items per page.
mediaIdnumbernoa number representing the id of the media.
datenumbernoa number representing the date.
trendingnumbernoa number representing the trending score.
averageScorenumbernoa number representing the average score.
popularitynumbernoa number representing the popularity score.
episodenumbernoa number representing the episode number.
releasingbooleannoa boolean representing whether the media is releasing.
mediaId_notnumbernoa number representing the id of the media that should not be included.
mediaId_innumber[]noan array of numbers representing the ids of the media that should be included.
mediaId_not_innumber[]noan array of numbers representing the ids of the media that should not be included.
date_greaternumbernoa number representing the minimum date.
date_lessernumbernoa number representing the maximum date.
trending_greaternumbernoa number representing the minimum trending score.
trending_lessernumbernoa number representing the maximum trending score.
trending_notnumbernoa number representing the trending score that should not be included.
averageScore_greaternumbernoa number representing the minimum average score.
averageScore_lessernumbernoa number representing the maximum average score.
averageScore_notnumbernoa number representing the average score that should not be included.
popularity_greaternumbernoa number representing the minimum popularity score.
popularity_lessernumbernoa number representing the maximum popularity score.
popularity_notnumbernoa number representing the popularity score that should not be included.
episode_greaternumbernoa number representing the minimum episode number.
episode_lessernumbernoa number representing the maximum episode number.
episode_notnumbernoa number representing the episode number that should not be included.
sortstring[]noan array of strings representing the sort order.
asHtmlbooleannoa boolean representing whether to return the result as HTML.
FieldTypeDescription
pageInfoPageInfoThe pagination information
mediaTrendsMediaTrendResponse[]a list of `MediaTrendResponse` entries representing the media trends.
  • AniLinkApiError — non-success AniList HTTP response
  • AniLinkGraphQLError — HTTP 200 response carrying GraphQL errors
  • AniLinkNetworkError — timeout, cancellation, or transport failure

Example

TypeScript
await aniLink.anilist.query.page.mediaTrends({page: 1, perPage: 10, type: 'ANIME'});

anilist.query.page.notifications

NotificationsQuery fetches a page of the authenticated user's notifications. Returns a NotificationsPageResponse with the items and PageInfo. Must be authenticated.

Signature

TypeScript
notifications(variables: NotificationsVariables, options?: RequestOptions): Promise<NotificationsPageResponse>

Auth: Not required — public data. Pass a token for viewer-scoped fields.

NameTypeRequiredDescription
pagenumbernoa number representing the page number.
perPagenumbernoa number representing the number of items per page.
typestringnoa string representing the type of the notification.
resetNotificationCountbooleannoa boolean representing whether to reset the notification count.
type_instring[]noan array of strings representing the types of notifications that should be included.
asHtmlbooleannoa boolean representing whether to return the result as HTML.
FieldTypeDescription
pageInfoPageInfoThe pagination information
notificationsNotificationResponse[]a list of `NotificationResponse` entries representing the notifications.
  • AniLinkApiError — non-success AniList HTTP response
  • AniLinkGraphQLError — HTTP 200 response carrying GraphQL errors
  • AniLinkNetworkError — timeout, cancellation, or transport failure

Example

TypeScript
await aniLink.anilist.query.page.notifications({page: 1, perPage: 10});

anilist.query.page.followers

FollowersQuery fetches a page of a user's followers. Returns a FollowersPageResponse with the items and PageInfo.

Signature

TypeScript
followers(variables: FollowersVariables, options?: RequestOptions): Promise<FollowersPageResponse>

Auth: Not required — public data. Pass a token for viewer-scoped fields.

NameTypeRequiredDescription
pagenumbernoa number representing the page number.
perPagenumbernoa number representing the number of items per page.
userIdnumberyesa number representing the id of the user.
asHtmlbooleannoa boolean representing whether the response text is returned as HTML.
sortstringnoa string representing the sort order.
animeStatLimitnumbernoa number representing the limit for anime statistics.
mangaStatLimitnumbernoa number representing the limit for manga statistics.
animeStatSortstring[]noan array of strings representing the sort order for anime statistics.
mangaStatSortstring[]noan array of strings representing the sort order for manga statistics.
FieldTypeDescription
pageInfoPageInfoThe pagination information
followersUserResponse[]a list of `UserResponse` entries representing the followers.
  • AniLinkApiError — non-success AniList HTTP response
  • AniLinkGraphQLError — HTTP 200 response carrying GraphQL errors
  • AniLinkNetworkError — timeout, cancellation, or transport failure

Example

TypeScript
await aniLink.anilist.query.page.followers({page: 1, perPage: 10, userId: 542244});

anilist.query.page.following

FollowingQuery fetches a single user that the given userId follows. Returns a UserResponse.

Signature

TypeScript
following(variables: FollowingsVariables, options?: RequestOptions): Promise<FollowingsPageResponse>

Auth: Not required — public data. Pass a token for viewer-scoped fields.

NameTypeRequiredDescription
pagenumbernoa number representing the page number.
perPagenumbernoa number representing the number of items per page.
userIdnumberyesa number representing the id of the user.
asHtmlbooleannoa boolean representing whether the response text is returned as HTML.
sortstringnoa string representing the sort order.
animeStatLimitnumbernoa number representing the limit for anime statistics.
mangaStatLimitnumbernoa number representing the limit for manga statistics.
animeStatSortstring[]noan array of strings representing the sort order for anime statistics.
mangaStatSortstring[]noan array of strings representing the sort order for manga statistics.
FieldTypeDescription
pageInfoPageInfoThe pagination information
followingUserResponse[]a list of `UserResponse` entries representing the following.
  • AniLinkApiError — non-success AniList HTTP response
  • AniLinkGraphQLError — HTTP 200 response carrying GraphQL errors
  • AniLinkNetworkError — timeout, cancellation, or transport failure

Example

TypeScript
await aniLink.anilist.query.following({userId: 542244});

anilist.query.page.activities

ActivitiesQuery fetches a page of activities. Returns an ActivitiesPageResponse with the items and PageInfo.

Signature

TypeScript
activities(variables: ActivitiesVariables, options?: RequestOptions): Promise<ActivitiesPageResponse>

Auth: Not required — public data. Pass a token for viewer-scoped fields.

NameTypeRequiredDescription
pagenumbernoa number representing the page number.
perPagenumbernoa number representing the number of items per page.
idnumbernoa number representing the id of the activity.
userIdnumbernoa number representing the id of the user.
messengerIdnumbernoa number representing the id of the messenger.
mediaIdnumbernoa number representing the id of the media.
typestringnoa string representing the type of the activity.
isFollowingbooleannoa boolean representing whether the user is following.
hasRepliesbooleannoa boolean representing whether the activity has replies.
hasRepliesOrTypeTextbooleannoa boolean representing whether the activity has replies or type text.
createdAtnumbernoa number representing the creation time of the activity.
id_notnumbernoa number representing the id that should not be included.
id_innumber[]noan array of numbers representing the ids that should be included.
id_not_innumber[]noan array of numbers representing the ids that should not be included.
userId_notnumbernoa number representing the user id that should not be included.
userId_innumber[]noan array of numbers representing the user ids that should be included.
userId_not_innumber[]noan array of numbers representing the user ids that should not be included.
messengerId_notnumbernoa number representing the messenger id that should not be included.
messengerId_innumber[]noan array of numbers representing the messenger ids that should be included.
messengerId_not_innumber[]noan array of numbers representing the messenger ids that should not be included.
mediaId_notnumbernoa number representing the media id that should not be included.
mediaId_innumber[]noan array of numbers representing the media ids that should be included.
mediaId_not_innumber[]noan array of numbers representing the media ids that should not be included.
type_notstringnoa string representing the type that should not be included.
type_instring[]noan array of strings representing the types that should be included.
type_not_instring[]noan array of strings representing the types that should not be included.
createdAt_greaternumbernoa number representing the minimum creation time.
sortstring[]noan array of strings representing the sort order.
asHtmlbooleannoa boolean representing whether to return the result as HTML.
FieldTypeDescription
pageInfoPageInfoThe pagination information
activitiesActivity[]a list of `Activity` entries representing the activities.
  • AniLinkApiError — non-success AniList HTTP response
  • AniLinkGraphQLError — HTTP 200 response carrying GraphQL errors
  • AniLinkNetworkError — timeout, cancellation, or transport failure

Example

TypeScript
await aniLink.anilist.query.page.activities({page: 1, perPage: 10, userId: 542244});

anilist.query.page.activityReplies

ActivityRepliesQuery fetches a page of replies for an activity. Returns an ActivityRepliesPageResponse with the items and PageInfo.

Signature

TypeScript
activityReplies(variables: ActivityRepliesVariables, options?: RequestOptions): Promise<ActivityRepliesPageResponse>

Auth: Not required — public data. Pass a token for viewer-scoped fields.

NameTypeRequiredDescription
pagenumbernoa number representing the page number.
perPagenumbernoa number representing the number of items per page.
idnumbernoa number representing the id of the activity reply.
activityIdnumbernoa number representing the id of the activity.
asHtmlbooleannoa boolean representing whether to return the result as HTML.
FieldTypeDescription
pageInfoPageInfoThe pagination information
activityRepliesActivityReply[]a list of `ActivityReply` entries representing the activity replies.
  • AniLinkApiError — non-success AniList HTTP response
  • AniLinkGraphQLError — HTTP 200 response carrying GraphQL errors
  • AniLinkNetworkError — timeout, cancellation, or transport failure

Example

TypeScript
await aniLink.anilist.query.page.activityReplies({page: 1, perPage: 10, activityId: 723235883});

anilist.query.page.threads

ThreadsQuery fetches a page of forum threads. Returns a ThreadsPageResponse with the items and PageInfo.

Signature

TypeScript
threads(variables: ThreadsVariables, options?: RequestOptions): Promise<ThreadsPageResponse>

Auth: Not required — public data. Pass a token for viewer-scoped fields.

NameTypeRequiredDescription
pagenumbernoa number representing the page number.
perPagenumbernoa number representing the number of items per page.
idnumbernoa number representing the id of the thread.
userIdnumbernoa number representing the id of the user.
replyUserIdnumbernoa number representing the id of the reply user.
subscribedbooleannoa boolean representing whether the user is subscribed.
categoryIdnumbernoa number representing the id of the category.
mediaCategoryIdnumbernoa number representing the id of the media category.
searchstringnoa string representing the search term.
id_innumber[]noan array of numbers representing the ids of the threads that should be included.
sortstring[]noan array of strings representing the sort order.
asHtmlbooleannoa boolean representing whether to return the result as HTML.
FieldTypeDescription
pageInfoPageInfoThe pagination information
threadsThreadResponse[]a list of `ThreadResponse` entries representing the threads.
  • AniLinkApiError — non-success AniList HTTP response
  • AniLinkGraphQLError — HTTP 200 response carrying GraphQL errors
  • AniLinkNetworkError — timeout, cancellation, or transport failure

Example

TypeScript
await aniLink.anilist.query.page.threads({page: 1, perPage: 10});

anilist.query.page.threadComments

ThreadCommentsQuery fetches a page of comments for a thread. Returns a ThreadCommentsPageResponse with the items and PageInfo.

Signature

TypeScript
threadComments(variables: ThreadCommentsVariables, options?: RequestOptions): Promise<ThreadCommentsPageResponse>

Auth: Not required — public data. Pass a token for viewer-scoped fields.

NameTypeRequiredDescription
pagenumbernoa number representing the page number.
perPagenumbernoa number representing the number of items per page.
idnumbernoa number representing the id of the thread comment.
threadIdnumbernoa number representing the id of the thread.
userIdnumbernoa number representing the id of the user.
sortstring[]noan array of strings representing the sort order.
asHtmlbooleannoa boolean representing whether to return the result as HTML.
FieldTypeDescription
pageInfoPageInfoThe pagination information
threadCommentsThreadCommentResponse[]a list of `ThreadCommentResponse` entries representing the thread comments.
  • AniLinkApiError — non-success AniList HTTP response
  • AniLinkGraphQLError — HTTP 200 response carrying GraphQL errors
  • AniLinkNetworkError — timeout, cancellation, or transport failure

Example

TypeScript
await aniLink.anilist.query.page.threadComments({page: 1, perPage: 10, threadId: 71881});

anilist.query.page.reviews

ReviewsQuery fetches a page of reviews. Returns a ReviewsPageResponse with the items and PageInfo.

Signature

TypeScript
reviews(variables: ReviewsVariables, options?: RequestOptions): Promise<ReviewsPageResponse>

Auth: Not required — public data. Pass a token for viewer-scoped fields.

NameTypeRequiredDescription
pagenumbernoa number representing the page number.
perPagenumbernoa number representing the number of items per page.
idnumbernoa number representing the id of the review.
mediaIdnumbernoa number representing the id of the media.
userIdnumbernoa number representing the id of the user.
mediaTypestringnoa string representing the type of the media.
sortstring[]noan array of strings representing the sort order.
asHtmlbooleannoa boolean representing whether to return the result as HTML.
FieldTypeDescription
pageInfoPageInfoThe pagination information
reviewsReviewResponse[]a list of `ReviewResponse` entries representing the reviews.
  • AniLinkApiError — non-success AniList HTTP response
  • AniLinkGraphQLError — HTTP 200 response carrying GraphQL errors
  • AniLinkNetworkError — timeout, cancellation, or transport failure

Example

TypeScript
await aniLink.anilist.query.page.reviews({page: 1, perPage: 10, mediaId: 1});

anilist.query.page.recommendations

RecommendationsQuery fetches a page of recommendations. Returns a RecommendationsPageResponse with the items and PageInfo.

Signature

TypeScript
recommendations(variables: RecommendationsVariables, options?: RequestOptions): Promise<RecommendationsPageResponse>

Auth: Not required — public data. Pass a token for viewer-scoped fields.

NameTypeRequiredDescription
pagenumbernoa number representing the page number.
perPagenumbernoa number representing the number of items per page.
idnumbernoa number representing the id of the recommendation.
mediaIdnumbernoa number representing the id of the media.
mediaRecommendationIdnumbernoa number representing the id of the media recommendation.
userIdnumbernoa number representing the id of the user.
ratingnumbernoa number representing the rating of the recommendation.
onListbooleannoa boolean representing whether the recommendation is on the list.
rating_greaternumbernoa number representing the minimum rating.
rating_lessernumbernoa number representing the maximum rating.
sortstring[]noan array of strings representing the sort order.
asHtmlbooleannoa boolean representing whether to return the result as HTML.
FieldTypeDescription
pageInfoPageInfoThe pagination information
recommendationsRecommendationResponse[]a list of `RecommendationResponse` entries representing the recommendations.
  • AniLinkApiError — non-success AniList HTTP response
  • AniLinkGraphQLError — HTTP 200 response carrying GraphQL errors
  • AniLinkNetworkError — timeout, cancellation, or transport failure

Example

TypeScript
await aniLink.anilist.query.page.recommendations({page: 1, perPage: 10, mediaId: 1});

anilist.query.page.likes

LikesQuery fetches a page of users who liked a likeable entity. Returns a LikesPageResponse with the items and PageInfo.

Signature

TypeScript
likes(variables: LikesVariables, options?: RequestOptions): Promise<LikesPageResponse>

Auth: Not required — public data. Pass a token for viewer-scoped fields.

NameTypeRequiredDescription
likeableIdnumbernoa number representing the id of the likeable item.
typeLikeableTypenoa string representing the type of the likeable item.
pagenumbernoa number representing the page number.
perPagenumbernoa number representing the number of items per page.
FieldTypeDescription
pageInfoPageInfoThe pagination information
likesBasicUser[]a list of `BasicUser` entries representing the likes.
  • AniLinkApiError — non-success AniList HTTP response
  • AniLinkGraphQLError — HTTP 200 response carrying GraphQL errors
  • AniLinkNetworkError — timeout, cancellation, or transport failure

Example

TypeScript
await aniLink.anilist.query.page.likes({page: 1, perPage: 10, likeAbleId: 1});

AniLink — typed AniList & MyAnimeList client for TypeScript.