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
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:
Home page search result
Search result by
keyword
Search result by
tag
, can be sort by popularSearch tags can be filtered by putting
-
in front of them
Book detail:
Book detail
Related book
Picture:
- Page picture (preview picture, thumbnail and origin picture)
- 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.
-
.NETFramework 4.5
- Newtonsoft.Json (>= 13.0.1)
-
.NETFramework 4.6.1
- Newtonsoft.Json (>= 13.0.1)
-
.NETStandard 2.0
- Newtonsoft.Json (>= 13.0.1)
-
net6.0
- Newtonsoft.Json (>= 13.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
[1.5.0]
Refactor api client