{
  "openapi": "3.0.1",
  "info": {
    "title": "2ch Scraper (Двач) — Boards, Threads, Media & Links",
    "description": "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.",
    "version": "1.3",
    "x-build-id": "GRcMY6dSUvJD4tDpM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/xzhuravlev~dvach-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-xzhuravlev-dvach-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/xzhuravlev~dvach-scraper/runs": {
      "post": {
        "operationId": "runs-sync-xzhuravlev-dvach-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/xzhuravlev~dvach-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-xzhuravlev-dvach-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "boards": {
            "title": "Boards",
            "type": "array",
            "description": "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**.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "threadUrls": {
            "title": "Thread URLs",
            "type": "array",
            "description": "Specific threads to scrape, e.g. `https://2ch.hk/pr/res/3784248.html`. Any 2ch mirror domain works.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "What to scrape",
            "enum": [
              "threads",
              "posts",
              "boards"
            ],
            "type": "string",
            "description": "`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.",
            "default": "threads"
          },
          "includeBoardActivity": {
            "title": "Measure board activity",
            "type": "boolean",
            "description": "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).",
            "default": true
          },
          "extractPosts": {
            "title": "Output posts",
            "type": "boolean",
            "description": "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.",
            "default": true
          },
          "extractMedia": {
            "title": "Output media files",
            "type": "boolean",
            "description": "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.",
            "default": false
          },
          "mediaKind": {
            "title": "Media type",
            "enum": [
              "all",
              "image",
              "gif",
              "video"
            ],
            "type": "string",
            "description": "Only used with **Output media files**: keep all files or only one kind.",
            "default": "all"
          },
          "extractLinks": {
            "title": "Output links",
            "type": "boolean",
            "description": "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.",
            "default": false
          },
          "searchQuery": {
            "title": "Search in threads",
            "type": "string",
            "description": "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": {
            "title": "Thread order",
            "enum": [
              "bump",
              "newest",
              "fastest"
            ],
            "type": "string",
            "description": "`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.",
            "default": "bump"
          },
          "activeWithinHours": {
            "title": "Only threads active in the last N hours",
            "minimum": 0,
            "type": "integer",
            "description": "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.",
            "default": 0
          },
          "maxThreadsPerBoard": {
            "title": "Max threads per board",
            "minimum": 0,
            "type": "integer",
            "description": "How many threads to take from each board after filtering. `0` means all threads on the board.",
            "default": 20
          },
          "maxPostsPerThread": {
            "title": "Max posts per thread",
            "minimum": 0,
            "type": "integer",
            "description": "Only used in `posts` mode. `0` means all posts. The opening post always counts as post 1.",
            "default": 0
          },
          "postedAfter": {
            "title": "Only posts after",
            "type": "string",
            "description": "Skip threads and posts created before this date, e.g. `2026-11-01` or `2026-11-01T12:00:00Z`."
          },
          "includeArchive": {
            "title": "Include archived threads",
            "type": "boolean",
            "description": "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.",
            "default": false
          },
          "maxArchivedThreadsPerBoard": {
            "title": "Max archived threads per board",
            "minimum": 0,
            "type": "integer",
            "description": "Only used with **Include archived threads**. `0` means the whole archive, which can be thousands of threads.",
            "default": 20
          },
          "onlyNewItems": {
            "title": "Only new items since the previous run",
            "type": "boolean",
            "description": "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.",
            "default": false
          },
          "incrementalKey": {
            "title": "Memory name",
            "type": "string",
            "description": "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.",
            "default": "default"
          },
          "includeHtml": {
            "title": "Include original HTML",
            "type": "boolean",
            "description": "Also return the original post HTML in `commentHtml`. Plain text in `text` is always returned.",
            "default": false
          },
          "includeStickyThreads": {
            "title": "Include pinned threads",
            "type": "boolean",
            "description": "Pinned (sticky) threads are usually board rules and FAQ. They are skipped unless you turn this on.",
            "default": false
          },
          "skipAdultBoards": {
            "title": "Skip 18+ boards",
            "type": "boolean",
            "description": "Skip boards from the 'Взрослым' (adult) category even if they are listed in **Boards**.",
            "default": true
          },
          "domain": {
            "title": "Mirror domain",
            "type": "string",
            "description": "2ch mirror to use. Leave empty to try `2ch.hk`, `2ch.org` and `2ch.su` in that order."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Usually not needed. Turn on if the site starts blocking requests.",
            "default": {
              "useApifyProxy": false
            }
          },
          "requestDelayMs": {
            "title": "Delay between requests (ms)",
            "minimum": 0,
            "type": "integer",
            "description": "Pause between requests to stay polite to the site.",
            "default": 300
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}