Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

comickAPIwrapper.js

A simple JavaScript wrapper for the Comick.io API — built for use in web-based comic readers.

Lightweight, no dependencies, browser-compatible.


Features

  • Fetch comic metadata
  • Get cover, title, slug, country, last chapter
  • List available chapters (with language filter)
  • Get image URLs for any chapter

Installation

Just copy the ComickIoAPI.js file into your project, or import it as a module.

import ComickIoAPI from './ComickIoAPI.js';

Usage

const comick = new ComickIoAPI();

const comicUrl = 'https://comick.io/comic/na-honjaman-level-up-ragnarok';

const info = await comick.getComicData(comicUrl);
console.log(info.data.pageProps.comic.title);

const cover = await comick.getComicCoverLink(comicUrl);
console.log(cover.cover);

const chapters = await comick.getComicChapters(comicUrl, 'en');
console.log(chapters.chapters);

const first = chapters.chapters[0];
const images = await comick.getComicChapterImages(comicUrl, first.hid, first.lang, first.chap);
console.log(images.images); // array of image URLs

Notes

  • This is unofficial and not affiliated with Comick.io.
  • Build ID (this.buildId) may break if Comick.io updates. Use getBuildId() to dynamically fetch if needed.
  • Image URLs are direct and hotlink from meo.comick.pictures.

About

A almost comprehensive NodeJS library that interacts with the comick API

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages