Skip to content

Romi666/komikku-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Komikku API

Restful API Manga bahasa Indonesia built with ❤️ and Go

Usage

  1. Clone this repository

    git clone https://github.com/Romi666/komikku-api.git
  2. Init module

    go mod init komikku-api
    
  3. Installing dependencies

    go mod download
    
  4. Build binary file

    make build
    
  5. Run program

    make start
    

Using Docker Compose

Build image and run container

make up

Remove image and stop container

make down

API Collection

POSTMAN COLLECTION = https://www.getpostman.com/collections/4c984c36d27bb591c445

API Output Example

Get All Comic

Get Comic List

https://komiku-api.fly.dev/api/comic/list
https://komiku-api.fly.dev/api/comic/list?filter=manga
https://komiku-api.fly.dev/api/comic/list?filter=manhwa
https://komiku-api.fly.dev/api/comic/list?filter=manhua

Get Popular Comic

https://komiku-api.fly.dev/api/comic/popular/page/1

Get Recommended Comic

https://komiku-api.fly.dev/api/comic/recommended/page/1

Get Newest Comic

https://komiku-api.fly.dev/api/comic/newest/page/1

API Example

{
 "success": true,
 "data": [
     {
         "title": "Super Mechanic (The Legendary Mechanic)",
         "image": "https://thumbnail.komiku.id/wp-content/uploads/2021/03/Komik-Super-Mechanic-The-Legendary-Mechanic.jpg",
         "desc": "Pemain game veteran Han Xiao dari “Xinghai” meninggal secara tak terduga selama power leveling.",
         "type": "Manhua",
         "endpoint": "/manga/super-mechanic-the-legendary-mechanic/"
     }
 ],
 "message": "Get All Comic",
 "code": 200
}

Get Comic Info

https://komiku-api.fly.dev/api/comic/info/{endpoint}

API Example

https://komiku-api.fly.dev/api/comic/info/manga/hack-g-u/
{
 "success": true,
 "data": {
     "thumbnail": "https://thumbnail.komiku.id/wp-content/uploads/Komik-hackGU.jpg",
     "title": ".hack//G.U.+",
     "type": "Manga",
     "author": "Tatsuya Hamazaki & Yuzuka Morita",
     "status": "Ongoing",
     "rating": "15 Tahun (minimal)",
     "genre": [
         "Action",
         "Adventure",
         "Fantasy",
         "Magic",
         "Mecha"
     ],
     "chapter_list": [
         {
             "name": "Chapter 6",
             "endpoint": "/ch/hack-g-u-chapter-6/"
         },
         {
             "name": "Chapter 5",
             "endpoint": "/ch/hack-g-u-chapter-5/"
         },
         {
             "name": "Chapter 4",
             "endpoint": "/ch/hack-g-u-chapter-4/"
         },
         {
             "name": "Chapter 3",
             "endpoint": "/ch/hack-g-u-chapter-3/"
         },
         {
             "name": "Chapter 2",
             "endpoint": "/ch/hack-g-u-chapter-2/"
         },
         {
             "name": "Chapter 1",
             "endpoint": "/ch/hack-g-u-chapter-1/"
         }
     ]
 },
 "message": "Get Comic Info",
 "code": 200
}

Search Comic

https://komiku-api.fly.dev/api/comic/search/{query}

API Example

https://komiku-api.fly.dev/api/comic/search/one%20punch
{
 "success": true,
 "data": [
     {
         "title": "One Punch Man",
         "image": "https://thumbnail.komiku.id/wp-content/uploads/Manga-One-Punch-Man.png",
         "desc": "Update 5 hari lalu. Saitama dapat melumpuhkan siapa saja dan apa pun hanya dengan satu pukulan.",
         "type": "Manga",
         "endpoint": "/manga/one-punch-man/"
     },
     {
         "title": "Onepunchman Saitama vs God",
         "image": "https://thumbnail.komiku.id/wp-content/uploads/Manga-Onepunchman-Saitama-vs-God.jpg",
         "desc": "Update 2 tahun lalu. Berputar di sekitar pahlawan super tituler yang telah berlatih sangat keras sehingga rambutnya rontok.",
         "type": "Manga",
         "endpoint": "/manga/onepunchman-saitama-vs-god/"
     },
     {
         "title": "One-Punch Man (ONE)",
         "image": "https://thumbnail.komiku.id/wp-content/uploads/Manga-One-Punch-Man-ONE.jpg",
         "desc": "Update 9 bulan lalu. Santai, berkepala dingin, dan terasa botak, Saitama memiliki penampilan seorang pria dewasa yang tidak berbahaya.",
         "type": "Manga",
         "endpoint": "/manga/one-punch-man-one/"
     },
     {
         "title": "Here’s a Punch",
         "image": "https://thumbnail.komiku.id/wp-content/uploads/2021/09/Komik-Heres-a-Punch.png",
         "desc": "Update 4 bulan lalu.  Li Xing, seorang mahasiswa, menemukan pekerjaan dengan bantuan mandor yang antusias. Tanpa diduga, kontraktor memiliki latar~",
         "type": "Manhua",
         "endpoint": "/manga/heres-a-punch/"
     },
     {
         "title": "Fire Punch",
         "image": "https://thumbnail.komiku.id/wp-content/uploads/2020/09/Komik-Fire-Punc.jpg",
         "desc": "Update 1 tahun lalu. Di masa lalu yang tidak terlalu lama, Penyihir Es menyelimuti dunia dengan salju.",
         "type": "Manga",
         "endpoint": "/manga/fire-punch-2/"
     }
 ],
 "message": "Search manga",
 "code": 200
}

Get Chapter Detail

https://komiku-api.fly.dev/api/comic/chapter{endpoint chapter}

API Example

https://komiku-api.fly.dev/api/comic/chapter/ch/hack-g-u-chapter-1/
{
 "success": true,
 "data": {
     "title": ".hack//G.U.+ Chapter 6",
     "image": [
         "https://cdn.komiku.co.id/wp-content/uploads/85998-1.jpg",
         "https://cdn.komiku.co.id/wp-content/uploads/85998-2.jpg",
         "https://cdn.komiku.co.id/wp-content/uploads/85998-3.jpg",
         "https://cdn.komiku.co.id/wp-content/uploads/85998-4.jpg",
         "https://cdn.komiku.co.id/wp-content/uploads/85998-5.jpg",
         "https://cdn.komiku.co.id/wp-content/uploads/85998-6.jpg",
         "https://cdn.komiku.co.id/wp-content/uploads/85998-7.jpg",
         "https://cdn.komiku.co.id/wp-content/uploads/85998-8.jpg",
         "https://cdn.komiku.co.id/wp-content/uploads/85998-9.jpg",
         "https://cdn.komiku.co.id/wp-content/uploads/85998-10.jpg",
         "https://cdn.komiku.co.id/wp-content/uploads/85998-11.jpg",
         "https://cdn.komiku.co.id/wp-content/uploads/85998-12.jpg",
         "https://cdn.komiku.co.id/wp-content/uploads/85998-13.jpg",
         "https://cdn.komiku.co.id/wp-content/uploads/85998-14.jpg",
         "https://cdn.komiku.co.id/wp-content/uploads/85998-15.jpg",
         "https://cdn.komiku.co.id/wp-content/uploads/85998-16.jpg",
         "https://cdn.komiku.co.id/wp-content/uploads/85998-17.jpg",
         "https://cdn.komiku.co.id/wp-content/uploads/85998-18.jpg",
         "https://cdn.komiku.co.id/wp-content/uploads/85998-19.jpg",
         "https://cdn.komiku.co.id/wp-content/uploads/85998-20.jpg",
         "https://cdn.komiku.co.id/wp-content/uploads/85998-21.jpg",
         "https://cdn.komiku.co.id/wp-content/uploads/85998-22.jpg",
         "https://cdn.komiku.co.id/wp-content/uploads/85998-23.jpg",
         "https://cdn.komiku.co.id/wp-content/uploads/85998-24.jpg",
         "https://cdn.komiku.co.id/wp-content/uploads/85998-25.jpg",
         "https://cdn.komiku.co.id/wp-content/uploads/85998-26.jpg",
         "https://cdn.komiku.co.id/wp-content/uploads/85998-27.jpg",
         "https://cdn.komiku.co.id/wp-content/uploads/85998-28.jpg",
         "https://cdn.komiku.co.id/wp-content/uploads/85998-29.jpg",
         "https://cdn.komiku.co.id/wp-content/uploads/85998-30.jpg",
         "https://cdn.komiku.co.id/wp-content/uploads/85998-31.jpg",
         "https://cdn.komiku.co.id/wp-content/uploads/85998-32.jpg",
         "https://cdn.komiku.co.id/wp-content/uploads/85998-33.jpg",
         "https://cdn.komiku.co.id/wp-content/uploads/85998-34.jpg",
         "https://cdn.komiku.co.id/wp-content/uploads/85998-35.jpg",
         "https://cdn.komiku.co.id/wp-content/uploads/85998-36.jpg"
     ]
 },
 "message": "Get Chapter Detail",
 "code": 200
}

Releases

No releases published

Packages

No packages published

Languages