# FANZA Doujin Catalog Scraper (`bovi/dmm-scraper`) Actor

Collect FANZA Doujin records from DMM’s public image sitemap. Get product IDs, URLs, and first image URLs; title appears only together with an image entry; missing title/image_url keys are omitted. Run with maxResults and proxy; no sign-in. Pricing $0.0035/result + $0.00005/start event on Free plan.

- **URL**: https://apify.com/bovi/dmm-scraper.md
- **Developed by:** [Vitalii Bondarev](https://apify.com/bovi) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 78.6% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.50 / 1,000 fanza doujin catalog scrapers

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## DMM FANZA Doujin Catalog Scraper

FANZA Doujin Catalog Scraper extracts public FANZA Doujin catalog records from DMM’s public image sitemap on dmm.co.jp, returning product IDs, canonical URLs, titles, and first image URLs when present. It does not open detail pages, sign in, or download product images; this Actor has no Free-plan result cap.

- Build a catalog index from FANZA Doujin product IDs and canonical URLs.
- Collect titles and first image URLs for product catalog organization.
- Choose a maximum result count and proxy settings (default: Apify residential proxy).
- Export the resulting dataset as JSON or CSV after the run.

### What you get

| Field | Type | Description | Availability |
|---|---|---|---|
| `product_id` | string | DMM catalog `cid` from the canonical product URL. | Required |
| `url` | string | Canonical FANZA Doujin product detail URL from the sitemap. | Required |
| `title` | string | Product title exposed by the public image sitemap. | Present when available |
| `image_url` | string | First product image URL exposed by the public image sitemap. | Present when available |

The Actor reads DMM’s public image sitemap and does not open individual product detail pages. Fields such as price, seller, and release date are not included because they are not present in the public sitemap.

### Sample output

```json
{
  "product_id": "d_004523",
  "url": "https://www.dmm.co.jp/dc/doujin/-/detail/=/cid=d_004523/",
  "image_url": "https://doujin-assets.dmm.co.jp/digital/game/d_004523/d_004523pr.jpg",
  "title": "クイズ・マヨネーズ"
}
```

### Pricing

You pay only for the events listed below. This Actor does not use the Pay per event + usage option, so the platform usage of your runs (compute, proxy traffic and storage) is not billed to you separately.

The listed events and Free-plan prices are:

| Event | Unit | Free-plan price | Condition |
|---|---|---:|---|
| `apify-actor-start` | One Actor Start event | $0.00005 per event | Charged when the Actor starts running. |
| `apify-default-dataset-item` | One emitted dataset result | $0.0035 per result | One scraped result with all fields. |

A run with 1,000 results costs **$3.50005 on the Free plan** (1,000 × $0.0035 + $0.00005, with one Actor Start event).

A run with 10,000 results costs **$35.00005 on the Free plan** (10,000 × $0.0035 + $0.00005, with one Actor Start event).

The Apify Free plan includes **$5 of monthly platform usage credit**. The Free-plan $5 credit covers 1,428 results (1,428 × $0.0035 + $0.00005 = $4.99805, with one Actor Start event).

`apify-actor-start` is charged once per GB of run memory, with a minimum of one event. The figures here assume one start event. To see how many start events are charged, run the Actor once with `maxResults` set to `1` and check the charged events.

### How to use

1. Open the Actor in your Apify account.
2. Set `maxResults` to the maximum number of product records to emit.
3. Optionally change `proxyConfiguration`; the default is Apify residential proxy.
4. Run the Actor and open the resulting Apify dataset.
5. Review `product_id`, `url`, `title`, and `image_url`; title and image URL are present when the sitemap provides them.
6. Repeat the run through Apify Schedules.

Export the dataset as JSON or CSV, or read it through the Apify dataset API.

Example input:

```json
{
  "maxResults": 10
}
```

### Input parameters

| Parameter | What it does | Default |
|---|---|---|
| `maxResults` | Sets the maximum number of product records to emit. | `50` |
| `proxyConfiguration` | Optional proxy settings. The schema default is Apify residential proxy (`useApifyProxy` true, group `RESIDENTIAL`). If you omit the field, leave it empty or set `useApifyProxy` to false, the Actor connects directly without a proxy. | `{"useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"]}` |
| `disableUsageStats` | Has no effect in the current build. | — |

`maxResults` is an integer with a schema minimum of `1`. The current build also handles a zero or negative value by stopping without collecting records.

### Limits and edge cases

| Condition | What you see | What to do |
|---|---|---|
| `maxResults` is set to a positive value | The Actor stops after the requested number of records has been emitted, or earlier if the available sitemap records run out. | Increase `maxResults` and run again if you need more records. |
| `maxResults` is zero or negative | The Actor reports that nothing will be collected and emits no product records. | Use an integer of at least `1`. |
| A sitemap record has no title or image URL | `title` is returned only together with `image_url`: it is read from the first valid image entry, so a record without an image URL has no title either. A record can contain only `product_id` and `url`, or `product_id`, `url` and `image_url` without `title`. | Use the required fields, or handle the optional fields in your downstream process. |
| A product appears more than once across the processed sitemaps | The Actor emits the product ID only once. | No action is required; records are deduplicated by `product_id`. |
| The sitemap index or a product sitemap cannot be fetched | Each request is tried up to 4 times, every time on a new proxy session. If all 4 attempts fail, the run ends as FAILED with a status message naming the sitemap URL and the last error. | Retry later, or try a different proxy group. |
| A later sitemap request fails after records were delivered | Previously delivered records remain in the dataset, and product-result charges apply only to those delivered records. | Review the partial dataset and rerun if you need to collect the remaining records. |
| You need price, seller, or release-date fields | Those fields are not included in the public image sitemap, and this Actor does not open product detail pages. | Use the fields provided by the sitemap or choose a data source that exposes the additional fields. |
| You plan to use data from the public DMM image sitemap | The Actor provides public catalog data from that source. | Check the source terms and applicable law for your use case; this Actor does not provide a legal guarantee. |

### FAQ

#### How much does it cost to scrape the FANZA Doujin catalog?

See Pricing for the Free-plan prices: $0.00005 per `apify-actor-start` event and $0.0035 per emitted result, including the 1,000-result example.

#### What data does this Actor collect?

It collects the product ID, canonical product URL, title when present, and first image URL when present from DMM’s public FANZA Doujin image sitemap. It does not collect price, seller, or release date, and it does not download product images.

#### Why might the Actor not be working?

The public DMM sitemap may not be reachable on a particular attempt. After 4 failed attempts the run ends as FAILED with an explanatory status message. Retry later. If records were already delivered, they remain available as a partial dataset.

#### Is using public data from the DMM image sitemap legal?

The Actor’s source is DMM’s public image sitemap on dmm.co.jp. Whether a particular use is legal or allowed depends on the source terms and the applicable law for your use case; this Actor does not provide a legal guarantee.

# Actor input Schema

## `maxResults` (type: `integer`):

Maximum number of product records to emit.

## `proxyConfiguration` (type: `object`):

Optional proxy settings. Omit this field or set useApifyProxy to false to connect directly.

## `disableUsageStats` (type: `boolean`):

See the README Usage statistics section for details.

## Actor input object example

```json
{
  "maxResults": 3,
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "disableUsageStats": false
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset with collected product records.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "maxResults": 3,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("bovi/dmm-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "maxResults": 3,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("bovi/dmm-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "maxResults": 3,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call bovi/dmm-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bovi/dmm-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/l46T4APGSoWbJKAue/builds/VVxs06YUEH7dmDcx8/openapi.json
