NHentaiAPI 1.5.0

.NET 6.0 .NET Standard 2.0 .NET Framework 4.5
Install-Package NHentaiAPI -Version 1.5.0
dotnet add package NHentaiAPI --version 1.5.0
<PackageReference Include="NHentaiAPI" Version="1.5.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NHentaiAPI --version 1.5.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: NHentaiAPI, 1.5.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. 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.5.0

// Install NHentaiAPI as a Cake Tool
#tool nuget:?package=NHentaiAPI&version=1.5.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

HentaiAPI

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 😃

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 Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
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.5.0 123 5/7/2022
1.4.0 363 9/8/2020
1.3.0 273 6/9/2020
1.2.0 473 6/23/2019
1.1.0 398 4/30/2019
1.0.0 471 12/8/2018

[1.5.0]
Refactor api client