Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
/ restAPI-Samehadaku Public archive

Unofficial restAPI Samehadaku (Unmaintaned). Alt see: notneet/nime-crawler

License

Notifications You must be signed in to change notification settings

Hanivan/restAPI-Samehadaku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Samehadaku restAPI

This rest api is unofficial. So I am not responsible if there is incomplete/broken data.

All data taken from: Samehadaku
Hi! Check out the frontend I've made: Yamiweb

TODO

  • Home (Anime This Season)
  • Ongoing
    • Pagination
  • Schedule
  • Genre
    • Anime By Genre With Pagination
  • Anime
    • Pagination
    • Detail
    • Batch
    • Episode List
  • Anime Movie
    • Detail
    • Episode List
  • Batch
    • Detail
    • Download Link
  • Detail Episode
    • Pagination Per Episode
    • Streaming Link
    • Download Episode & Batch Link
  • Season
    • Anime By Season With Pagination
  • Studio
    • Anime By Studio With Pagination
  • Producer
    • Anime By Producer With Pagination
  • Search
  • Refactor Code Anime & Batch Detail Functions (If it is possible)
  • Handle If host site is error/down

Usage

  1. Clone this repository
mkdir -p ~/Documents/git && git clone --depth=1 https://github.com/Hanivan/restAPI-Samehadaku.git ~/Documents/git/restAPI-Samehadaku && cd ~/Documents/git/restAPI-Samehadaku
  1. Install packages (use yarn or npm)
yarn install
  1. Start server
yarn start

or

yarn dev (for development)

API Documentation

API Path: https://samehadaku-api.herokuapp.com/api
API Version: v1

Endpoint Params Description
/home - Homepage (Current Season)
/anime - List All Anime
/anime/page/${page} pageNumber Anime Pagination
/anime/${id} id Detail Anime
/ongoing - List All Ongoing Anime
/ongoing/page/${page} pageNumber Ongoing Pagination
/movie - List All Anime Movie
/movie/page/${page} pageNumber Anime Movie Pagination
/genres - List All Genre
/genres/${id} id Show Anime by Genre
/genres/${id}/page/${page} id,pageNumber ~~ Anime by Genre With Pagination
/batch - List All Anime Batch
/batch/page/${page} pageNumber Batch Pagination
/batch/${id} id Detail Anime Batch
/eps/${id} id ~~ Anime Episode
/schedule - Schedule Anime
/studio/${id} id Show Anime by Studio
/studio/${id}/page/${page} id,pageNumber ~~ Anime by Studio With Pagination
/producer/${id} id Show Anime by Producer
/producer/${id}/page/${page} id,pageNumber ~~ Anime by Producer With Pagination
/season/${id} id ~~ Anime by Season
/season/${id}/page/${page} id,pageNumber ~~ Anime by Season With Pagination
/search/${query} query Search Anime

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Development Details

Start Work: Sunday, 16 January 2022; 16:-- WIB
Finished Work: Thursday, 27 January 2022; 15:-- WIB

Absence: Monday, 24 January 2022
Reason: Learn GoLang

Thank you Kaede-No-Ki/otakudesu-rest-api for the inspiration to make this app

Tools I used for making this application:

  • node-fetch & cheerio (Web Scrapper). Tutorial
  • express
  • mathjs
  • dotenv
  • cors
  • Zippy-DL (For Bypass Stream Link With Some Modification)

About

Unofficial restAPI Samehadaku (Unmaintaned). Alt see: notneet/nime-crawler

Topics

Resources

License

Stars

Watchers

Forks

Packages