Skip to content

rizalord/samehadaku-api

Repository files navigation

Samehadaku-Rest-Api

SRA is a rest-api which is scraping to the samehadaku website and made up using Express.

Demo

Click to show preview

Installation

Use the package manager npm to install SRA's package.

  • Clone the Repo
  • Install all packages using command
npm install

Usage

Start server with command:

npm start

or

npm run nodemon

Then open localhost:3000

Endpoint

Url Params Type Description
/ - - homepage
/page/{page} page number homepage-pagination
/blog - - blog
/blog/{page} page number blog-pagination
/blog/read/{id} id String read blog
/anime/{id} id String detail anime
/anime/eps/{link} link String detail anime's eps
/search/{title}/{page} title, page String, number search anime
/season - - list anime of this season
/date-release - - anime release date
/list-anime/{page} page number list of all anime
/blog-category/{category}/{page} category, page String, number list items of category
/tag/{tag} tag String list items of tag
/daftar-genre - String genre list
/genre/{id} id String show anime by genre

Sample response

Api Endpoint : https://samehadaku-rest-api.herokuapp.com/

{
    title: "Re:Zero kara Hajimeru Isekai Seikatsu Season 2",
    status: "Ongoing",
    link: "https://samehadaku.vip/anime/rezero-kara-hajimeru-isekai-seikatsu-season-2/",
    linkId: "rezero-kara-hajimeru-isekai-seikatsu-season-2",
    image: "https://i0.wp.com/samehadaku.vip/wp-content/uploads/2020/07/108005.jpg?quality=90&resize=150,210",
    rating: "8.79",
    sinopsis: "Musim Kedua dari Serial Re:Zero kara Hajimeru Isekai Seikatsu.",
    genre: [
        "Drama",
        "Fantasy",
        "Psychological",
        "Thriller"
    ]
},

Contributing

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

Please make sure to update tests as appropriate.

License

MIT Copyright (c) 2020-present, ahmadkhamdani9 (rizalord)