# Dzen Scraper - Articles, Videos, Channels & Search (Yandex Zen) (`hexagone-data/dzen-scraper`) Actor

Scrape Dzen (dzen.ru, ex Yandex Zen) without an account: channels (articles, posts, videos, shorts), keyword searches, pasted publications. Views, full reads, likes, comments, date, duration, image, channel, subscribers; full text and comments as options. Pay per publication.

- **URL**: https://apify.com/hexagone-data/dzen-scraper.md
- **Developed by:** [Hexagone Data](https://apify.com/hexagone-data) (community)
- **Categories:** Social media, Automation, Agents
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.61 / 1,000 publications

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Dzen Scraper - Articles, Videos, Channels & Search (Yandex Zen)

Scrape **Dzen** (dzen.ru, formerly Yandex Zen) **without an account**: every publication of a channel (articles, posts, videos,
shorts), keyword searches, or a list of pasted publications. Each record has the views, **full reads**, likes, comments count,
publication date, reading time or duration, card image, premium flag and the channel (name, nickname, subscribers, verified badge);
the **full text** of articles and posts, video descriptions, tags and subtitle languages, and **comment threads** are options.

Built for media and brand monitoring of the Russian-speaking web, audience tracking of channels, blogger selection, text datasets
and AI agents that need Dzen (the second Russian content platform after VK).

- **Runs that finish**: every input gets a true status (done, partial with the reason, not found, refused) and the numbers behind it.
- **True counters**: likes, comments and "comments open" come from Dzen's comment service, never from the list card (which can be
  wrong); a post's views come from its own page (its card on a channel shows the full reads instead); an article whose card has no
  view count is read on its own page.
- **Every page of a channel tab or a search** is read, up to your limits; Dzen repeats publications between search pages: each
  publication is delivered and **charged once**.
- **No proxy needed** (Dzen answers Apify's servers directly, measured): fast runs, no proxy cost. A simple price per publication,
  no extra fee per page read.

### Try it

Press **Start** with the prefilled input: the channel dzen.ru/tass, 20 articles, 20 videos and 20 shorts, in about a minute.

Or paste:

```json
{
  "channels": ["getaclass"],
  "searchQueries": ["космос"],
  "startUrls": [{"url": "https://dzen.ru/a/avUzGfAqrmMqV0HZ"}],
  "maxItemsPerInput": 100
}
```

### What to paste

| Field | What it reads |
|---|---|
| `startUrls` | Addresses as in your browser: a channel (`dzen.ru/tass`, `dzen.ru/id/<24 hex>`, `dzen.ru/media/<name>`, `zen.yandex.ru/<name>`, `m.dzen.ru/…`; with `?tab=articles`, `?tab=longs` or `?tab=shorts` for one tab only), a publication (`dzen.ru/a/…` article, `/b/…` post, `/video/watch/…` video, `/shorts/…` short, old `zen.yandex.ru/media/<name>/<title>-<id>` addresses), a search (`dzen.ru/search?query=word`, with its `type_filter`). Tracking parameters are ignored. |
| `channels` | A channel: nickname (`tass` or `@tass`), `id/<24 hex>` for a channel without nickname, or a channel address. |
| `searchQueries` | One Dzen search per word or phrase (Cyrillic or Latin), of the type chosen in `searchType`. |
| `searchType` | `all` (default), `articles` (articles and posts), `videos` (videos and shorts). |
| `contentTypes` | Channel tabs read: `articles` (articles and posts), `videos`, `shorts` (default: all three). |
| `channelSort` | `newest` (default), `oldest`, `popular`, as Dzen sorts a channel tab. |
| `fetchDetails` | Full text of articles and posts; description, tags and subtitle languages of videos and shorts (one more request per publication, same price). |
| `includeComments`, `maxCommentsPerPost`, `commentsSort` | A `commentsList` per publication (root comments first, then replies), up to `maxCommentsPerPost` (default 20; 0 = all), sorted `top`, `newest` or `oldest`. Dzen serves only its first 50 `top` root comments: beyond them, the other root comments follow newest first (said in the log). |
| `maxItemsPerInput` | New publications per input (default 100; 0 = no limit). For a channel, each tab counts up to it. |
| `maxItems` | Publications in the whole run (default 1,000; 0 = no limit). |
| `proxyConfiguration` | No proxy (default). |

Refused, with the reason in the Run summary (nothing charged for them): the Dzen home page and its rubrics (news, videos, topics),
channel or topic searches, addresses outside Dzen, an unknown option value. A channel sort Dzen does not apply is refused too: the
actor checks the sort on Dzen's answer instead of charging you for another order.

### Output

One record per publication (`id` is the key; a publication found by two inputs is delivered once). Example (a record delivered by a real run
on Apify, 17 November 2026: the latest video of dzen.ru/getaclass):

```json
{
  "id": "6af5321608c95d69130ad4da",
  "type": "video",
  "url": "https://dzen.ru/video/watch/6af5321608c95d69130ad4da",
  "title": "Эффект горячего шоколада",
  "publishedAt": "2026-11-12T03:29:57Z",
  "views": 21,
  "viewsTillEnd": null,
  "likes": 0,
  "comments": 0,
  "commentsEnabled": true,
  "timeToReadSeconds": null,
  "duration": 697,
  "imageUrl": "https://avatars.dzeninfra.ru/get-zen_doc/271828/pub_6af5321608c95d69130ad4da_6af532abfbd16748b03bad96/scale_1200",
  "isPremium": false,
  "channel": {
    "id": "5da40fd8bc251465cd7975ed",
    "name": "GetAClass | Физика в опытах",
    "nickname": "getaclass",
    "url": "https://dzen.ru/getaclass",
    "subscribers": 19212,
    "verified": false
  },
  "text": null,
  "description": null,
  "tags": null,
  "subtitles": null,
  "textPreview": null,
  "sourceType": "channel",
  "sourceInput": "channels: getaclass",
  "position": 1,
  "scrapedAt": "2026-11-17T20:31:21+00:00"
}
```

Fields: `id`, `type` (article, post, video, short), `url`, `title` (null for a post), `publishedAt`, `views`, `viewsTillEnd`
(full reads, articles and posts), `likes`, `comments`, `commentsEnabled`, `timeToReadSeconds`, `duration` (s, videos and shorts),
`imageUrl` (card image), `isPremium`, `channel` (id, name, nickname, url, subscribers, verified), `text`, `description`, `tags`,
`subtitles` (with `fetchDetails`, else null), `textPreview` (extract shown on the list card), `sourceType` (channel, search,
publication), `sourceInput`, `position` (rank in the list read), `scrapedAt`; with `includeComments`, `commentsList` (id, text,
publishedAt, authorName, likes, dislikes, repliesCount, isPinned, parentId). Unknown values are `null`, never invented.

### Run summary

The **Run summary** (key-value store, `SUMMARY` page and `OUTPUT` JSON) gives, per input: `kind` (channel, search, publication),
`contentType`, `sort` or `searchType`, `status` (`done`, `partial_collection`, `stopped_at_limit`, `no_results`, `not_found`,
`refused`, `not_processed`; rarely `interrupted` when the platform stopped the run during that input, or `internal_error` when the
actor failed on it, both said in the message), `reason` (`max_items`, `site_error`, `site_page_empty`, `site_page_loop`, `refused_by_site`,
`filter_ignored`, `input_error`, `unsupported_url`), `pagesRead`, `listed`, `delivered`, `duplicatesSkipped`, `fichesRead`
(publication pages read), `fichesFailed`, `removedSkipped`, `countersMissing` and a message. `siteTotal` is always null: Dzen
announces no total for a channel or a search. A run that Dzen refuses entirely says so, without blaming your input; a run with no
publication at all ends FAILED with the reason (only the start fee is paid).

### Pricing

Pay per result: **$0.0023 per delivered publication** ($2.30 per 1,000 publications), plus $0.005 per run start.
With `includeComments`: **$0.0008 per delivered comment** ($0.80 per 1,000 comments). Pages, publication pages read
for details, refused or not-found inputs and repeated publications are never charged. Higher Apify plans get their usual tier
discount.

| Run | Cost |
|---|---|
| 20 publications | $0.051 |
| 1,000 publications | $2.305 |

Set a maximum charge per run in the run options: the actor stops at it and says so (comments beyond it are not read).

### Known limits

- **No total announced**: Dzen gives no publication count for a channel nor a result count for a search; a channel tab is read
  until Dzen's last page (`siteTotal` is null).
- **Searches depend on the visitor**: two visits share 70-80 % of the results (measured), in another order; a search is the list
  Dzen served to this run. A query with no real match still returns Dzen's nearest publications (Dzen's choice, not the actor's).
- **Dates to the second**: a date read from a list is rounded by Dzen, up to 1 second later than on the publication's own page.
- **Views of a post** are read on its own page (the post's card on a channel shows its full reads, `viewsTillEnd`). A post is often read to the end in the feed without its page being opened, so its `viewsTillEnd` can be higher than its `views` (6 posts of 6 on one channel, 17 November 2026): both numbers are Dzen's own.
- **Views of old articles**: for some old articles Dzen serves `views` = 0 while their page shows their full reads (44 of the 986
  articles of one search, 17 November 2026). `views` is then the number the page shows (`viewsTillEnd`); same rule for a post
  (a full read is a read). `viewsTillEnd` is always the number Dzen serves.
- **Not delivered**: Dzen's personal discovery feed (different for each visitor), channel and topic search, subtitle
  transcripts, dislikes and reposts of publications (not served without an account), and never any e-mail or phone of a channel.
- **Comments**: the author's display name only (no account id, no avatar); a publication with comments closed gets an empty list.
  If Dzen refuses a publication's counters (`likes`, `comments` and `commentsEnabled` null, counted in `countersMissing`), its
  comments are not read either: its `commentsList` is empty and the log says so. A comment made of an image only has `text: null`.
- **Publications Dzen no longer serves** on their own page (removed between the list and the page) are skipped and counted, not
  charged.

### Support

Questions or a page that does not work: open an issue on the actor's page, with the run link. If the actor saves you time, please
leave a review on its Store page: it helps others find it.

This actor is not affiliated with, endorsed by or sponsored by Dzen, VK or Yandex. It reads only public pages, as a logged-out
visitor.

# Actor input Schema

## `startUrls` (type: `array`):

Addresses as in your browser: a channel (dzen.ru/tass, dzen.ru/id/<24 hex>, dzen.ru/media/<name>, zen.yandex.ru/<name>; add ?tab=articles, ?tab=longs or ?tab=shorts for one tab only), a publication (dzen.ru/a/…, /b/…, /video/watch/…, /shorts/…, old zen.yandex.ru/media/… addresses) or a search (dzen.ru/search?query=word, with its type_filter). The home page, rubrics and channel or topic searches are refused, said in the Run summary.

## `channels` (type: `array`):

Dzen channels: a nickname (tass or @tass), id/<24 hex> for a channel without nickname, or a channel address. Each tab chosen in Content types is read, newest first unless Channel sort says otherwise.

## `searchQueries` (type: `array`):

Each word or phrase is one Dzen search, as typed in the search box of dzen.ru (Cyrillic or Latin, e.g. космос). Every page of results is read, up to the limits below. Dzen's results depend on the visitor (measured: two visits share 70-80 %) and a query with no match still returns Dzen's nearest publications.

## `searchType` (type: `string`):

Applies to Search queries. A pasted search address keeps its own type.

## `contentTypes` (type: `array`):

Tabs read for each channel (default: all three). A channel address with ?tab= reads that tab only. A tab the channel does not have is said in the Run summary (no_results).

## `channelSort` (type: `string`):

Order of each channel tab, as Dzen sorts it. The actor checks the sort on Dzen's answer: a sort Dzen does not apply is refused, with no charge for that tab.

## `fetchDetails` (type: `boolean`):

On: read each publication's own page for the full text of articles and posts, the description, tags and subtitle languages of videos and shorts (slower: one more request per publication, same price). Off (default): these fields are null. Posts are always read on their own page (their list has no true view count).

## `includeComments` (type: `boolean`):

On: each publication gets a commentsList (text, date, author display name, likes, dislikes, replies count, pinned, parent comment), root comments first then their replies. Charged per comment delivered (see Pricing); closed or absent comments give an empty list, with no comment charge.

## `maxCommentsPerPost` (type: `integer`):

With Include comments: stop each publication's comments after this many (0 = all comments Dzen serves).

## `commentsSort` (type: `string`):

With Include comments: the order of the root comments, as Dzen sorts them. Dzen serves only its first 50 top comments; beyond them the other root comments follow newest first.

## `maxItemsPerInput` (type: `integer`):

Stop each input (search, channel tab) after this many new publications (0 = no limit). For a channel, each tab counts up to this number.

## `maxItems` (type: `integer`):

Stop the whole run after this many publications (0 = no limit).

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

No proxy (default): Dzen answers Apify's servers directly (measured), with no proxy cost. If Dzen refuses 3 times in a row (SmartCaptcha page, HTTP 403/429), the actor switches to Apify datacenter proxy, then to Apify residential proxy in Russia, for the rest of the run (if your account has them). Your own choice is used for every request.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://dzen.ru/tass"
    }
  ],
  "channels": [],
  "searchQueries": [],
  "searchType": "all",
  "contentTypes": [
    "articles",
    "videos",
    "shorts"
  ],
  "channelSort": "newest",
  "fetchDetails": false,
  "includeComments": false,
  "maxCommentsPerPost": 20,
  "commentsSort": "top",
  "maxItemsPerInput": 20,
  "maxItems": 1000,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `publications` (type: `string`):

All publication records, one per publication, with every field.

## `publicationsOverview` (type: `string`):

Id, type, title, page, date, views, full reads, likes, comments, duration, channel.

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

Readable per-input summary: status, publications delivered, reason for anything not delivered.

## `summaryJson` (type: `string`):

The same summary as JSON (OUTPUT record).

# 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 = {
    "startUrls": [
        {
            "url": "https://dzen.ru/tass"
        }
    ],
    "channels": [],
    "searchQueries": [],
    "maxItemsPerInput": 20,
    "maxItems": 1000,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("hexagone-data/dzen-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 = {
    "startUrls": [{ "url": "https://dzen.ru/tass" }],
    "channels": [],
    "searchQueries": [],
    "maxItemsPerInput": 20,
    "maxItems": 1000,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("hexagone-data/dzen-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 '{
  "startUrls": [
    {
      "url": "https://dzen.ru/tass"
    }
  ],
  "channels": [],
  "searchQueries": [],
  "maxItemsPerInput": 20,
  "maxItems": 1000,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call hexagone-data/dzen-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hexagone-data/dzen-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/FKII3L8UrEH4G2UUh/builds/81OhjH72tZOnrocUA/openapi.json
