Animiku GraphQL API

Public GraphQL API of animiku.tokyo, served by the GraphQL Gateway at api.projectmiku.cc (docs/decisions/0033, 0038).

API Endpoints
https://api.projectmiku.cc/graphql
Headers
# Access token issued by the Identity service; public catalog reads work without one.
Authorization: Bearer <YOUR_TOKEN_HERE>

Queries

anime

Response

Returns an AnimeDetail

Arguments
Name Description
anilistId - ID!

Example

Query
query anime($anilistId: ID!) {
  anime(anilistId: $anilistId) {
    anilistId
    titleRomaji
    titleEnglish
    titleNative
    kind
    status
    episodesTotal
    durationMinutes
    ageRating
    description
    airedOn {
      ...PartialDateFragment
    }
    seasonYear
    posterUrl
    bannerUrl
    franchiseTag
    sourceMaterial
    malId
    shikimoriId
    genres {
      ...GenreDetailFragment
    }
    studios {
      ...StudioDetailFragment
    }
  }
}
Variables
{"anilistId": "4"}
Response
{
  "data": {
    "anime": {
      "anilistId": 4,
      "titleRomaji": "xyz789",
      "titleEnglish": "xyz789",
      "titleNative": "xyz789",
      "kind": "ANIME_KIND_UNSPECIFIED",
      "status": "ANIME_STATUS_UNSPECIFIED",
      "episodesTotal": 987,
      "durationMinutes": 987,
      "ageRating": "xyz789",
      "description": "abc123",
      "airedOn": PartialDate,
      "seasonYear": 987,
      "posterUrl": "xyz789",
      "bannerUrl": "xyz789",
      "franchiseTag": "abc123",
      "sourceMaterial": "SOURCE_MATERIAL_UNSPECIFIED",
      "malId": 4,
      "shikimoriId": "4",
      "genres": [GenreDetail],
      "studios": [StudioDetail]
    }
  }
}

animeCast

Response

Returns [CastEntry!]!

Arguments
Name Description
anilistId - ID!
limit - Int

Example

Query
query animeCast(
  $anilistId: ID!,
  $limit: Int
) {
  animeCast(
    anilistId: $anilistId,
    limit: $limit
  ) {
    characterAnilistId
    name
    nameJapanese
    imageUrl
    role
  }
}
Variables
{"anilistId": "4", "limit": 123}
Response
{
  "data": {
    "animeCast": [
      {
        "characterAnilistId": 4,
        "name": "abc123",
        "nameJapanese": "abc123",
        "imageUrl": "xyz789",
        "role": "CHARACTER_ROLE_UNSPECIFIED"
      }
    ]
  }
}

animeRelations

Response

Returns [RelationEntry!]!

Arguments
Name Description
anilistId - ID!
limit - Int

Example

Query
query animeRelations(
  $anilistId: ID!,
  $limit: Int
) {
  animeRelations(
    anilistId: $anilistId,
    limit: $limit
  ) {
    toAnimeAnilistId
    toAnime {
      ...AnimeSummaryFragment
    }
    relationType
    relationSubtype
  }
}
Variables
{"anilistId": 4, "limit": 123}
Response
{
  "data": {
    "animeRelations": [
      {
        "toAnimeAnilistId": 4,
        "toAnime": AnimeSummary,
        "relationType": "RELATION_TYPE_UNSPECIFIED",
        "relationSubtype": "xyz789"
      }
    ]
  }
}

animeStaff

Response

Returns [StaffCreditEntry!]!

Arguments
Name Description
anilistId - ID!
limit - Int

Example

Query
query animeStaff(
  $anilistId: ID!,
  $limit: Int
) {
  animeStaff(
    anilistId: $anilistId,
    limit: $limit
  ) {
    personAnilistId
    personName
    roleText
  }
}
Variables
{"anilistId": "4", "limit": 123}
Response
{
  "data": {
    "animeStaff": [
      {
        "personAnilistId": 4,
        "personName": "xyz789",
        "roleText": "xyz789"
      }
    ]
  }
}

animeVoiceActing

Response

Returns [VoiceActingEntry!]!

Arguments
Name Description
anilistId - ID!
limit - Int

Example

Query
query animeVoiceActing(
  $anilistId: ID!,
  $limit: Int
) {
  animeVoiceActing(
    anilistId: $anilistId,
    limit: $limit
  ) {
    characterAnilistId
    characterName
    personAnilistId
    personName
    language
    dubGroup
  }
}
Variables
{"anilistId": "4", "limit": 123}
Response
{
  "data": {
    "animeVoiceActing": [
      {
        "characterAnilistId": 4,
        "characterName": "xyz789",
        "personAnilistId": 4,
        "personName": "abc123",
        "language": "STAFF_LANGUAGE_UNSPECIFIED",
        "dubGroup": "abc123"
      }
    ]
  }
}

animes

Response

Returns [AnimeSummary]!

Arguments
Name Description
anilistIds - [ID!]!

Example

Query
query animes($anilistIds: [ID!]!) {
  animes(anilistIds: $anilistIds) {
    anilistId
    titleRomaji
    titleEnglish
    titleNative
    posterUrl
    kind
    seasonYear
    status
    episodesTotal
    ageRating
  }
}
Variables
{"anilistIds": ["4"]}
Response
{
  "data": {
    "animes": [
      {
        "anilistId": "4",
        "titleRomaji": "xyz789",
        "titleEnglish": "xyz789",
        "titleNative": "abc123",
        "posterUrl": "xyz789",
        "kind": "ANIME_KIND_UNSPECIFIED",
        "seasonYear": 123,
        "status": "ANIME_STATUS_UNSPECIFIED",
        "episodesTotal": 123,
        "ageRating": "xyz789"
      }
    ]
  }
}

catalog

Response

Returns a CatalogPage!

Arguments
Name Description
limit - Int
offset - Int
sort - CatalogSort

Example

Query
query catalog(
  $limit: Int,
  $offset: Int,
  $sort: CatalogSort
) {
  catalog(
    limit: $limit,
    offset: $offset,
    sort: $sort
  ) {
    items {
      ...AnimeSummaryFragment
    }
    total
  }
}
Variables
{"limit": 123, "offset": 123, "sort": "NEWEST"}
Response
{
  "data": {
    "catalog": {"items": [AnimeSummary], "total": 123}
  }
}

collection

Response

Returns a Collection

Arguments
Name Description
collectionId - ID!

Example

Query
query collection($collectionId: ID!) {
  collection(collectionId: $collectionId) {
    id
    ownerId
    title
    description
    coverImageRef
    visibility
    itemsCount
    likesCount
    viewerLiked
    createdAt
    updatedAt
  }
}
Variables
{"collectionId": "4"}
Response
{
  "data": {
    "collection": {
      "id": "4",
      "ownerId": 4,
      "title": "xyz789",
      "description": "xyz789",
      "coverImageRef": "xyz789",
      "visibility": "PUBLIC",
      "itemsCount": 987,
      "likesCount": 123,
      "viewerLiked": false,
      "createdAt": "xyz789",
      "updatedAt": "abc123"
    }
  }
}

collectionItems

Response

Returns a CollectionItemsPage!

Arguments
Name Description
collectionId - ID!
limit - Int
offset - Int

Example

Query
query collectionItems(
  $collectionId: ID!,
  $limit: Int,
  $offset: Int
) {
  collectionItems(
    collectionId: $collectionId,
    limit: $limit,
    offset: $offset
  ) {
    items {
      ...CollectionItemFragment
    }
    total
  }
}
Variables
{
  "collectionId": "4",
  "limit": 987,
  "offset": 987
}
Response
{
  "data": {
    "collectionItems": {
      "items": [CollectionItem],
      "total": 123
    }
  }
}

collectionsContainingAnime

Response

Returns a CollectionPage!

Arguments
Name Description
anilistId - ID!
limit - Int
offset - Int

Example

Query
query collectionsContainingAnime(
  $anilistId: ID!,
  $limit: Int,
  $offset: Int
) {
  collectionsContainingAnime(
    anilistId: $anilistId,
    limit: $limit,
    offset: $offset
  ) {
    items {
      ...CollectionFragment
    }
    total
  }
}
Variables
{
  "anilistId": "4",
  "limit": 123,
  "offset": 987
}
Response
{
  "data": {
    "collectionsContainingAnime": {
      "items": [Collection],
      "total": 123
    }
  }
}

comments

Response

Returns a CommentPage!

Arguments
Name Description
commentableType - CommentableType!
commentableId - String!
limit - Int
offset - Int

Example

Query
query comments(
  $commentableType: CommentableType!,
  $commentableId: String!,
  $limit: Int,
  $offset: Int
) {
  comments(
    commentableType: $commentableType,
    commentableId: $commentableId,
    limit: $limit,
    offset: $offset
  ) {
    items {
      ...CommentFragment
    }
    total
  }
}
Variables
{
  "commentableType": "ANIME",
  "commentableId": "xyz789",
  "limit": 123,
  "offset": 123
}
Response
{"data": {"comments": {"items": [Comment], "total": 987}}}

me

Response

Returns a Viewer

Example

Query
query me {
  me {
    id
    username
    email
    displayName
    permissions
  }
}
Response
{
  "data": {
    "me": {
      "id": "4",
      "username": "abc123",
      "email": "xyz789",
      "displayName": "xyz789",
      "permissions": ["abc123"]
    }
  }
}

myCollections

Response

Returns a CollectionPage!

Arguments
Name Description
limit - Int
offset - Int

Example

Query
query myCollections(
  $limit: Int,
  $offset: Int
) {
  myCollections(
    limit: $limit,
    offset: $offset
  ) {
    items {
      ...CollectionFragment
    }
    total
  }
}
Variables
{"limit": 987, "offset": 987}
Response
{
  "data": {
    "myCollections": {"items": [Collection], "total": 987}
  }
}

review

Response

Returns a Review

Arguments
Name Description
reviewId - ID
anilistId - ID

Example

Query
query review(
  $reviewId: ID,
  $anilistId: ID
) {
  review(
    reviewId: $reviewId,
    anilistId: $anilistId
  ) {
    id
    anilistId
    authorId
    body
    impression
    status
    images {
      ...ReviewImageFragment
    }
    rejectionReason
    createdAt
    updatedAt
  }
}
Variables
{"reviewId": 4, "anilistId": "4"}
Response
{
  "data": {
    "review": {
      "id": 4,
      "anilistId": 4,
      "authorId": 4,
      "body": "abc123",
      "impression": "NEGATIVE",
      "status": "PENDING_MODERATION",
      "images": [ReviewImage],
      "rejectionReason": "xyz789",
      "createdAt": "abc123",
      "updatedAt": "xyz789"
    }
  }
}

reviewsForAnime

Response

Returns a ReviewPage!

Arguments
Name Description
anilistId - ID!
limit - Int
offset - Int

Example

Query
query reviewsForAnime(
  $anilistId: ID!,
  $limit: Int,
  $offset: Int
) {
  reviewsForAnime(
    anilistId: $anilistId,
    limit: $limit,
    offset: $offset
  ) {
    items {
      ...ReviewFragment
    }
    total
  }
}
Variables
{
  "anilistId": "4",
  "limit": 123,
  "offset": 123
}
Response
{
  "data": {
    "reviewsForAnime": {"items": [Review], "total": 123}
  }
}

Mutations

addCollectionItem

Response

Returns a CollectionItem!

Arguments
Name Description
collectionId - ID!
anilistId - ID!
displayOrder - Int

Example

Query
mutation addCollectionItem(
  $collectionId: ID!,
  $anilistId: ID!,
  $displayOrder: Int
) {
  addCollectionItem(
    collectionId: $collectionId,
    anilistId: $anilistId,
    displayOrder: $displayOrder
  ) {
    collectionId
    anilistId
    displayOrder
    addedAt
  }
}
Variables
{
  "collectionId": "4",
  "anilistId": 4,
  "displayOrder": 987
}
Response
{
  "data": {
    "addCollectionItem": {
      "collectionId": 4,
      "anilistId": "4",
      "displayOrder": 123,
      "addedAt": "xyz789"
    }
  }
}

createCollection

Response

Returns a Collection!

Arguments
Name Description
input - CollectionCreateInput!

Example

Query
mutation createCollection($input: CollectionCreateInput!) {
  createCollection(input: $input) {
    id
    ownerId
    title
    description
    coverImageRef
    visibility
    itemsCount
    likesCount
    viewerLiked
    createdAt
    updatedAt
  }
}
Variables
{"input": CollectionCreateInput}
Response
{
  "data": {
    "createCollection": {
      "id": "4",
      "ownerId": 4,
      "title": "abc123",
      "description": "xyz789",
      "coverImageRef": "abc123",
      "visibility": "PUBLIC",
      "itemsCount": 987,
      "likesCount": 987,
      "viewerLiked": true,
      "createdAt": "abc123",
      "updatedAt": "xyz789"
    }
  }
}

createComment

Response

Returns a Comment!

Arguments
Name Description
input - CommentCreateInput!

Example

Query
mutation createComment($input: CommentCreateInput!) {
  createComment(input: $input) {
    id
    commentableType
    commentableId
    authorId
    body
    status
    parentCommentId
    rejectionReason
    createdAt
    updatedAt
  }
}
Variables
{"input": CommentCreateInput}
Response
{
  "data": {
    "createComment": {
      "id": 4,
      "commentableType": "ANIME",
      "commentableId": "xyz789",
      "authorId": "4",
      "body": "abc123",
      "status": "PENDING_MODERATION",
      "parentCommentId": "abc123",
      "rejectionReason": "xyz789",
      "createdAt": "xyz789",
      "updatedAt": "xyz789"
    }
  }
}

createReview

Response

Returns a Review!

Arguments
Name Description
input - ReviewCreateInput!

Example

Query
mutation createReview($input: ReviewCreateInput!) {
  createReview(input: $input) {
    id
    anilistId
    authorId
    body
    impression
    status
    images {
      ...ReviewImageFragment
    }
    rejectionReason
    createdAt
    updatedAt
  }
}
Variables
{"input": ReviewCreateInput}
Response
{
  "data": {
    "createReview": {
      "id": 4,
      "anilistId": 4,
      "authorId": "4",
      "body": "abc123",
      "impression": "NEGATIVE",
      "status": "PENDING_MODERATION",
      "images": [ReviewImage],
      "rejectionReason": "xyz789",
      "createdAt": "abc123",
      "updatedAt": "xyz789"
    }
  }
}

deleteCollection

Response

Returns a Boolean!

Arguments
Name Description
collectionId - ID!

Example

Query
mutation deleteCollection($collectionId: ID!) {
  deleteCollection(collectionId: $collectionId)
}
Variables
{"collectionId": "4"}
Response
{"data": {"deleteCollection": false}}

deleteComment

Response

Returns a Boolean!

Arguments
Name Description
commentId - ID!

Example

Query
mutation deleteComment($commentId: ID!) {
  deleteComment(commentId: $commentId)
}
Variables
{"commentId": "4"}
Response
{"data": {"deleteComment": false}}

deleteReview

Response

Returns a Boolean!

Arguments
Name Description
reviewId - ID!

Example

Query
mutation deleteReview($reviewId: ID!) {
  deleteReview(reviewId: $reviewId)
}
Variables
{"reviewId": "4"}
Response
{"data": {"deleteReview": false}}

likeCollection

Response

Returns an Int!

Arguments
Name Description
collectionId - ID!

Example

Query
mutation likeCollection($collectionId: ID!) {
  likeCollection(collectionId: $collectionId)
}
Variables
{"collectionId": "4"}
Response
{"data": {"likeCollection": 987}}

login

Response

Returns an AuthPayload!

Arguments
Name Description
input - LoginInput!

Example

Query
mutation login($input: LoginInput!) {
  login(input: $input) {
    tokenType
    expiresIn
    accessToken
    refreshToken
  }
}
Variables
{"input": LoginInput}
Response
{
  "data": {
    "login": {
      "tokenType": "abc123",
      "expiresIn": 987,
      "accessToken": "abc123",
      "refreshToken": "abc123"
    }
  }
}

logout

Response

Returns a Boolean!

Example

Query
mutation logout {
  logout
}
Response
{"data": {"logout": false}}

refresh

Response

Returns an AuthPayload!

Arguments
Name Description
refreshToken - String!

Example

Query
mutation refresh($refreshToken: String!) {
  refresh(refreshToken: $refreshToken) {
    tokenType
    expiresIn
    accessToken
    refreshToken
  }
}
Variables
{"refreshToken": "abc123"}
Response
{
  "data": {
    "refresh": {
      "tokenType": "xyz789",
      "expiresIn": 123,
      "accessToken": "xyz789",
      "refreshToken": "xyz789"
    }
  }
}

register

Response

Returns an AuthPayload!

Arguments
Name Description
input - RegisterInput!

Example

Query
mutation register($input: RegisterInput!) {
  register(input: $input) {
    tokenType
    expiresIn
    accessToken
    refreshToken
  }
}
Variables
{"input": RegisterInput}
Response
{
  "data": {
    "register": {
      "tokenType": "xyz789",
      "expiresIn": 987,
      "accessToken": "xyz789",
      "refreshToken": "xyz789"
    }
  }
}

removeCollectionItem

Response

Returns a Boolean!

Arguments
Name Description
collectionId - ID!
anilistId - ID!

Example

Query
mutation removeCollectionItem(
  $collectionId: ID!,
  $anilistId: ID!
) {
  removeCollectionItem(
    collectionId: $collectionId,
    anilistId: $anilistId
  )
}
Variables
{"collectionId": "4", "anilistId": 4}
Response
{"data": {"removeCollectionItem": true}}

unlikeCollection

Response

Returns an Int!

Arguments
Name Description
collectionId - ID!

Example

Query
mutation unlikeCollection($collectionId: ID!) {
  unlikeCollection(collectionId: $collectionId)
}
Variables
{"collectionId": 4}
Response
{"data": {"unlikeCollection": 987}}

updateCollection

Response

Returns a Collection!

Arguments
Name Description
input - CollectionUpdateInput!

Example

Query
mutation updateCollection($input: CollectionUpdateInput!) {
  updateCollection(input: $input) {
    id
    ownerId
    title
    description
    coverImageRef
    visibility
    itemsCount
    likesCount
    viewerLiked
    createdAt
    updatedAt
  }
}
Variables
{"input": CollectionUpdateInput}
Response
{
  "data": {
    "updateCollection": {
      "id": "4",
      "ownerId": 4,
      "title": "abc123",
      "description": "xyz789",
      "coverImageRef": "xyz789",
      "visibility": "PUBLIC",
      "itemsCount": 987,
      "likesCount": 123,
      "viewerLiked": false,
      "createdAt": "xyz789",
      "updatedAt": "xyz789"
    }
  }
}

updateComment

Response

Returns a Comment!

Arguments
Name Description
commentId - ID!
body - String!

Example

Query
mutation updateComment(
  $commentId: ID!,
  $body: String!
) {
  updateComment(
    commentId: $commentId,
    body: $body
  ) {
    id
    commentableType
    commentableId
    authorId
    body
    status
    parentCommentId
    rejectionReason
    createdAt
    updatedAt
  }
}
Variables
{"commentId": 4, "body": "abc123"}
Response
{
  "data": {
    "updateComment": {
      "id": "4",
      "commentableType": "ANIME",
      "commentableId": "xyz789",
      "authorId": 4,
      "body": "abc123",
      "status": "PENDING_MODERATION",
      "parentCommentId": "xyz789",
      "rejectionReason": "xyz789",
      "createdAt": "abc123",
      "updatedAt": "xyz789"
    }
  }
}

updateReview

Response

Returns a Review!

Arguments
Name Description
input - ReviewUpdateInput!

Example

Query
mutation updateReview($input: ReviewUpdateInput!) {
  updateReview(input: $input) {
    id
    anilistId
    authorId
    body
    impression
    status
    images {
      ...ReviewImageFragment
    }
    rejectionReason
    createdAt
    updatedAt
  }
}
Variables
{"input": ReviewUpdateInput}
Response
{
  "data": {
    "updateReview": {
      "id": 4,
      "anilistId": "4",
      "authorId": "4",
      "body": "xyz789",
      "impression": "NEGATIVE",
      "status": "PENDING_MODERATION",
      "images": [ReviewImage],
      "rejectionReason": "xyz789",
      "createdAt": "xyz789",
      "updatedAt": "abc123"
    }
  }
}

Types

AnimeDetail

Fields
Field Name Description
anilistId - ID!
titleRomaji - String!
titleEnglish - String
titleNative - String
kind - AnimeKind!
status - AnimeStatus!
episodesTotal - Int
durationMinutes - Int
ageRating - String
description - String
airedOn - PartialDate
seasonYear - Int
posterUrl - String
bannerUrl - String
franchiseTag - String
sourceMaterial - SourceMaterial!
malId - ID
shikimoriId - ID
genres - [GenreDetail!]!
studios - [StudioDetail!]!
Example
{
  "anilistId": "4",
  "titleRomaji": "xyz789",
  "titleEnglish": "xyz789",
  "titleNative": "xyz789",
  "kind": "ANIME_KIND_UNSPECIFIED",
  "status": "ANIME_STATUS_UNSPECIFIED",
  "episodesTotal": 123,
  "durationMinutes": 123,
  "ageRating": "xyz789",
  "description": "abc123",
  "airedOn": PartialDate,
  "seasonYear": 987,
  "posterUrl": "abc123",
  "bannerUrl": "xyz789",
  "franchiseTag": "xyz789",
  "sourceMaterial": "SOURCE_MATERIAL_UNSPECIFIED",
  "malId": 4,
  "shikimoriId": "4",
  "genres": [GenreDetail],
  "studios": [StudioDetail]
}

AnimeKind

Values
Enum Value Description

ANIME_KIND_UNSPECIFIED

ANIME_KIND_TV

ANIME_KIND_TV_SHORT

ANIME_KIND_MOVIE

ANIME_KIND_SPECIAL

ANIME_KIND_OVA

ANIME_KIND_ONA

ANIME_KIND_MUSIC

Example
"ANIME_KIND_UNSPECIFIED"

AnimeStatus

Values
Enum Value Description

ANIME_STATUS_UNSPECIFIED

ANIME_STATUS_FINISHED

ANIME_STATUS_RELEASING

ANIME_STATUS_NOT_YET_RELEASED

ANIME_STATUS_CANCELLED

ANIME_STATUS_HIATUS

Example
"ANIME_STATUS_UNSPECIFIED"

AnimeSummary

Fields
Field Name Description
anilistId - ID!
titleRomaji - String!
titleEnglish - String
titleNative - String
posterUrl - String
kind - AnimeKind!
seasonYear - Int
status - AnimeStatus!
episodesTotal - Int
ageRating - String
Example
{
  "anilistId": 4,
  "titleRomaji": "xyz789",
  "titleEnglish": "abc123",
  "titleNative": "xyz789",
  "posterUrl": "abc123",
  "kind": "ANIME_KIND_UNSPECIFIED",
  "seasonYear": 123,
  "status": "ANIME_STATUS_UNSPECIFIED",
  "episodesTotal": 123,
  "ageRating": "xyz789"
}

AuthPayload

Fields
Field Name Description
tokenType - String!
expiresIn - Int!
accessToken - String!
refreshToken - String!
Example
{
  "tokenType": "xyz789",
  "expiresIn": 987,
  "accessToken": "xyz789",
  "refreshToken": "xyz789"
}

Boolean

Description

The Boolean scalar type represents true or false.

CacheControlScope

Values
Enum Value Description

PUBLIC

PRIVATE

Example
"PUBLIC"

CastEntry

Fields
Field Name Description
characterAnilistId - ID!
name - String!
nameJapanese - String
imageUrl - String
role - CharacterRole!
Example
{
  "characterAnilistId": 4,
  "name": "xyz789",
  "nameJapanese": "xyz789",
  "imageUrl": "abc123",
  "role": "CHARACTER_ROLE_UNSPECIFIED"
}

CatalogPage

Fields
Field Name Description
items - [AnimeSummary!]!
total - Int!
Example
{"items": [AnimeSummary], "total": 987}

CatalogSort

Values
Enum Value Description

NEWEST

OLDEST

Example
"NEWEST"

CharacterRole

Values
Enum Value Description

CHARACTER_ROLE_UNSPECIFIED

CHARACTER_ROLE_MAIN

CHARACTER_ROLE_SUPPORTING

CHARACTER_ROLE_BACKGROUND

Example
"CHARACTER_ROLE_UNSPECIFIED"

Collection

Fields
Field Name Description
id - ID!
ownerId - ID!
title - String!
description - String
coverImageRef - String
visibility - CollectionVisibility!
itemsCount - Int!
likesCount - Int!
viewerLiked - Boolean!
createdAt - String!
updatedAt - String!
Example
{
  "id": 4,
  "ownerId": "4",
  "title": "xyz789",
  "description": "xyz789",
  "coverImageRef": "xyz789",
  "visibility": "PUBLIC",
  "itemsCount": 987,
  "likesCount": 123,
  "viewerLiked": false,
  "createdAt": "abc123",
  "updatedAt": "abc123"
}

CollectionCreateInput

Fields
Input Field Description
title - String!
description - String
coverImageRef - String
visibility - CollectionVisibility!
Example
{
  "title": "abc123",
  "description": "abc123",
  "coverImageRef": "abc123",
  "visibility": "PUBLIC"
}

CollectionItem

Fields
Field Name Description
collectionId - ID!
anilistId - ID!
displayOrder - Int!
addedAt - String!
Example
{
  "collectionId": 4,
  "anilistId": 4,
  "displayOrder": 123,
  "addedAt": "xyz789"
}

CollectionItemsPage

Fields
Field Name Description
items - [CollectionItem!]!
total - Int!
Example
{"items": [CollectionItem], "total": 123}

CollectionPage

Fields
Field Name Description
items - [Collection!]!
total - Int!
Example
{"items": [Collection], "total": 987}

CollectionUpdateInput

Fields
Input Field Description
collectionId - ID!
title - String
description - String
coverImageRef - String
visibility - CollectionVisibility
Example
{
  "collectionId": "4",
  "title": "abc123",
  "description": "abc123",
  "coverImageRef": "abc123",
  "visibility": "PUBLIC"
}

CollectionVisibility

Values
Enum Value Description

PUBLIC

PRIVATE

Example
"PUBLIC"

Comment

Fields
Field Name Description
id - ID!
commentableType - CommentableType!
commentableId - String!
authorId - ID!
body - String!
status - ContentStatus!
parentCommentId - String
rejectionReason - String
createdAt - String!
updatedAt - String!
Example
{
  "id": "4",
  "commentableType": "ANIME",
  "commentableId": "abc123",
  "authorId": 4,
  "body": "xyz789",
  "status": "PENDING_MODERATION",
  "parentCommentId": "abc123",
  "rejectionReason": "abc123",
  "createdAt": "abc123",
  "updatedAt": "abc123"
}

CommentCreateInput

Fields
Input Field Description
commentableType - CommentableType!
commentableId - String!
body - String!
parentCommentId - String
Example
{
  "commentableType": "ANIME",
  "commentableId": "xyz789",
  "body": "xyz789",
  "parentCommentId": "abc123"
}

CommentPage

Fields
Field Name Description
items - [Comment!]!
total - Int!
Example
{"items": [Comment], "total": 987}

CommentableType

Values
Enum Value Description

ANIME

COLLECTION

REVIEW

Example
"ANIME"

ContentStatus

Values
Enum Value Description

PENDING_MODERATION

VISIBLE

HIDDEN

Example
"PENDING_MODERATION"

GenreDetail

Fields
Field Name Description
kind - GenreKind!
name - String!
Example
{
  "kind": "GENRE_KIND_UNSPECIFIED",
  "name": "abc123"
}

GenreKind

Values
Enum Value Description

GENRE_KIND_UNSPECIFIED

GENRE_KIND_GENRE

GENRE_KIND_THEME

GENRE_KIND_DEMOGRAPHIC

Example
"GENRE_KIND_UNSPECIFIED"

ID

Description

The ID scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "4") or integer (such as 4) input value will be accepted as an ID.

Example
"4"

Impression

Values
Enum Value Description

NEGATIVE

NEUTRAL

POSITIVE

Example
"NEGATIVE"

Int

Description

The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.

Example
987

LoginInput

Fields
Input Field Description
email - String!
password - String!
Example
{
  "email": "abc123",
  "password": "xyz789"
}

PartialDate

Fields
Field Name Description
year - Int
month - Int
day - Int
Example
{"year": 123, "month": 123, "day": 987}

RegisterInput

Fields
Input Field Description
username - String!
email - String!
password - String!
passwordConfirmation - String!
Example
{
  "username": "xyz789",
  "email": "abc123",
  "password": "abc123",
  "passwordConfirmation": "xyz789"
}

RelationEntry

Fields
Field Name Description
toAnimeAnilistId - ID!
toAnime - AnimeSummary!
relationType - RelationType!
relationSubtype - String
Example
{
  "toAnimeAnilistId": "4",
  "toAnime": AnimeSummary,
  "relationType": "RELATION_TYPE_UNSPECIFIED",
  "relationSubtype": "abc123"
}

RelationType

Values
Enum Value Description

RELATION_TYPE_UNSPECIFIED

RELATION_TYPE_SEASON_OF

RELATION_TYPE_PART_OF

RELATION_TYPE_RELATED

Example
"RELATION_TYPE_UNSPECIFIED"

Review

Fields
Field Name Description
id - ID!
anilistId - ID!
authorId - ID!
body - String!
impression - Impression!
status - ContentStatus!
images - [ReviewImage!]!
rejectionReason - String
createdAt - String!
updatedAt - String!
Example
{
  "id": "4",
  "anilistId": "4",
  "authorId": 4,
  "body": "xyz789",
  "impression": "NEGATIVE",
  "status": "PENDING_MODERATION",
  "images": [ReviewImage],
  "rejectionReason": "abc123",
  "createdAt": "xyz789",
  "updatedAt": "xyz789"
}

ReviewCreateInput

Fields
Input Field Description
anilistId - ID!
body - String!
impression - Impression!
images - [ReviewImageInput!]
Example
{
  "anilistId": 4,
  "body": "xyz789",
  "impression": "NEGATIVE",
  "images": [ReviewImageInput]
}

ReviewImage

Fields
Field Name Description
externalUrl - String!
assetRef - String
displayOrder - Int!
Example
{
  "externalUrl": "abc123",
  "assetRef": "xyz789",
  "displayOrder": 987
}

ReviewImageInput

Fields
Input Field Description
externalUrl - String!
assetRef - String
displayOrder - Int!
Example
{
  "externalUrl": "abc123",
  "assetRef": "abc123",
  "displayOrder": 987
}

ReviewPage

Fields
Field Name Description
items - [Review!]!
total - Int!
Example
{"items": [Review], "total": 987}

ReviewUpdateInput

Fields
Input Field Description
reviewId - ID!
body - String
impression - Impression
images - [ReviewImageInput!]
Example
{
  "reviewId": "4",
  "body": "xyz789",
  "impression": "NEGATIVE",
  "images": [ReviewImageInput]
}

SourceMaterial

Values
Enum Value Description

SOURCE_MATERIAL_UNSPECIFIED

SOURCE_MATERIAL_ORIGINAL

SOURCE_MATERIAL_MANGA

SOURCE_MATERIAL_LIGHT_NOVEL

SOURCE_MATERIAL_VISUAL_NOVEL

SOURCE_MATERIAL_VIDEO_GAME

SOURCE_MATERIAL_OTHER

SOURCE_MATERIAL_NOVEL

SOURCE_MATERIAL_DOUJINSHI

SOURCE_MATERIAL_ANIME

SOURCE_MATERIAL_WEB_NOVEL

SOURCE_MATERIAL_LIVE_ACTION

SOURCE_MATERIAL_GAME

SOURCE_MATERIAL_COMIC

SOURCE_MATERIAL_MULTIMEDIA_PROJECT

SOURCE_MATERIAL_PICTURE_BOOK

Example
"SOURCE_MATERIAL_UNSPECIFIED"

StaffCreditEntry

Fields
Field Name Description
personAnilistId - ID!
personName - String!
roleText - String!
Example
{
  "personAnilistId": 4,
  "personName": "xyz789",
  "roleText": "abc123"
}

StaffLanguage

Values
Enum Value Description

STAFF_LANGUAGE_UNSPECIFIED

STAFF_LANGUAGE_JAPANESE

STAFF_LANGUAGE_ENGLISH

STAFF_LANGUAGE_KOREAN

STAFF_LANGUAGE_ITALIAN

STAFF_LANGUAGE_SPANISH

STAFF_LANGUAGE_PORTUGUESE

STAFF_LANGUAGE_FRENCH

STAFF_LANGUAGE_GERMAN

STAFF_LANGUAGE_HEBREW

STAFF_LANGUAGE_HUNGARIAN

Example
"STAFF_LANGUAGE_UNSPECIFIED"

String

Description

The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.

Example
"abc123"

StudioDetail

Fields
Field Name Description
name - String!
anilistId - ID
shikimoriId - ID
Example
{
  "name": "abc123",
  "anilistId": 4,
  "shikimoriId": "4"
}

Viewer

Fields
Field Name Description
id - ID!
username - String!
email - String!
displayName - String
permissions - [String!]!
Example
{
  "id": "4",
  "username": "xyz789",
  "email": "abc123",
  "displayName": "abc123",
  "permissions": ["abc123"]
}

VoiceActingEntry

Fields
Field Name Description
characterAnilistId - ID!
characterName - String!
personAnilistId - ID!
personName - String!
language - StaffLanguage!
dubGroup - String
Example
{
  "characterAnilistId": 4,
  "characterName": "abc123",
  "personAnilistId": 4,
  "personName": "abc123",
  "language": "STAFF_LANGUAGE_UNSPECIFIED",
  "dubGroup": "abc123"
}