NHentaiAPI 1.7.0

dotnet add package NHentaiAPI --version 1.7.0                
NuGet\Install-Package NHentaiAPI -Version 1.7.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NHentaiAPI" Version="1.7.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NHentaiAPI --version 1.7.0                
#r "nuget: NHentaiAPI, 1.7.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install NHentaiAPI as a Cake Addin
#addin nuget:?package=NHentaiAPI&version=1.7.0

// Install NHentaiAPI as a Cake Tool
#tool nuget:?package=NHentaiAPI&version=1.7.0                

NHentaiAPI

Build status NuGet NuGet NuGet

A (full) nHentai API implementation for .NET

If N-Hentai change the api format, please throw a issue to let me know 😃

Check out my other projects

This package can get

Search:

  1. Home page search result

  2. Search result by keyword

  3. Search result by tag, can be sort by popular

  4. Search tags can be filtered by putting - in front of them

Book detail:

  1. Book detail

  2. Related book

Picture:

  1. Page picture (preview picture, thumbnail and origin picture)
  2. Cover picture (preview picture and thumbnail)

Demo

Search book:

//generate client
var client = new NHentaiClient();

//https://nhentai.net/api/galleries/search?query=school%20swimsuit%20loli%20full%20color&page=2
var result = await client.GetSearchPageListAsync("school swimsuit full color -loli",2);

Get book detail:

//generate client
var client = new NHentaiClient();

//get book no 123
var book = await client.GetBookAsync(123);

Get cover and image:

//get book no 123
var book = await client.GetBookAsync(123);

//https://i.nhentai.net/galleries/635/1.jpg
byte[] picture = await client.GetPictureAsync(book, 1);

//https://i.nhentai.net/galleries/635/1.jpg
byte[] cover = await client.GetBigCoverPictureAsync(book);
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.7.0 747 7/19/2023
1.6.0 184 7/19/2023
1.5.0 1,666 5/7/2022
1.4.0 607 9/8/2020
1.3.0 506 6/9/2020
1.2.0 719 6/23/2019
1.1.0 648 4/30/2019
1.0.0 725 12/8/2018

[1.5.0]
Refactor api client