Otakudesu API is an npm package that can be used to retrieve data from the otakudesu website. This package provides several APIs that can be used to retrieve anime lists, search anime, ongoing anime, complete anime, anime information, episodes, genre lists, anime lists by genre, and video links.
To install the Otakudesu package, you can use npm. Open your terminal or command prompt and type:
# with npm
npm install otakudesu-api
# with pnpm
pnpm add otakudesu-api
# with yarn
yarn add otakudesu-api
For usage, you can see the tests/
folder. The tests folder contains several examples of how to use the Otakudesu API package.
import OtakudesuApi from 'otakudesu-api'
const api = new OtakudesuApi()
// or
const api = new OtakudesuApi('https://otakudesu.cloud')
// ...
const search = await api.search('Solo Leveling')
// ...
const ongoing = await api.ongoing()
// with paging
const ongoing = await api.ongoing(2)
// ...
const complete = await api.complete()
// with paging
const complete = await api.complete(2)
// ...
const genres = await api.genres()
// ...
const genres = await api.genres('/genres/action/')
// with paging
const genres = await api.genres('/genres/action/', 2)
// ...
const detail = await api.detail('/anime/shaman-king-flowers-sub-indo/')
// ...
const video = await api.video('/episode/skflower-episode-10-sub-indo/')
Contributions are welcome, and if you have any issues with this package, you are welcome to open the issue on the github repository.
Copyright © 2024 zeindevs. Licensed under the Apache License, Version 2.0 (the "License");