K
Docs
πŸ“–

Find a Manga

info.mangaThe AlmanacLook-ups

Finds a manga, manhwa, manhua or light novel by name and brings back its synopsis, score out of 10, chapters and volumes, status, magazine, age rating and cover. Adult titles are never returned.

When to use this
  • β†’Chapters and volumes are often empty while a series is still running
  • β†’Data from Kitsu β€” {{manga.url}} links to the manga there

On the canvas

This is what Find a Manga looks like when you place it on your flow. Each field below is something you configure in the inspector panel.

πŸ“–
Find a Manga
info.manga
Look-ups
queryrequired
e.g. {{input.options.manga}}
asrequired
manga
found
missing
error

Config fields

FieldTypeReqWhat it does
query
e.g. {{input.options.manga}}
textyesWhich manga πŸ”Ž
as
manga
textyesSave it as ✨

Sparks this piece adds

After this piece runs, these values are available as sparks in every node downstream.

{{manga.title}}stringTitle (English when there is one)
{{manga.romaji}}stringJapanese title in English letters
{{manga.synopsis}}stringWhat it's about
{{manga.score}}stringScore out of 10, like 8.5
{{manga.chapters}}numberChapters (empty while running)
{{manga.volumes}}numberVolumes (empty while running)
{{manga.status}}stringFinished, Ongoing…
{{manga.type}}stringManga, Manhwa, Light novel…
{{manga.magazine}}stringWhere it's published
{{manga.year}}numberYear it started
{{manga.image}}stringLink to the cover
{{manga.url}}stringLink to it on Kitsu
{{manga.query}}stringWhat was looked up
{{manga.error}}stringWhy it couldn't be looked up

Output ports

foundThe manga is in your spark β€” {{manga.title}}, ⭐ {{manga.score}}
missingNothing matched β€” {{…query}} says what they asked for
errorCouldn't ask right now (busy or down) β€” {{…error}} says why
πŸ“

In TypeScript, this would be…

Not something you need to write β€” just a look at what Kitcord does for you.

TypeScript
const res = await fetch(
  `https://kitsu.app/api/edge/manga?filter[text]=${encodeURIComponent(name)}&page[limit]=1`,
);
const manga = (await res.json()).data[0]?.attributes;
if (!manga) return; // Missing βˆ…
// manga.chapterCount β†’ {{manga.chapters}}, manga.serialization β†’ {{manga.magazine}}