A (full) nHentai API implementation for .NET
If N-Hentai change the api format, please throw a issue to let me know :)
Search:
Home page search result
Search result by keyword
Search result by tag
, can be sort by popular
Search tags can be filtered by putting -
in front of them
Book detail:
Book detail
Related book
Picture:
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);