Basic Schema Documentation¶
This is the documentation for the basic schemas.
Activity Schema¶
ACTIVITYNOTIFICATIONSCHEMA
module-attribute
¶
ACTIVITYNOTIFICATIONSCHEMA = f'
id
userId
type
activityId
context
createdAt
{ACTIVITYSCHEMA}
user {
{BASICUSERSCHEMA}
}
'
This is the ActivityNotificationSchema for the Anilist API. It defines the structure of the activity notification data.
ATTRIBUTE | DESCRIPTION |
---|---|
id |
The id of the notification.
TYPE:
|
userId |
The id of the user who created the notification.
TYPE:
|
type |
The type of the notification.
TYPE:
|
activityId |
The id of the activity related to the notification.
TYPE:
|
context |
The context of the notification.
TYPE:
|
createdAt |
The timestamp when the notification was created.
TYPE:
|
ActivitySchema |
The details of the activity related to the notification.
TYPE:
|
BASICUSERSCHEMA |
The details of the user who created the notification.
TYPE:
|
ACTIVITYREPLYSCHEMA
module-attribute
¶
ACTIVITYREPLYSCHEMA = f'
id
userId
activityId
text (asHtml: $asHtml)
likeCount
isLiked
createdAt
user {
{BASICUSERSCHEMA}
}
likes {
{BASICUSERSCHEMA}
}
'
This is the ActivityReplySchema for the Anilist API. It defines the structure of the activity reply data.
ATTRIBUTE | DESCRIPTION |
---|---|
id |
The id of the activity.
TYPE:
|
userId |
The id of the user who created the activity.
TYPE:
|
activityId |
The id of the activity.
TYPE:
|
text |
The text of the activity.
TYPE:
|
likeCount |
The count of likes on the activity.
TYPE:
|
isLiked |
Whether the activity is liked by the user.
TYPE:
|
createdAt |
The timestamp when the activity was created.
TYPE:
|
user |
The user who created the activity.
TYPE:
|
likes |
The list of users who liked the activity.
TYPE:
|
ACTIVITYSCHEMA
module-attribute
¶
ACTIVITYSCHEMA = '\n ... on TextActivity {\n id\n userId\n type\n replyCount\n text (asHtml: $asHtml)\n siteUrl\n isLocked\n isSubscribed\n likeCount\n isLiked\n isPinned\n createdAt\n }\n ... on ListActivity {\n id\n userId\n type\n replyCount\n status\n progress\n isLocked\n isSubscribed\n likeCount\n isLiked\n isPinned\n siteUrl\n createdAt\n media {\n id\n title {\n romaji\n english\n }\n }\n }\n ... on MessageActivity {\n id\n recipientId\n messengerId\n type\n replyCount\n message (asHtml: $asHtml)\n isLocked\n isSubscribed\n likeCount\n isLiked\n isPrivate\n siteUrl\n createdAt\n }\n'
This is the ActivitySchema for the Anilist API. It defines the structure of the activity data
ATTRIBUTE | DESCRIPTION |
---|---|
id |
The id of the activity.
TYPE:
|
userId |
The id of the user who created the activity.
TYPE:
|
type |
The type of the activity.
TYPE:
|
replyCount |
The count of replies on the activity.
TYPE:
|
text |
The text of the activity.
TYPE:
|
siteUrl |
The site URL of the activity.
TYPE:
|
isLocked |
Whether the activity is locked.
TYPE:
|
isSubscribed |
Whether the user is subscribed to the activity.
TYPE:
|
likeCount |
The count of likes on the activity.
TYPE:
|
isLiked |
Whether the activity is liked by the user.
TYPE:
|
isPinned |
Whether the activity is pinned.
TYPE:
|
createdAt |
The timestamp when the activity was created.
TYPE:
|
ACTIVITYSCHEMAV2
module-attribute
¶
ACTIVITYSCHEMAV2 = f'
... on TextActivity {
id
userId
type
replyCount
text (asHtml: $asHtml)
siteUrl
isLocked
isSubscribed
likeCount
isLiked
isPinned
createdAt
user {
{BASICUSERSCHEMA}
}
replies {
{ACTIVITYREPLYSCHEMA}
}
likes {
{BASICUSERSCHEMA}
}
}
... on ListActivity {
id
userId
type
replyCount
status
progress
isLocked
isSubscribed
likeCount
isLiked
isPinned
siteUrl
createdAt
media {
id
title {
romaji
english
}
}
user {
{BASICUSERSCHEMA}
}
replies {
{ACTIVITYREPLYSCHEMA}
}
likes {
{BASICUSERSCHEMA}
}
}
... on MessageActivity {
id
recipientId
messengerId
type
replyCount
message (asHtml: $asHtml)
isLocked
isSubscribed
likeCount
isLiked
isPrivate
siteUrl
createdAt
recipient {
{BASICUSERSCHEMA}
}
messenger {
{BASICUSERSCHEMA}
}
replies {
{ACTIVITYREPLYSCHEMA}
}
likes {
{BASICUSERSCHEMA}
}
}
... on ActivityReply {
id
userId
activityId
text (asHtml: $asHtml)
likeCount
isLiked
createdAt
user {
{BASICUSERSCHEMA}
}
likes {
{BASICUSERSCHEMA}
}
}
... on Thread {
id
title
body (asHtml: $asHtml)
ThreadUserId: userId
replyUserId
replyCommentId
ThreadReplyCount: replyCount
viewCount
isLocked
isSticky
isSubscribed
likeCount
isLiked
repliedAt
createdAt
updatedAt
user {
{BASICUSERSCHEMA}
}
replyUser {
{BASICUSERSCHEMA}
}
likes {
{BASICUSERSCHEMA}
}
siteUrl
categories {
id
name
}
mediaCategories {
id
{TITLESCHEMA}
}
}
... on ThreadComment {
id
userId
threadId
comment (asHtml: $asHtml)
likeCount
isLiked
siteUrl
createdAt
updatedAt
thread {
id
title
}
user {
{BASICUSERSCHEMA}
}
likes {
{BASICUSERSCHEMA}
}
childComments
isLocked
}
'
This is the ActivitySchemaV2 for the Anilist API. It defines the structure of the activity data
ATTRIBUTE | DESCRIPTION |
---|---|
id |
The id of the activity.
TYPE:
|
userId |
The id of the user who created the activity.
TYPE:
|
type |
The type of the activity.
TYPE:
|
replyCount |
The count of replies on the activity.
TYPE:
|
text |
The text of the activity.
TYPE:
|
siteUrl |
The site URL of the activity.
TYPE:
|
isLocked |
Whether the activity is locked.
TYPE:
|
isSubscribed |
Whether the user is subscribed to the activity.
TYPE:
|
likeCount |
The count of likes on the activity.
TYPE:
|
isLiked |
Whether the activity is liked by the user.
TYPE:
|
isPinned |
Whether the activity is pinned.
TYPE:
|
createdAt |
The timestamp when the activity was created.
TYPE:
|
user |
The user who created the activity.
TYPE:
|
replies |
The list of replies to the activity.
TYPE:
|
likes |
The list of users who liked the activity.
TYPE:
|
ACTIVITYWITHREPLIESSCHEMA
module-attribute
¶
ACTIVITYWITHREPLIESSCHEMA = f'
... on TextActivity {
id
userId
type
replyCount
text (asHtml: $asHtml)
siteUrl
isLocked
isSubscribed
likeCount
isLiked
isPinned
createdAt
user {
{BASICUSERSCHEMA}
}
replies {
{ACTIVITYREPLYSCHEMA}
}
likes {
{BASICUSERSCHEMA}
}
}
... on ListActivity {
id
userId
type
replyCount
status
progress
isLocked
isSubscribed
likeCount
isLiked
isPinned
siteUrl
createdAt
media {
id
title {
romaji
english
}
}
user {
{BASICUSERSCHEMA}
}
replies {
{ACTIVITYREPLYSCHEMA}
}
likes {
{BASICUSERSCHEMA}
}
}
... on MessageActivity {
id
recipientId
messengerId
type
replyCount
message (asHtml: $asHtml)
isLocked
isSubscribed
likeCount
isLiked
isPrivate
siteUrl
createdAt
recipient {
{BASICUSERSCHEMA}
}
messenger {
{BASICUSERSCHEMA}
}
replies {
{ACTIVITYREPLYSCHEMA}
}
likes {
{BASICUSERSCHEMA}
}
}
'
This is the ActivityWithRepliesSchema for the Anilist API. It defines the structure of the activity data
ATTRIBUTE | DESCRIPTION |
---|---|
id |
The id of the activity.
TYPE:
|
userId |
The id of the user who created the activity.
TYPE:
|
type |
The type of the activity.
TYPE:
|
replyCount |
The count of replies on the activity.
TYPE:
|
text |
The text of the activity.
TYPE:
|
siteUrl |
The site URL of the activity.
TYPE:
|
isLocked |
Whether the activity is locked.
TYPE:
|
isSubscribed |
Whether the user is subscribed to the activity.
TYPE:
|
likeCount |
The count of likes on the activity.
TYPE:
|
isLiked |
Whether the activity is liked by the user.
TYPE:
|
isPinned |
Whether the activity is pinned.
TYPE:
|
createdAt |
The timestamp when the activity was created.
TYPE:
|
user |
The user who created the activity.
TYPE:
|
replies |
The list of replies to the activity.
TYPE:
|
likes |
The list of users who liked the activity.
TYPE:
|
LISTACTIVITYSCHEMA
module-attribute
¶
LISTACTIVITYSCHEMA = f'
id
userId
type
replyCount
status
progress
isLocked
isSubscribed
likeCount
isLiked
isPinned
siteUrl
createdAt
media {
id
title {
romaji
english
}
}
user {
{BASICUSERSCHEMA}
}
replies {
{ACTIVITYREPLYSCHEMA}
}
likes {
{BASICUSERSCHEMA}
}
'
This is the ListActivitySchema for the Anilist API. It defines the structure of the list activity data.
ATTRIBUTE | DESCRIPTION |
---|---|
id |
The id of the list activity.
TYPE:
|
userId |
The id of the user who created the list activity.
TYPE:
|
type |
The type of the list activity.
TYPE:
|
replyCount |
The count of replies on the list activity.
TYPE:
|
status |
The status of the list activity.
TYPE:
|
progress |
The progress of the list activity.
TYPE:
|
isLocked |
Whether the list activity is locked.
TYPE:
|
isSubscribed |
Whether the user is subscribed to the list activity.
TYPE:
|
likeCount |
The count of likes on the list activity.
TYPE:
|
isLiked |
Whether the list activity is liked by the user.
TYPE:
|
isPinned |
Whether the list activity is pinned.
TYPE:
|
siteUrl |
The site URL of the list activity.
TYPE:
|
createdAt |
The timestamp when the list activity was created.
TYPE:
|
media |
The media details of the list activity.
TYPE:
|
user |
The user who created the list activity.
TYPE:
|
replies |
The list of replies to the list activity.
TYPE:
|
likes |
The list of users who liked the list activity.
TYPE:
|
MESSAGEACTIVITYSCHEMA
module-attribute
¶
MESSAGEACTIVITYSCHEMA = f'
id
recipientId
messengerId
type
replyCount
message (asHtml: $asHtml)
isLocked
isSubscribed
likeCount
isLiked
isPrivate
siteUrl
createdAt
recipient {
{BASICUSERSCHEMA}
}
messenger {
{BASICUSERSCHEMA}
}
replies {
{ACTIVITYREPLYSCHEMA}
}
likes {
{BASICUSERSCHEMA}
}
'
This is the MessageActivitySchema for the Anilist API. It defines the structure of the message activity data.
ATTRIBUTE | DESCRIPTION |
---|---|
id |
The id of the message activity.
TYPE:
|
recipientId |
The id of the recipient of the message activity.
TYPE:
|
messengerId |
The id of the messenger of the message activity.
TYPE:
|
type |
The type of the message activity.
TYPE:
|
replyCount |
The count of replies on the message activity.
TYPE:
|
message |
The message of the message activity.
TYPE:
|
isLocked |
Whether the message activity is locked.
TYPE:
|
isSubscribed |
Whether the user is subscribed to the message activity.
TYPE:
|
likeCount |
The count of likes on the message activity.
TYPE:
|
isLiked |
Whether the message activity is liked by the user.
TYPE:
|
isPrivate |
Whether the message activity is private.
TYPE:
|
siteUrl |
The site URL of the message activity.
TYPE:
|
createdAt |
The timestamp when the message activity was created.
TYPE:
|
recipient |
The recipient of the message activity.
TYPE:
|
messenger |
The messenger of the message activity.
TYPE:
|
replies |
The list of replies to the message activity.
TYPE:
|
likes |
The list of users who liked the message activity.
TYPE:
|
TEXTACTIVITYSCHEMA
module-attribute
¶
TEXTACTIVITYSCHEMA = f'
id
userId
type
replyCount
text (asHtml: $asHtml)
siteUrl
isLocked
isSubscribed
likeCount
isLiked
isPinned
createdAt
user {
{BASICUSERSCHEMA}
}
replies {
{ACTIVITYREPLYSCHEMA}
}
likes {
{BASICUSERSCHEMA}
}
'
This is the TextActivitySchema for the Anilist API. It defines the structure of the text activity data.
ATTRIBUTE | DESCRIPTION |
---|---|
id |
The id of the text activity.
TYPE:
|
userId |
The id of the user who created the text activity.
TYPE:
|
type |
The type of the text activity.
TYPE:
|
replyCount |
The count of replies on the text activity.
TYPE:
|
text |
The text of the text activity.
TYPE:
|
siteUrl |
The site URL of the text activity.
TYPE:
|
isLocked |
Whether the text activity is locked.
TYPE:
|
isSubscribed |
Whether the user is subscribed to the text activity.
TYPE:
|
likeCount |
The count of likes on the text activity.
TYPE:
|
isLiked |
Whether the text activity is liked by the user.
TYPE:
|
isPinned |
Whether the text activity is pinned.
TYPE:
|
createdAt |
The timestamp when the text activity was created.
TYPE:
|
user |
The user who created the text activity.
TYPE:
|
replies |
The list of replies to the text activity.
TYPE:
|
likes |
The list of users who liked the text activity.
TYPE:
|
Basic Schema's¶
BASICCOMMENTSCHEMA
module-attribute
¶
This is the BasicCommentSchema for the AniList API. It defines the structure of the image data that is expected to be returned from the API.
ATTRIBUTE | DESCRIPTION |
---|---|
id |
The id of the comment.
TYPE:
|
userId |
The id of the user who made the comment.
TYPE:
|
threadId |
The id of the thread where the comment is.
TYPE:
|
BASICTHREADSCHEMA
module-attribute
¶
This is the BasicThreadSchema for the AniList API. It defines the structure of the image data that is expected to be returned from the API.
ATTRIBUTE | DESCRIPTION |
---|---|
id |
The id of the thread.
TYPE:
|
title |
The title of the thread.
TYPE:
|
body |
The body of the thread.
TYPE:
|
siteUrl |
The site URL of the thread.
TYPE:
|
BASICUSERSCHEMA
module-attribute
¶
This is the BasicUserSchema for the AniList API. It defines the structure of the image data that is expected to be returned from the API.
ATTRIBUTE | DESCRIPTION |
---|---|
id |
The id of the user.
TYPE:
|
name |
The name of the user.
TYPE:
|
avatar |
The avatar of the user with a large size.
TYPE:
|
CoverImage Schema¶
COVERIMAGESCHEMA
module-attribute
¶
This is the CoverImageSchema for the Anilist API. It defines the structure of the cover image data that is expected to be returned from the API.
ATTRIBUTE | DESCRIPTION |
---|---|
extraLarge |
The URL of the extra large cover image.
TYPE:
|
large |
The URL of the large cover image.
TYPE:
|
medium |
The URL of the medium cover image.
TYPE:
|
Distribution Schema¶
SCOREDISTRIBUTIONSCHEMA
module-attribute
¶
This is the DistributionSchema for the AniList API. It defines the structure of the distribution data that is expected to be
ATTRIBUTE | DESCRIPTION |
---|---|
score |
The score of the distribution.
TYPE:
|
amount |
The amount of the distribution.
TYPE:
|
STATUSDISTRIBUTIONSCHEMA
module-attribute
¶
This is the DistributionSchema for the AniList API. It defines the structure of the distribution data that is expected to be
ATTRIBUTE | DESCRIPTION |
---|---|
status |
The status of the distribution.
TYPE:
|
amount |
The amount of the distribution.
TYPE:
|
ExternalLink Schema¶
EXTERNALLINKSCHEMA
module-attribute
¶
This is the ExternalLinkSchema for the AniList API. It defines the structure of the external link data that is expected to be
ATTRIBUTE | DESCRIPTION |
---|---|
id |
The id of the external link.
TYPE:
|
url |
The url of the external link.
TYPE:
|
site |
The site of the external link.
TYPE:
|
FuzzyDate Schema¶
FUZZYDATESCHEMA
module-attribute
¶
This is the FuzzyDateSchema for the AniList API. It defines the structure of the image data that is expected to be returned from the API.
ATTRIBUTE | DESCRIPTION |
---|---|
year |
The year of the date.
TYPE:
|
month |
The month of the date.
TYPE:
|
day |
The day of the date.
TYPE:
|
Image Schema¶
IMAGESCHEMA
module-attribute
¶
This is the ImageSchema for the Anilist API. It defines the structure of the image data that is expected to be returned from the API.
ATTRIBUTE | DESCRIPTION |
---|---|
large |
The URL of the large image.
TYPE:
|
medium |
The URL of the medium image.
TYPE:
|
MediaListEntry Schema¶
MEDIALISTENTRYSCHEMA
module-attribute
¶
This is the MediaListEntrySchema for the AniList API. It defines the structure of the media list entry data that is expected to be returned from the API.
ATTRIBUTE | DESCRIPTION |
---|---|
id |
The id of the media list entry.
TYPE:
|
status |
The status of the media list entry.
TYPE:
|
Name Schema¶
NAMESCHEMA
module-attribute
¶
This is the NameSchema for the Anilist API. It defines the structure of the name data that is expected to be returned from the API.
ATTRIBUTE | DESCRIPTION |
---|---|
first |
The user's first name.
TYPE:
|
last |
The user's last name.
TYPE:
|
full |
The user's full name.
TYPE:
|
native |
The user's name in their native language.
TYPE:
|
NextAiringEpisode Schema¶
NEXTAIRINGEPISODESCHEMA
module-attribute
¶
This is the NextAiringEpisodeSchema for the AniList API. It defines the structure of the next airing episode data that is expected to be returned from the API.
ATTRIBUTE | DESCRIPTION |
---|---|
airingAt |
The airing time of the episode.
TYPE:
|
timeUntilAiring |
The time until the episode airs.
TYPE:
|
episode |
The episode number.
TYPE:
|
Notification Schema¶
THREADNOTIFICATIONSCHEMA
module-attribute
¶
THREADNOTIFICATIONSCHEMA = f'
id
userId
type
commentId
context
createdAt
thread {
{BASICTHREADSCHEMA}
}
comment {
{BASICCOMMENTSCHEMA}
}
user {
{BASICUSERSCHEMA}
}
'
This is the NotificationSchema for the AniList API. It defines the structure of the notification data that is expected to be returned from the API.
ATTRIBUTE | DESCRIPTION |
---|---|
id |
The id of the thread notification.
TYPE:
|
userId |
The user id associated with the thread notification.
TYPE:
|
type |
The type of the thread notification.
TYPE:
|
commentId |
The comment id associated with the thread notification.
TYPE:
|
context |
The context of the thread notification.
TYPE:
|
createdAt |
The creation time of the thread notification.
TYPE:
|
thread |
The thread associated with the thread notification.
TYPE:
|
comment |
The comment associated with the thread notification.
TYPE:
|
user |
The user associated with the thread notification.
TYPE:
|
Ranking Schema¶
RANKINGSCHEMA
module-attribute
¶
RANKINGSCHEMA = '\n rankings {\n id\n rank\n type\n format\n year\n season\n allTime\n context\n }\n'
This is the RankingSchema for the AniList API. It defines the structure of the ranking data that is expected to be returned from the API.
ATTRIBUTE | DESCRIPTION |
---|---|
id |
The id of the ranking.
TYPE:
|
rank |
The rank of the ranking.
TYPE:
|
type |
The type of the ranking.
TYPE:
|
format |
The format of the ranking.
TYPE:
|
year |
The year of the ranking.
TYPE:
|
season |
The season of the ranking.
TYPE:
|
allTime |
The all-time status of the ranking.
TYPE:
|
context |
The context of the ranking.
TYPE:
|
SiteTrend Schema¶
SITETRENDCONNECTIONSCHEMA
module-attribute
¶
SITETRENDCONNECTIONSCHEMA = f'
pageInfo {
total
perPage
currentPage
lastPage
hasNextPage
}
edges {
node {
{SITETRENDSCHEMA}
}
}
nodes {
{SITETRENDSCHEMA}
}
'
This is the SiteTrendConnectionSchema for the AniList API. It defines the structure of the site trend connection data that is expected to be returned from the API.
ATTRIBUTE | DESCRIPTION |
---|---|
pageInfo |
The page information.
TYPE:
|
edges |
The edges of the site trend connection.
TYPE:
|
nodes |
The nodes of the site trend connection.
TYPE:
|
SITETRENDSCHEMA
module-attribute
¶
This is the SiteTrendSchema for the AniList API. It defines the structure of the site trend data that is expected to be returned from the API.
ATTRIBUTE | DESCRIPTION |
---|---|
date |
The date of the site trend.
TYPE:
|
count |
The count of the site trend.
TYPE:
|
change |
The change of the site trend.
TYPE:
|
StreamingEpisode Schema¶
STREAMINGEPISODESCHEMA
module-attribute
¶
This is the StreamingEpisodeSchema for the AniList API. It defines the structure of the streaming episode data that is expected to be returned from the API.
ATTRIBUTE | DESCRIPTION |
---|---|
title |
The title of the streaming episode.
TYPE:
|
thumbnail |
The thumbnail of the streaming episode.
TYPE:
|
url |
The url of the streaming episode.
TYPE:
|
site |
The site of the streaming episode.
TYPE:
|
Tag Schema¶
TAGSCHEMA
module-attribute
¶
TAGSCHEMA = '\nid\nname\ndescription\ncategory\nrank\nisGeneralSpoiler\nisMediaSpoiler\nisAdult\nuserId\n'
This is the TagSchema for the Anilist API. It defines the structure of the tag data that is expected to be returned from the API.
ATTRIBUTE | DESCRIPTION |
---|---|
id |
The tag's ID.
TYPE:
|
name |
The tag's name.
TYPE:
|
description |
The tag's description.
TYPE:
|
category |
The tag's category.
TYPE:
|
rank |
The tag's rank.
TYPE:
|
isGeneralSpoiler |
Whether the tag is a general spoiler.
TYPE:
|
isMediaSpoiler |
Whether the tag is a media spoiler.
TYPE:
|
isAdult |
Whether the tag is adult.
TYPE:
|
userId |
The user's ID.
TYPE:
|
Title Schema¶
TITLESCHEMA
module-attribute
¶
This is the TitleSchema for the Anilist API. It defines the structure of the title data that is expected to be returned from the API.
ATTRIBUTE | DESCRIPTION |
---|---|
romaji |
The title in romaji.
TYPE:
|
english |
The title in English.
TYPE:
|
native |
The title in the native language.
TYPE:
|
userPreferred |
The user's preferred title.
TYPE:
|
Trailer Schema¶
TRAILERSCHEMA
module-attribute
¶
Trailer schema for AniList GraphQL API
ATTRIBUTE | DESCRIPTION |
---|---|
id |
The ID of the trailer.
TYPE:
|
site |
The site of the trailer.
TYPE:
|
thumbnail |
The thumbnail of the trailer.
TYPE:
|
UserStats Schema¶
USERANIMESTATSSCHEMA
module-attribute
¶
This is the UserAnimeStatsSchema for the Anilist API. It defines the structure of the user's anime statistics data that is expected to be returned from the API.
ATTRIBUTE | DESCRIPTION |
---|---|
count |
The count of anime the user has watched.
TYPE:
|
meanScore |
The mean score of the anime the user has watched.
TYPE:
|
minutesWatched |
The total minutes the user has watched anime.
TYPE:
|
mediaIds |
The list of IDs of the anime the user has watched.
TYPE:
|
USERMANGASTATSSCHEMA
module-attribute
¶
This is the UserMangaStatsSchema for the Anilist API. It defines the structure of the user's manga statistics data that is expected to be returned from the API.
ATTRIBUTE | DESCRIPTION |
---|---|
count |
The count of manga the user has read.
TYPE:
|
meanScore |
The mean score of the manga the user has read.
TYPE:
|
chaptersRead |
The total chapters the user has read in manga.
TYPE:
|
mediaIds |
The list of IDs of the manga the user has read.
TYPE:
|