NHentaiSharp 1.1.1

Install-Package NHentaiSharp -Version 1.1.1
dotnet add package NHentaiSharp --version 1.1.1
<PackageReference Include="NHentaiSharp" Version="1.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NHentaiSharp --version 1.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: NHentaiSharp, 1.1.1"
#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 NHentaiSharp as a Cake Addin
#addin nuget:?package=NHentaiSharp&version=1.1.1

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

Build status NuGet codecov Unit tests CodeFactor


NHentaiSharp is a C# library to use NHentai.net API.

How to download it?

You can download it from NuGet with the following command line:

Install-Package NHentaiSharp

Example: Getting a random doujinshi

string[] tags = new[] { // Tags for the upcoming searches
  "loli", // We add the tag loli
  NHentaiSharp.Core.SearchClient.GetExcludeTag("rape"), // We exclude the tag rape
  NHentaiSharp.Core.SearchClient.GetCategoryTag("kantai collection", NHentaiSharp.Search.TagType.Parody)
  // We search doujinshi of the anime/game Kantai Collection

Random r = new Random();
// We do a search with the tags
var result = await NHentaiSharp.Core.SearchClient.SearchWithTagsAsync(tags);
int page = r.Next(0, result.numPages) + 1; // Page count begin at 1
// We do a new search at a random page
result = await NHentaiSharp.Core.SearchClient.SearchWithTagsAsync(tags, page);
var doujinshi = result.elements[r.Next(0, result.elements.Length)]; // We get a random doujinshi

Console.WriteLine("Random doujinshi: " + doujinshi.prettyTitle + Environment.NewLine +
  "URL: " + doujinshi.url);

For more information about using this library, please check the wiki.

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.1.1 4,014 6/11/2020
1.1.0 286 6/11/2020
1.0.8 236 6/11/2020
1.0.7 456 4/29/2020
1.0.6 296 3/31/2020
1.0.5 936 6/16/2019
1.0.4 345 6/9/2019
1.0.3 396 6/6/2019
1.0.1 335 6/3/2019
1.0.0 336 6/3/2019