{"id":37347146,"url":"https://github.com/upi-0/komikuapi","last_synced_at":"2026-01-16T04:00:05.729Z","repository":{"id":286789510,"uuid":"961815560","full_name":"upi-0/KomikuAPI","owner":"upi-0","description":"Unofficial Self-Hosted Komiku.id API. ","archived":false,"fork":false,"pushed_at":"2025-06-07T02:07:12.000Z","size":40,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-25T13:27:38.995Z","etag":null,"topics":["parser","python","python-scraper","scrap"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/upi-0.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-04-07T07:57:28.000Z","updated_at":"2025-06-07T02:07:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"2e4cac24-fb99-49a8-ac56-b105bc064143","html_url":"https://github.com/upi-0/KomikuAPI","commit_stats":null,"previous_names":["malykz/komikuapi","upi-0/komikuapi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/upi-0/KomikuAPI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/upi-0%2FKomikuAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/upi-0%2FKomikuAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/upi-0%2FKomikuAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/upi-0%2FKomikuAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/upi-0","download_url":"https://codeload.github.com/upi-0/KomikuAPI/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/upi-0%2FKomikuAPI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28477206,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T03:13:13.607Z","status":"ssl_error","status_checked_at":"2026-01-16T03:11:47.863Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["parser","python","python-scraper","scrap"],"created_at":"2026-01-16T04:00:05.154Z","updated_at":"2026-01-16T04:00:05.704Z","avatar_url":"https://github.com/upi-0.png","language":"Python","readme":"# KomikuAPI\r\n## About\r\nUnofficial Komiku.id API. Writen in Python with Asynchronus Support. The way it works is by sending a request to Komiku.id and parsing the response from HTML to JSON.\r\n\u003cbr\u003e\u003cbr\u003e5790+ manga and 309400+ chapters available\r\n\r\n## Quick Start\r\n### Embed (Python)\r\n```bash\r\npip install git+https://github.com/Malykz/KomikuAPI\r\n```\r\n\u003cbr\u003e\u003cb\u003eSynchronous\u003c/b\u003e\r\n```python\r\nimport komiku\r\n\r\nresp = komiku.Manga(\"ruri-dragon\") # Send Request\r\nruri = resp.result # Parse the Response\r\nruri[\"title\"] # \"Ruri Dragon\"\r\n```\r\n\u003cbr\u003e\u003cb\u003eAsynchronous\u003c/b\u003e\r\n```python\r\nimport komiku\r\nimport httpx\r\n\r\nasync with httpx.AsyncClient() as client :\r\n    resp = await komiku.Manga(\"ruri-dragon\").asyn(client) # Send Request\r\n    ruri = await resp.result # Parse the Response\r\n    ruri[\"title\"] # \"Ruri Dragon\"\r\n```\r\n### Rest API\r\n```bash\r\ngit clone https://github.com/Malykz/KomikuAPI\r\ncd KomikuAPI\r\npip install -r req.txt\r\nuvicorn server:app\r\n```\r\n```bash\r\ncurl -X GET http://localhost:8000/manga/ruri-dragon\r\n```\r\n\r\n## End Points\r\n| endpoint | method | query | decs |\r\n|---|---|---|---|\r\n| manga/{slug} | GET | - | Get metadata from a manga |\r\n|chapter/{slug}| GET | - | Get chapter metadata from a manga |\r\n|search | GET | q | Search Manga(s) |\r\n|search/top| GET | orderby, type | Get trending manga info |\r\n\r\n## Classes\r\nThere are 3 main classes : `Manga`, `Chapter`, `Search`. Each of which is a inheritance of the `KomikuParser` class.\r\n### KomikuParser\r\nA parent class that has classmethods for parsing common data, sending requests, and rendering the response.\r\n\r\n\u003cb\u003eMethod\u003c/b\u003e\r\n\u003cul\u003e\r\n    \u003cli\u003e\u003ccode\u003erender_page / as_render_page\u003c/code\u003e method is designed to fetch and process the content of a web page from a given URL.\u003c/li\u003e\r\n    \u003cli\u003e\u003ccode\u003easync\u003c/code\u003e is an asynchronous function that prepares the KomikuParser instance for asynchronous operations. It takes a single parameter, client, which is an instance of \u003ccode\u003ehttpx.AsyncClient\u003c/code\u003e\u003c/li\u003e\r\n    \u003cli\u003e\u003ccode\u003eget_slug\u003c/code\u003e method is a utility function designed to extract a \"slug\" from a given URL. A slug is typically a unique identifier or part of a URL that represents a specific resource, such as a manga title in this case.\u003c/li\u003e        \r\n\u003c/ul\u003e\r\n\r\n\u003cb\u003eDisclaimer\u003c/b\u003e\r\nIf you want to configure User-Agent and Navigator. But it's better not to need to reconfigure. The navigator is already set up that way.\r\n```python\r\nkomiku.KomikuParser.headers = {\"user-agent\" : \"python-httpx\"}\r\n```\r\n### Manga\r\nThe class that handles parsing responses for all `/manga/` endpoints. Requires slug as primary parameter.\r\n\r\n\u003cb\u003eEx : Embed\u003c/b\u003e\r\n```python\r\nruri: dict = komiku.Manga(\"ruri-dragon\").result\r\n```\r\n\u003cb\u003eEx : Rest API\u003c/b\u003e\r\n```bash\r\ncurl -X GET http://localhost:8000/manga/ruri-dragon\r\n```\r\n\u003cb\u003e\u003cbr\u003eOutput (Preview) :\u003c/b\u003e\r\n```json\r\n{\r\n  \"title\": \"Ruri Dragon\",\r\n  \"judul\": \"Ruri Si Naga\",\r\n  \"genre\": [\r\n    \"Comedy\",\r\n    \"Fantasy\",\r\n    \"Shounen\",\r\n    \"Slice of Life\"\r\n  ],\r\n  \"status\": \"Ongoing\",\r\n  \"sinopsis\": \"Kisah seorang gadis naga muda menjadi malas, melakukan yang terbaik ...\",\r\n  \"poster\": \"https://cover.komiku.id/wp-content/uploads/2022/09/Manga-Ruri-Dragon.jpg\",\r\n  \"author\": \"Shindou Masaoki\",\r\n  \"totalChapters\": 33,\r\n  \"chapters\": [\r\n    {\r\n      \"chapter\": \"Chapter 32\",\r\n      \"release\": \"07/04/2025\",\r\n      \"url\": \"https://komiku.id/ruri-dragon-chapter-32-2/\",\r\n      \"slug\": \"ruri-dragon-chapter-32-2\"\r\n    },\r\n    . . .\r\n  ]\r\n}  \r\n```\r\n### Chapter\r\nThe class that handles parsing responses for all `/chapter/` endpoints. Requires slug as primary parameter.\r\n\r\n\u003cb\u003eEx : Embed\u003c/b\u003e\r\n```python\r\nruri: dict = komiku.Search(\"ruri-dragon-chapter-32-2\").result\r\n```\r\n\u003cb\u003eEx : Rest API\u003c/b\u003e\r\n```bash\r\ncurl -X GET http://localhost:8000/chapter/ruri-dragon-chapter-32-2\r\n```\r\n\u003cb\u003e\u003cbr\u003eOutput (Preview) :\u003c/b\u003e\r\n```json\r\n{\r\n  \"id\": \"https://komiku.id/ruri-dragon-chapter-32-2/#main\",\r\n  \"url\": \"https://komiku.id/ruri-dragon-chapter-32-2/\",\r\n  \"name\": \"Komik Ruri Dragon Chapter 32\",\r\n  \"headline\": \"Komik Ruri Dragon Chapter 32\",\r\n  \"description\": \"Komik Ruri Dragon Chapter 32 bahasa Indonesia bahasa Indonesia bisa kamu baca di Komiku dengan kualitas gambar terbaik.\",\r\n  \"keywords\": \"Ruri Dragon Chapter 32, Komik, Chapter, Bahasa, Indonesia, Indo, Baca\",\r\n  \"thumbnail\": \"https://img.komiku.id/uploads4/2918826-11.jpg\",\r\n  \"totalPage\": \"32\",\r\n  \"pagesUrl\": [\r\n    \"https://cdn.komiku.id/uploads4/2918826-1.jpg\",\r\n    \"https://cdn.komiku.id/uploads4/2918826-2.jpg\",\r\n    . . .\r\n  ]  \r\n}  \r\n```\r\n### Search\r\nThe class that handles parsing responses for all `/top/` and `/search/` endpoints. Requires slug as parameter.\r\n\r\n\u003e Searching Manga with title\r\n\r\n\u003cbr\u003e\u003cb\u003eEx : Embed\u003c/b\u003e\r\n```python\r\nruri: list[dict] = komiku.Search(\"ruri\").result\r\n```\r\n\u003cb\u003eEx : Rest API\u003c/b\u003e\r\n```python\r\ncurl -X GET http://localhost:8000/search?q=ruri\r\n```\r\n\u003cb\u003e\u003cbr\u003eOutput (Preview)\u003c/b\u003e\r\n```json\r\n[\r\n  {\r\n    \"img\": \"https://cover.komiku.id/wp-content/uploads/2022/09/Komik-Ruri-Dragon.jpg\",\r\n    \"url\": \"https://komiku.id/manga/ruri-dragon/\",\r\n    \"slug\": \"ruri-dragon\",\r\n    \"title\": \"Ruri Dragon\",\r\n    \"titleId\": \"Ruri Si Naga\",\r\n    \"detail\": \"Update 1 minggu lalu. Kisah seorang gadis naga muda menjadi malas, melakukan yang terbaik ...\"\r\n  },\r\n  . . .\r\n]  \r\n```\r\n\u003cbr\u003e\r\n\r\n\u003e Looking for trending manga\r\n\r\n\u003cbr\u003e\u003cb\u003eEx : Embed\u003c/b\u003e\r\n```python\r\nruri: list[dict] = komiku.Search(\"ruri\").top(\"new\", \"manhua\")\r\n```\r\n\u003cb\u003eEx : Rest API\u003c/b\u003e\r\n```python\r\ncurl -X GET http://localhost:8000/top?sort=new\u0026type=manhua\r\n```\r\n\u003cb\u003e\u003cbr\u003eOutput (Preview)\u003c/b\u003e\r\n```json\r\n[\r\n  {\r\n    \"thumbnail\": \"https://cover.komiku.id/wp-content/uploads/2025/04/A1-I-Was-Forced-by-the-System-to-Become-a-Villain.jpg\",\r\n    \"poster\": \"https://cover.komiku.id/wp-content/uploads/2025/04/A2-I-Was-Forced-by-the-System-to-Become-a-Villain.jpg\",\r\n    \"url\": \"https://komiku.id/manga/i-was-forced-by-the-system-to-become-a-villain/\",\r\n    \"slug\": \"i-was-forced-by-the-system-to-become-a-villain\",\r\n    \"title\": \"I Was Forced by the System to Become a Villain\",\r\n    \"views\": \"189rb x • 3 hari • Berwarna\",\r\n    \"detail\": \"Lin Bei, yang melakukan perjalanan melintasi waktu dan menjadi saudara senior kedua dari Puncak Lingxi dari Sekte Qingyun,~\"\r\n  },\r\n  . . .\r\n]  \r\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fupi-0%2Fkomikuapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fupi-0%2Fkomikuapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fupi-0%2Fkomikuapi/lists"}