Skip to content

Instantly share code, notes, and snippets.

@timw4mail
Created December 30, 2020 17:27
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save timw4mail/acc8af9660934012e44c11a136bc5335 to your computer and use it in GitHub Desktop.
Kitsu Library GraphQL Query
query (
$slug: String!,
$type: MediaTypeEnum!,
$status: [LibraryEntryStatusEnum!],
$after: String
) {
findProfileBySlug(slug: $slug) {
library {
all(first: 100, after: $after, mediaType: $type, status: $status) {
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
totalCount
nodes {
id
notes
nsfw
private
progress
progressedAt
rating
reconsumeCount
reconsuming
status
media {
id
ageRating
ageRatingGuide
mappings(first: 10) {
nodes {
externalId
externalSite
}
}
posterImage {
original {
height
name
url
width
}
views {
height
name
url
width
}
}
sfw
slug
status
startDate
endDate
type
titles {
canonical
localized
alternatives
}
...on Anime {
episodeCount
episodeLength
streamingLinks(first: 10) {
nodes {
dubs
subs
regions
streamer {
id
siteName
}
url
}
}
subtype
}
...on Manga {
chapterCount
volumeCount
subtype
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment