π
Find a Manga
info.mangaThe AlmanacLook-upsFinds 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.
πLook-ups
Find a Manga
info.mangaqueryrequired
e.g. {{input.options.manga}}
asrequired
manga
found
missing
error
Config fields
| Field | Type | Req | What it does |
|---|---|---|---|
querye.g. {{input.options.manga}} | text | yes | Which manga π |
asmanga | text | yes | Save 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 upOutput 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}}Related pieces
More Look-ups pieces