# 2ch Scraper (Двач) — Boards, Threads, Media & Links (`xzhuravlev/dvach-scraper`) Actor

Scrape 2ch.hk (Двач) without login: threads, every post with replies, direct links to all photos, GIFs and videos, posted links, and live activity of all boards. Search by keyword, filter by date, monitor new posts on a schedule. Export to JSON, CSV or Excel. $1.50 per 1,000 results.

- **URL**: https://apify.com/xzhuravlev/dvach-scraper.md
- **Developed by:** [xzhuravlev](https://apify.com/xzhuravlev) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 results

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/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

**2ch Scraper** collects data from **2ch.hk (Двач)**, the largest Russian-speaking imageboard: **threads**, **every post** with its replies and media links, and **live activity of all boards**. Search by keyword, filter by date, find what is being discussed right now, and get only new posts on a schedule. No login, no cookies, no browser: it reads 2ch's public JSON API, so runs are fast and cheap. Export to **JSON, CSV, Excel** or send the data straight to Google Sheets, Make, Zapier, n8n or your AI agent.

### 🔎 What data can you get from 2ch?

| Mode | One row per | Main fields |
|---|---|---|
| `boards` | board | name, category, **2ch's own posting speed and unique posters**, our 24 h posts-per-hour estimate, threads active in the last hour and 24 h, new threads, last post time, **top 5 fastest threads** |
| `threads` | thread | title, opening post text, posts count, **posts per hour**, views, tag, created and last activity time, link |
| `posts` | post | text without HTML, author name, date, position in thread, **replies (`replyTo`)**, image and video links with size and resolution, link |
| `posts` + **media files** | photo, GIF or video | **direct file link**, preview, kind, format, resolution, size, video length, source post |
| `posts` + **links** | link posted in a thread | URL, **domain** (youtu.be, t.me…), link text, whether it points to another 2ch thread, source post |

Every row has a direct link to 2ch, and the output has the same structure in every run. In posts mode you choose which rows you want: posts, media files, links, or any combination.

### 🚀 How to scrape 2ch

1. Click **Try for free** (or **Start**).
2. Pick a mode:
   - **Boards directory** to see which boards are active and what is hot;
   - **Threads only** to list threads of one or more boards;
   - **Threads with all posts** to download whole discussions.
3. Enter board codes, e.g. `pr`, `b`, `news`. The code is the part of the address between slashes: `pr` in `2ch.hk/pr/`. You can also paste thread links.
4. Optionally add a keyword, a date, or turn on **Only new items** for monitoring.
5. Click **Start** and download the results from the **Output** tab, or connect them to your tools.

### 🖼️ Get all media files or links from a thread

Paste a thread link, choose **Threads with all posts**, and pick what you need:

```json
{
  "threadUrls": ["https://2ch.hk/b/res/338346271.html"],
  "mode": "posts",
  "extractPosts": false,
  "extractMedia": true,
  "mediaKind": "video"
}
```

- **Output media files**: one row per photo, GIF or video with a direct link, preview, format, resolution, size and video length. Filter with **Media type**: all, photos, GIFs or videos.
- **Output links**: one row per link people posted (YouTube, news, Telegram, other threads), with its domain. Reply links like `>>12345` are not included.
- **Output posts**: turn it off if you only want files or links, and you pay only for those rows.

Files are not downloaded: you get direct links and can save the files with any download tool. In the **Output** tab, **Media files** and **Links** open ready-made tables.

### 💡 Use cases

- **Trend and sentiment research.** What do Russian-speaking users say about a product, game, technology, brand or event?
- **Datasets for NLP and LLMs.** Large amounts of informal Russian text, with thread structure and a reply graph.
- **Monitoring.** Run every hour or every day and receive only threads and posts that appeared since the last run.
- **Finding where to look.** The boards directory shows every board ranked by speed, with its hottest threads right now.
- **Archiving.** Save whole threads, including ones that already moved to the board archive.
- **Media and link collections.** All videos or pictures of a thread as a list of direct links, or every YouTube and news link people shared.

### 💰 How much does it cost to scrape 2ch?

**$1.50 per 1,000 results**, plus $0.00005 per run start. Platform usage is included: you pay only for results. Real examples:

| What you scrape | Results | Price |
|---|---|---|
| 20 latest threads of `/pr/` | 20 | $0.03 |
| All posts of 2 active `/pr/` threads | 535 | $0.80 |
| Directory of all 147 boards with activity | 147 | $0.22 |
| All media files of a busy `/b/` thread | 708 | $1.06 |
| Hourly monitoring of `/pr/` with **Only new items** (about 16 new posts per hour) | ~384 per day | ~$0.58 per day |

- A run with no new items costs only the start fee.
- Set **Maximum cost per run** when starting the Actor. It stops cleanly at that amount and keeps everything collected so far.
- `maxThreadsPerBoard` and `maxPostsPerThread` limit the size of each run.

### ✨ Features

- **Any board**: `/b/`, `/pr/`, `/news/`, `/po/`, `/v/`, `/sci/` and 140+ more.
- **Keyword search** in thread titles, opening posts and tags. `python|rust` matches either word. Words match from their start: `нейросет` finds `нейросети`, but `айти` does not find `найти`.
- **What is hot now**: sort threads by speed and keep only those active in the last N hours.
- **Date filter**: only threads or posts after a given date.
- **Only new items**: scheduled runs return only what you have not received yet and skip unchanged threads without downloading them.
- **Board archive**: threads that left the board are scraped from the archive; thread links are found there automatically.
- **Clean text**: line breaks and quotes kept, HTML removed (original HTML available on request).
- **Reply graph**: `replyTo` lists the posts each post answers.
- **Media links**: full size and thumbnail, with type, size and resolution. Files themselves are not downloaded.
- **18+ boards are skipped** by default.

### 🛡️ Reliability

- **Never charged twice.** If the platform restarts a run, it continues where it stopped instead of saving the same posts again.
- **No duplicates** when the same thread is given by link and also found on a board.
- **Mirror fallback**: if `2ch.hk` is unavailable, the Actor switches to `2ch.org` or `2ch.su`.
- **Clear errors**: if the site starts limiting requests, the run says what to change instead of failing silently.
- **Run summary**: the status line shows what was saved per board; the `SUMMARY` record has the same numbers as JSON.
- **Checked daily**: an automatic test checks every morning that 2ch still answers in the expected format.

### 📥 Input example

```json
{
  "boards": ["pr", "news"],
  "mode": "posts",
  "searchQuery": "нейросет|ИИ",
  "maxThreadsPerBoard": 10,
  "maxPostsPerThread": 200,
  "postedAfter": "2026-11-01"
}
```

<details>
<summary>All input fields</summary>

| Field | What it does |
|---|---|
| `boards` | Board codes without slashes, e.g. `pr`, `b`. In `boards` mode leave empty to list all boards. |
| `threadUrls` | Specific threads, e.g. `https://2ch.hk/pr/res/3784248.html`. |
| `mode` | `boards`, `threads` or `posts`. |
| `includeBoardActivity` | Boards mode: measure activity of each board (on by default). |
| `searchQuery` | Keep only threads containing these words. Use `\|` for OR. |
| `sortBy` | `bump` (recently active first), `newest`, or `fastest` (most posts per hour). |
| `activeWithinHours` | Keep only threads with a new post in the last N hours, `0` = off. |
| `maxThreadsPerBoard` | Threads per board after filtering, `0` = all. |
| `maxPostsPerThread` | Posts per thread in `posts` mode, `0` = all. |
| `postedAfter` | `threads` mode: threads created after this date. `posts` mode: posts written after this date. |
| `includeArchive` | Also scrape threads from the board archive, newest first. |
| `maxArchivedThreadsPerBoard` | Archived threads per board, `0` = whole archive. |
| `onlyNewItems` | Return only threads or posts that previous runs with the same memory name did not return. |
| `incrementalKey` | Memory name for `onlyNewItems`. Use a separate name for each monitoring task. |
| `extractPosts` | Posts mode: one row per post (on by default). |
| `extractMedia` | Posts mode: one row per photo, GIF or video with a direct link. |
| `mediaKind` | With media files: `all`, `image`, `gif` or `video`. |
| `extractLinks` | Posts mode: one row per link posted in the thread. |
| `includeHtml` | Add the original HTML of each post. |
| `includeStickyThreads` | Include pinned rules and FAQ threads (off by default). |
| `skipAdultBoards` | Skip 18+ boards (on by default). |

</details>

### 📤 Output example

A post (`posts` mode), real data:

```json
{
  "type": "post",
  "threadNum": 3784248,
  "postNum": 3784312,
  "positionInThread": 3,
  "isOp": false,
  "threadSubject": "JS Thread #330",
  "board": "pr",
  "subject": "",
  "text": ">>3784254\nУже все есть, просто не чекаете технолоджис или долго согласовываете с коллегами (или просто лень и пох).\nOxlint — более новый линтер, написанный на Rust. Он часть проекта Oxc (Oxidation Compiler), который поддерживается командой VoidZero (создателем Vue и Vite).",
  "name": "Аноним",
  "trip": null,
  "createdAt": "2026-10-25T19:35:47.000Z",
  "files": [],
  "filesCount": 0,
  "replyTo": [3784254],
  "isSage": false,
  "url": "https://2ch.hk/pr/res/3784248.html#3784312"
}
```

A board (`boards` mode), real data, shortened. Every board row also has `siteSpeed` and `uniquePosters` (2ch's own counters from its home page), `threadsCount` and `lastPostNum`:

```json
{
  "type": "board",
  "board": "b",
  "name": "Бред",
  "category": "Разное",
  "isAdult": false,
  "threadsActiveLastHour": 109,
  "threadsActiveLast24h": 210,
  "newThreadsLast24h": 186,
  "lastPostAt": "2026-11-22T23:36:16.000Z",
  "postsPerHour": 1174.8,
  "postsPerHourBasedOnHours": 25.8,
  "topThreads": [
    {
      "threadNum": 338466263,
      "subject": "Наташка переехала в божественную Японию и ужаснулась",
      "postsCount": 413,
      "postsPerHour": 50.5,
      "lastActivityAt": "2026-11-22T23:15:41.000Z",
      "url": "https://2ch.hk/b/res/338466263.html"
    }
  ],
  "url": "https://2ch.hk/b/"
}
```

<details>
<summary>More output details: files, threads, run summary</summary>

Each entry in `files`:

```json
{
  "url": "https://2ch.hk/pr/src/3784248/17929518046390250292.jpg",
  "thumbnailUrl": "https://2ch.hk/pr/thumb/3784248/17929518046390250292s.jpg",
  "name": "HVaZDBYWIAAEdaI.jpg",
  "type": "jpg",
  "width": 1080,
  "height": 514,
  "sizeKb": 48,
  "durationSec": null,
  "md5": "58ac9cc217f19654742274dfc343daa0"
}
```

A thread (`threads` mode) has the same text fields plus `postsCount`, `postsPerHour`, `filesCount`, `views`, `tags`, `isSticky`, `isClosed` and `lastActivityAt`. Every row has `isArchived`, which is `true` for threads from the archive; their `url` points to the archive page.

The dataset has five views: **Overview** (all rows), **Media files**, **Links**, **Boards** (the board directory) and **Reply graph** (who replies to whom).

Each run also saves a `SUMMARY` record:

```json
{
  "savedItems": 1026,
  "mode": "posts",
  "mirror": "https://2ch.org",
  "onlyNewItems": true,
  "budgetReached": false,
  "boards": {
    "pr": { "threads": 2, "posts": 1026, "archivedThreads": 2, "unchangedSkipped": 1, "notFound": 0 }
  },
  "errors": []
}
```

</details>

### 🔌 Integrations and API

- **Google Sheets, Make, Zapier, n8n, Slack, webhooks**: open the **Integrations** tab of your run or task. For example, send every new post matching your keyword to Slack or a Google Sheet.
- **Schedules**: create a task with **Only new items** turned on and schedule it hourly or daily.
- **API**: start runs and download results with the Apify API, the JavaScript or Python client, or the CLI (see the **API** tab).
- **AI agents (MCP)**: connect the Apify MCP server to Claude, Cursor or another agent, and it can call this Actor as a tool, for example "which 2ch boards are discussing X right now?".

### ❓ FAQ

**Do I need a 2ch account, cookies or a proxy?**
No. The Actor uses the public JSON API. A proxy is only needed if the site starts limiting requests, and the run tells you when.

**Is it legal to scrape 2ch?**
The Actor collects only publicly available posts. Posts are anonymous, but they may still contain personal data written by users. You are responsible for using the data in line with the site's rules and the laws that apply to you (e.g. GDPR).

**Can it download images and videos?**
Turn on **Output media files** to get one row per file with a direct link, format, resolution, size and video length, and choose photos, GIFs or videos only. The files themselves are not downloaded: save them from the links with any download tool.

**How do I get only new posts every hour?**
Turn on **Only new items**, give the task its own **Memory name**, and schedule it. Add `postedAfter` so the first run does not return the whole history. Runs with nothing new cost only the start fee.

**How is board speed measured?**
Each board has two numbers. `siteSpeed` and `uniquePosters` are 2ch's own counters, the same numbers its home page shows. They come from one request for all boards; 2ch updates them about once an hour, and the run's `SUMMARY` record says when (`site.updatedAt`). `postsPerHour` is our estimate over about the last 24 hours. Post numbers on a board are one counter for all its threads, so the posts written since a thread created about a day ago are the difference of post numbers. Deleted posts also use numbers, so it is a close estimate. Compare the two to see whether a board is speeding up or slowing down.

**Why do some boards have empty activity fields?**
Boards that 2ch redirects to another board (merged boards) or that the site fails to serve at that moment have no activity data. They are still listed.

**Does it work with 2ch.org and 2ch.su?**
Yes. Thread links from any mirror work, and the Actor switches mirrors automatically if one is down.

**Are 18+ boards included?**
They are skipped by default. Turn off **Skip 18+ boards** to include them.

### 🛟 Support

Found a bug or missing a field? Open an issue in the **Issues** tab. Describe the input you used and what you expected. Issues are usually answered within a day.

***

### 🇷🇺 Кратко по-русски

**Парсер Двача (2ch.hk)** без логина и куки. Собирает треды и все посты с ответами и ссылками на картинки и видео (их можно получить отдельным списком: только фото, GIF или видео), отдельно собирает ссылки, которые люди постят, а ещё показывает активность всех досок: постов в час, активные и новые треды, самые быстрые треды прямо сейчас. Можно искать по словам, задавать дату, собирать архивные треды и получать только новые посты по расписанию. Результат скачивается в JSON, CSV или Excel или отправляется в Google Sheets, Telegram через Make и другие сервисы. Цена: $1,50 за 1000 результатов.

# Changelog

This Actor's version history is a separate document: https://apify.com/xzhuravlev/dvach-scraper/changelog.md

# Actor input Schema

## `boards` (type: `array`):

Board codes without slashes, e.g. `pr`, `b`, `news`, `po`. In **Boards directory** mode leave empty to list all boards. Leave empty in other modes if you only want specific threads from **Thread URLs**.

## `threadUrls` (type: `array`):

Specific threads to scrape, e.g. `https://2ch.hk/pr/res/3784248.html`. Any 2ch mirror domain works.

## `mode` (type: `string`):

`boards` lists boards with their activity: 2ch's own posting speed and unique posters, active threads, top threads right now. Use it to find where to look. `threads` returns one item per thread (title, opening post, counters, speed). `posts` returns every post of each thread. In `posts` mode you can also get media files and links as separate rows.

## `includeBoardActivity` (type: `boolean`):

Only used in **Boards directory** mode. Every board always gets 2ch's own speed and unique posters from one quick request. Turn this on to also get threads active in the last hour and day, new threads, our 24-hour posts-per-hour estimate and the top threads of each board (one request per board, about 3 minutes for all boards).

## `extractPosts` (type: `boolean`):

Only used in **Threads with all posts** mode. One row per post: text, date, replies and its media links. Turn off if you only need media files or links.

## `extractMedia` (type: `boolean`):

Only used in **Threads with all posts** mode. Adds one row per photo, GIF or video with a direct link, preview, format, resolution, size and duration. Files are not downloaded, you get direct links to them.

## `mediaKind` (type: `string`):

Only used with **Output media files**: keep all files or only one kind.

## `extractLinks` (type: `boolean`):

Only used in **Threads with all posts** mode. Adds one row per link people posted (YouTube, news, Telegram, other threads) with its domain. Reply links like >>12345 are not included.

## `searchQuery` (type: `string`):

Only keep threads whose title, opening post or tags contain this text (case-insensitive). Separate several words with `|` to match any of them, e.g. `python|rust`.

## `sortBy` (type: `string`):

`bump` follows the board's current order (recently active first). `newest` takes the most recently created threads first. `fastest` takes threads with the most posts per hour first.

## `activeWithinHours` (type: `integer`):

Keep only threads with a new post in the last N hours, e.g. `1` for what is being discussed right now. `0` turns the filter off. Does not apply to archived threads.

## `maxThreadsPerBoard` (type: `integer`):

How many threads to take from each board after filtering. `0` means all threads on the board.

## `maxPostsPerThread` (type: `integer`):

Only used in `posts` mode. `0` means all posts. The opening post always counts as post 1.

## `postedAfter` (type: `string`):

Skip threads and posts created before this date, e.g. `2026-11-01` or `2026-11-01T12:00:00Z`.

## `includeArchive` (type: `boolean`):

Also scrape threads that dropped off the board into its archive, most recently archived first. Search and date filters apply (search matches the archived thread title). Thread URLs that point to deleted-from-board threads are always looked up in the archive.

## `maxArchivedThreadsPerBoard` (type: `integer`):

Only used with **Include archived threads**. `0` means the whole archive, which can be thousands of threads.

## `onlyNewItems` (type: `boolean`):

For scheduled monitoring. The Actor remembers what it already returned and next time returns only new threads (`threads` mode) or new posts (`posts` mode). Unchanged threads are not even downloaded, so repeated runs are cheap. The first run returns everything that matches your filters.

## `incrementalKey` (type: `string`):

Only used with **Only new items**. Give each monitoring task its own name (e.g. `pr-ai-news`) so they do not share memory. Use a new name to start from scratch.

## `includeHtml` (type: `boolean`):

Also return the original post HTML in `commentHtml`. Plain text in `text` is always returned.

## `includeStickyThreads` (type: `boolean`):

Pinned (sticky) threads are usually board rules and FAQ. They are skipped unless you turn this on.

## `skipAdultBoards` (type: `boolean`):

Skip boards from the 'Взрослым' (adult) category even if they are listed in **Boards**.

## `domain` (type: `string`):

2ch mirror to use. Leave empty to try `2ch.hk`, `2ch.org` and `2ch.su` in that order.

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

Usually not needed. Turn on if the site starts blocking requests.

## `requestDelayMs` (type: `integer`):

Pause between requests to stay polite to the site.

## Actor input object example

```json
{
  "boards": [
    "pr"
  ],
  "threadUrls": [],
  "mode": "threads",
  "includeBoardActivity": true,
  "extractPosts": true,
  "extractMedia": false,
  "mediaKind": "all",
  "extractLinks": false,
  "sortBy": "bump",
  "activeWithinHours": 0,
  "maxThreadsPerBoard": 20,
  "maxPostsPerThread": 0,
  "includeArchive": false,
  "maxArchivedThreadsPerBoard": 20,
  "onlyNewItems": false,
  "incrementalKey": "default",
  "includeHtml": false,
  "includeStickyThreads": false,
  "skipAdultBoards": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "requestDelayMs": 300
}
```

# Actor output Schema

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

No description

## `media` (type: `string`):

No description

## `links` (type: `string`):

No description

## `boards` (type: `string`):

No description

## `summary` (type: `string`):

No description

# 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 = {
    "boards": [
        "pr"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("xzhuravlev/dvach-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 = { "boards": ["pr"] }

# Run the Actor and wait for it to finish
run = client.actor("xzhuravlev/dvach-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 '{
  "boards": [
    "pr"
  ]
}' |
apify call xzhuravlev/dvach-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,xzhuravlev/dvach-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/2ScKOltgBZ4FTwf6m/builds/GRcMY6dSUvJD4tDpM/openapi.json
