Nhentai-API

by derwin_pans

A simple API wrapper to fetch structured doujinshi metadata from nhentai. Get titles, tags, artists, and image data in JSON for your projects.

136 runs
10 users
Try This Actor

Opens on Apify.com

About Nhentai-API

Need to pull data from nhentai for a project? This actor is essentially a clean, straightforward API wrapper for the site. Instead of wrestling with raw HTML parsing or dealing with rate limits on your own, you can use this to fetch structured JSON data for doujinshi by ID. It handles the request logic and gives you back the important details—think titles, tags, artists, page counts, and image URLs—in a format that's actually usable. I've used it to feed data into personal tracking spreadsheets and small recommendation bots without any hassle. It's a single-purpose tool that does that one job well: it gets you the metadata so you can focus on building whatever it is you're working on, whether that's a database, a discord bot, or an analysis script. Just plug in the gallery ID, and you're good to go. It's perfect for developers who want to integrate nhentai data without starting from scratch every time.

What does this actor do?

Nhentai-API is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.

Key Features

  • Cloud-based execution - no local setup required
  • Scalable infrastructure for large-scale operations
  • API access for integration with your applications
  • Built-in proxy rotation and anti-blocking measures
  • Scheduled runs and webhooks for automation

How to Use

  1. Click "Try This Actor" to open it on Apify
  2. Create a free Apify account if you don't have one
  3. Configure the input parameters as needed
  4. Run the actor and download your results

Documentation

Nhentai-API Actor

A Node.js template for scraping structured data from a single web page. You provide a URL via input, and the actor fetches the HTML, parses it, and stores the results in an Apify dataset. It's built on Apify SDK and uses Axios for HTTP requests and Cheerio for HTML parsing.

Key Features

  • Apify SDK: Provides the foundation for building, running, and managing the actor.
  • Input Schema: Validates the input configuration, primarily the target page URL.
  • Dataset Storage: Outputs structured data (like headings) into a dataset for easy access and export.
  • Axios & Cheerio: Fetches web pages and provides a jQuery-like interface for parsing HTML.
  • Customizable Code: The scraping logic is simple to modify to extract different data from the page.

How to Use

Input

The actor requires an input object containing the URL to scrape. The input schema validates this.

{
  "url": "https://example.com/page-to-scrape"
}

Process

  1. The actor starts and retrieves the input URL via Actor.getInput().
  2. It uses axios.get(url) to fetch the HTML of the page.
  3. The HTML is loaded into Cheerio with cheerio.load(response.data) for parsing.
  4. The default script extracts all heading elements (h1 through h6). You can edit the Cheerio selector in the code to target different elements.
    javascript $("h1, h2, h3, h4, h5, h6").each((_i, element) => { ... });
  5. Extracted data is saved using Actor.pushData(data) to the actor's default dataset.

Output

The scraped data is stored in the actor's dataset. Each item is an object containing the scraped fields (e.g., heading text and tag name). You can access the data via the Apify Console, API, or integrate it with tools like Zapier, Make, or Google Drive.

Getting Started

Build and Run

  1. Build the Actor: Create the actor from this template in your Apify Console.
  2. Run the Actor: Provide the input URL and start a run.

Local Development

To develop locally, pull the actor using the Apify CLI:
1. Install the CLI:
bash # Using Homebrew brew install apify-cli # Using NPM npm -g install apify-cli
2. Pull the actor by its unique name or ID (found in the Apify Console):
bash apify pull <ActorId>

Resources

Categories

Common Use Cases

Market Research

Gather competitive intelligence and market data

Lead Generation

Extract contact information for sales outreach

Price Monitoring

Track competitor pricing and product changes

Content Aggregation

Collect and organize content from multiple sources

Ready to Get Started?

Try Nhentai-API now on Apify. Free tier available with no credit card required.

Start Free Trial

Actor Information

Developer
derwin_pans
Pricing
Paid
Total Runs
136
Active Users
10
Apify Platform

Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.

Learn more about Apify

Need Professional Help?

Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.

Find a Specialist

Trusted by millions | Money-back guarantee | 24/7 Support