search-kitsu 1.1.6 • Public • Published 3 years ago
const Kitsu = require ( 'search-kitsu' ) ;
// or
import Kitsu from 'search-kitsu' ;
const API = new Kitsu ( ) ;
// Search Anime
API . searchAnime ( query , options ) ;
// Search Manga
API . searchManga ( query , options ) ;
// Get anime using title
API . searchAnime ( 'One Piece' ) . then ( data => {
console . log ( data [ 0 ] ) ;
} ) ;
// Get anime using (title/options)
API . searchAnime ( 'My Hero Academia' , { seasonYear : 2018 } ) . then ( data => {
console . log ( data [ 0 ] ) ;
} ) ;
createdAt: string;
updatedAt: string;
slug: string;
synopsis: string;
titles: {
[key: string ]: string;
en: string;
en_jp: string;
ja_jp: string;
};
canonicalTitle: string;
abbreviatedTitles: string[];
averageRating: string;
startDate: string;
endDate: string;
status: string;
posterImage: {
[key: string ]: string
tiny: string;
small: string;
medium: string;
large: string;
original: string;
};
coverImage: {
[key: string ]: string;
tiny: string;
small: string;
medium: string;
large: string;
original: string;
};
[ANIME ONLY ]
episodeCount: number | null;
episodeLength: number | null;
showType: 'TV' | 'Special' | 'ONA' | 'OVA' | 'Movie' | 'Music';
nsfw: boolean;
[MANGA ONLY ]
chapterCount: number;
volumeCount: number;
serialization: string;
mangaType: string;
Package Sidebar Install Downloads Weekly Downloads