{"id":23853837,"url":"https://github.com/py7hon/nhentai-api","last_synced_at":"2026-02-21T15:06:58.355Z","repository":{"id":104199560,"uuid":"181441662","full_name":"py7hon/nhentai-api","owner":"py7hon","description":"Update nhentai api wrapper.","archived":false,"fork":false,"pushed_at":"2019-05-26T22:58:00.000Z","size":13,"stargazers_count":7,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-08T01:35:27.927Z","etag":null,"topics":["nhentai","nhentai-api","proxy","unblocker","wrapper-api"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/py7hon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2019-04-15T08:10:53.000Z","updated_at":"2025-08-22T13:30:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"ceeb8410-4545-445c-91ef-16c45bff340a","html_url":"https://github.com/py7hon/nhentai-api","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/py7hon/nhentai-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/py7hon%2Fnhentai-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/py7hon%2Fnhentai-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/py7hon%2Fnhentai-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/py7hon%2Fnhentai-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/py7hon","download_url":"https://codeload.github.com/py7hon/nhentai-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/py7hon%2Fnhentai-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29684106,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T14:31:22.911Z","status":"ssl_error","status_checked_at":"2026-02-21T14:31:22.570Z","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":["nhentai","nhentai-api","proxy","unblocker","wrapper-api"],"created_at":"2025-01-02T23:33:27.857Z","updated_at":"2026-02-21T15:06:58.340Z","avatar_url":"https://github.com/py7hon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Update nhentai api wrapper.\noriginal `https://www.npmjs.com/package/nhentai-api`\nadd bypass CORS and many proxy server for blocked country.\n## APIs\n\n**Warning**: this module returns *only URL*s for requests.\n\n### `search(query, page, sort)`\nReturns `Search` URL by query.\n\nParameter | Required | Default value | Description\n--------- | -------- | ------------- | -----------\n`query` | + | | Search query, see more at https://nhentai.net/info\n`page` | - | `1` | Page of search\n`sort` | - | `null`| Sort type: `popular` (`1`) or `date` (`2`)\n\n### `searchLike(book_id, page, sort)`\nReturns `Search` URL for related to book's ID.\n\nParameter | Required | Default value | Description\n--------- | -------- | ------------- | -----------\n`book_id` | + | | `book_id` for search related\n`page` | - | `1` | Page of search\n`sort` | - | `null`| Sort type: `popular` (`1`) or `date` (`2`)\n\n### `searchTagged(tag_id, page, sort)`\nReturns `Search` URL for tag's ID.\n\nParameter | Required | Default value | Description\n--------- | -------- | ------------- | -----------\n`tag_id` | + | | Tag's ID\n`page` | - | `1` | Page of search\n`sort` | - | `null`| Sort type: `popular` (`1`) or `date` (`2`)\n\n### `bookDetails(book_id)`\nReturns URL for getting `Book`.\n\nParameter | Required | Default value | Description\n--------- | -------- | ------------- | -----------\n`book_id` | + | | Book's ID\n\n### `getPage(media_id, page)`\nReturns page's image URL for `Book`'s `media_id`.\n\nParameter | Required | Default value | Description\n--------- | -------- | ------------- | -----------\n`media_id` | + | | Book's `media_id`\n`page` | - | `1` | Book's page\n\n### `getThumb(media_id, page)`\nReturns page's thumbnail image URL for `Book`'s `media_id`.\n\nParameter | Required | Default value | Description\n--------- | -------- | ------------- | -----------\n`media_id` | + | | Book's `media_id`\n`page` | - | `1` | Book's page\n\n\n### `getCover(media_id)`\nReturns `Book`'s cover image URL.\n\nParameter | Required | Default value | Description\n--------- | -------- | ------------- | -----------\n`media_id` | + | | Book's `media_id`\n\n### `parseBook(data)`\nReturns `Book`.\n\nParameter | Required | Default value | Description\n--------- | -------- | ------------- | -----------\n`data` | + | | Data for parse.\n\n### `parseSearch(data)`\nReturns `Search`.\n\nParameter | Required | Default value | Description\n--------- | -------- | ------------- | -----------\n`data` | + | | Data for parse.\n\n## Types\n\n### Book\n\n#### Example:\n```\nnhentaiBook {\n\tbook: {…}\n\tcover:(...)\n\tid:(...)\n\tmedia_id:(...)\n\tnum_favorites:(...)\n\tnum_pages:(...)\n\tpages:(...)\n\tscanlator:(...)\n\ttags:(...)\n\tthumbnail:(...)\n\ttitle:(...)\n\tupload_date:(...)\n}\n```\n#### `book`\nStores parsed `JSON` for the book.\n\n#### `cover`\nStores details for book's cover.\n\n#### `id`\nStores book's `id`.\n\n#### `media_id`\nStores book's *gallery id*. Used for gallery's methods.\n\n#### `num_favorites`\nStores amount of book's \"likes\".\n\n#### `num_pages`\nStores amount of pages in the book.\n\n#### `pages`\nStores `Array` of book's pages details.\n\n#### `scanlator`\nStores name of scanlator.\n\n#### `tags`\nStores `Array` of tags. Each of tag is `JSON` like:\n```\n{\n\tid: …,\n\ttype: …,\n\tname: …,\n\turl: …,\n\tcount: …\n}\n```\n\n#### `thumbnail`\nStores details for book's cover thumbnail.\n\n#### `title`\nStores `object` with titles (`english`, `japanese`, `pretty`).\n\n#### `upload_date`\nStores book's upload `Date`.\n\n### Search\n#### Example:\n```\nnhentaiSearch {\n\tsearch: {…}\n\tnum_pages:(...)\n\tper_page:(...)\n\tresults:(...)\n}\n```\n\n#### `search`\nStores parsed `JSON` for the search.\n\n#### `num_pages`\nStores amount of pages found.\n\n#### `per_page`\nStores amount of books per page.\n\n#### *`results`*\nStores `Array` of `Book`s.\n\n## Files Structure:\n```\n./nhentai/\n\tAPI.js\n\t\n\tBook.js\n\tSearch.js\n\t\n\tErrror.js\n\tAPIError.js\n\tTypeError.js\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpy7hon%2Fnhentai-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpy7hon%2Fnhentai-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpy7hon%2Fnhentai-api/lists"}