otakudesu-api
TypeScript icon, indicating that this package has built-in type declarations

1.3.0 • Public • Published

Otakudesu API (Web Scraper)

Otakudesu API 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.

HitCount GitHub license Npm package monthly downloads GitHub repo size npm version

Installation

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

Usage

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')

Search Anime

// ...

const search = await api.search('Solo Leveling')

Get Ongoing List

// ...

const ongoing = await api.ongoing()

// with paging
const ongoing = await api.ongoing(2)

Get Complete List

// ...

const complete = await api.complete()

// with paging
const complete = await api.complete(2)

Get Genres List

// ...

const genres = await api.genres()

Get Genres Detail

// ...

const genres = await api.genres('/genres/action/')

// with paging
const genres = await api.genres('/genres/action/', 2)

Get Detail

// ...

const detail = await api.detail('/anime/shaman-king-flowers-sub-indo/')

Get Video

// ...

const video = await api.video('/episode/skflower-episode-10-sub-indo/')

Contribution, and issues

Contributions are welcome, and if you have any issues with this package, you are welcome to open the issue on the github repository.

License

Copyright © 2024 zeindevs. Licensed under the Apache License, Version 2.0 (the "License");

Package Sidebar

Install

npm i otakudesu-api

Weekly Downloads

5

Version

1.3.0

License

Apache-2.0

Unpacked Size

42.8 kB

Total Files

7

Last publish

Collaborators

  • zeindevs