anime-filler-api
v2.0.0
Published
An unofficial api to get filler/cannon info about anime episodes.
Downloads
2
Readme
Unofficial API
I was bored so I decided to make this, it's essentially just a scraper that can gather all anime listed on anime-filler-list as well as get individual show information. Feel free to open a pull request if you have something to improve.
How To Install
Npm
npm install anime-filler-api
Pnpm
pnpm add anime-filler-api
yarn
yarn add anime-filler-api
Using the Filler API?
DM on Discord or open a pull request and I'll include a link to your project Github/Website
How to Use
Firstly you'd want to import whatever methods you want to use. All the available methods are listed below
- async getShowSlugs()
- async getShowsByGroup(group: string)
- async getShowsByName(name: string)
- async getShowData(slug: string)
- async getEpisodesFor(slug: string)
- async getEpisodesByType(slug: string, epType: EpisodeType)
- async getEpisode(slug: string, epNumber: number)
- async searchEpisodes(lug: string, keyword: string)
- async getFirstEpisode(slug: string)
- async getLastEpisode(slug: string)
import { getShowSlugs, getEpisode, getShowData, ...etc } from 'anime-filler-list';
const lookupShow = async (slug: string) => {
const anime = await getShowData(slug);
// do something
}
Type Information
export const EPISODE_TYPE = {
MANGA_CANNON: 'MANGA_CANNON',
ANIME_CANNON: 'ANIME_CANNON',
MIXED_CANNON_FILLER: 'MIXED_CANNON_FILLER',
FILLER: "FILLER",
UNKNOWN: "UNKNOWN"
}
type ObjectValues<T> = T[keyof T];
export type AnimePageLink = {
name: string;
slug: string;
group: string;
}
export type Anime = {
name: string;
description: string;
poster: string;
episodes: Episode[];
}
export type EpisodeType = ObjectValues<typeof EPISODE_TYPE>
export type Episode = {
number: number;
title: string;
type: EpisodeType;
date: string;
}
Contact Me
- Discord: Kiran#0002
- Email: [email protected]