# Yandex Zen Scraper (`sashaebashu/yandex-zen-scraper`) Actor

Yandex Zen (Dzen) scraper :
extract public stats from articles and videos in bulk: views, likes, comments, author info, subscribers. Paste a list of URLs.

- **URL**: https://apify.com/sashaebashu/yandex-zen-scraper.md
- **Developed by:** [Sasha Ebashu](https://apify.com/sashaebashu) (community)
- **Categories:** Social media, Videos, News
- **Stats:** 3 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $20.00 / 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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Yandex Zen Scraper

### What does Yandex Zen Scraper do?

Yandex Zen Scraper extracts public stats from [Yandex Zen / Dzen](https://dzen.ru/)
publications without an API key or login. **Paste a list of links** (articles or
videos) and it returns clean, structured data for every one — built for **bulk**
runs.

Yandex Zen Scraper can extract:

- View counts
- Likes
- Comment counts
- Engagement rate (calculated)
- Author / channel name, ID, profile URL and subscriber count
- Title, category and publish date

It works for **articles** (`/a/…`), **posts** (`/b/…`), **videos**
(`/video/watch/…`) and **shorts** (`/shorts/…`).

---

### How does it work?

Unlike many sites, Dzen publication pages are gated behind Yandex sign-in for
plain HTTP requests. Dzen Scraper therefore uses a **real headless browser**
(Playwright) to render each page anonymously — exactly like a normal reader —
and reads the stats from the rendered page. No Yandex account is needed.

Because Yandex aggressively blocks datacenter IPs with SmartCaptcha, the scraper
uses **Apify Residential Proxy (country RU) by default**.

---

### How to use it

1. Click **Start**
2. Paste your Dzen links into the **Yandex Zen URLs** field — one per line, or a
   whole blob separated by spaces/commas/new lines (they are split automatically).
   You can also upload a file or link a Google Sheet via the second field.
3. Click **Run**
4. When the run finishes, preview or download your data from the **Output** tab
   (JSON, CSV, Excel)

Supported URL formats (query strings `?…` and anchors `#…` are ignored):

- `https://dzen.ru/a/<id>` — articles
- `https://dzen.ru/b/<id>` — posts (short text publications)
- `https://dzen.ru/video/watch/<id>` — videos
- `https://dzen.ru/shorts/<id>` — shorts

Duplicate URLs are removed automatically, so bulk lists with repeats are fine.

---

### Input parameters

| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| urls | array | Dzen URLs, bulk paste (one per line or a separated blob) | — |
| startUrls | array | Alternative bulk input: list / file / Google Sheet | — |
| maxItems | integer | Max publications per run (1–5000) | 1000 |
| maxConcurrency | integer | Parallel browser pages (keep 1–3) | 2 |
| proxyConfiguration | object | Proxy settings | Residential RU |

> **Proxy note.** Yandex blocks datacenter IPs quickly, so **Residential proxy
> (RU)** is enabled by default. You can turn it off, but expect SmartCaptcha on
> anything beyond a few requests.

---

### Results

One JSON object is returned per input URL.

Example output:

```json
[
  {
    "inputUrl": "https://dzen.ru/a/afRiHXixAFfUTmXO",
    "platform": "dzen",
    "contentId": "afRiHXixAFfUTmXO",
    "contentType": "article",
    "contentUrl": "https://dzen.ru/a/afRiHXixAFfUTmXO",
    "title": "Овощи, которые стоит сажать рядом друг с другом 🍅🌿",
    "author": "Садовый клуб. Вероника Поливкина",
    "authorId": "5ddebbefc429860a2f8e4c3c",
    "authorUrl": "https://dzen.ru/id/5ddebbefc429860a2f8e4c3c",
    "authorSubscribers": 86128,
    "views": 16158,
    "likes": 263,
    "dislikes": null,
    "comments": 3,
    "reposts": null,
    "favorites": null,
    "engagementRate": 1.65,
    "category": "Садоводство",
    "publishedAt": "2026-05-06T05:30:37.272Z",
    "scrapedAt": "2026-06-14T12:08:19.363Z",
    "status": "success",
    "error": null
  }
]
````

#### Field description

| Field             | Description                                              |
| ----------------- | -------------------------------------------------------- |
| inputUrl          | Original Dzen URL provided as input                      |
| platform          | Always `"dzen"`                                          |
| contentId         | Dzen publication id                                      |
| contentType       | `article`, `post`, `video` or `short`                    |
| contentUrl        | Canonical publication URL                                |
| title             | Publication title                                        |
| author            | Channel / author name                                    |
| authorId          | Channel id                                               |
| authorUrl         | Link to the channel                                      |
| authorSubscribers | Channel subscriber count (see caveat below)              |
| views             | View count                                               |
| likes             | Like count                                               |
| dislikes          | Not exposed publicly by Dzen → always `null`             |
| comments          | Comment count                                            |
| reposts           | Not exposed publicly by Dzen → always `null`             |
| favorites         | Not exposed publicly by Dzen → always `null`             |
| engagementRate    | (likes + comments) / views × 100                         |
| category          | Category / tag                                           |
| publishedAt       | Publish timestamp                                        |
| scrapedAt         | Timestamp of when the data was collected                 |
| status            | `success`, `unavailable` or `failed`                     |
| error             | Reason string when not successful, otherwise `null`      |

#### Which metrics are available?

| ✅ Available | 🚫 Not available |
| --- | --- |
| views, likes, comments, title, author, authorId, authorUrl, category, publishedAt | dislikes, reposts, favorites — Dzen does not expose these publicly (always `null`) |

#### Special cases & caveats

- **Deleted / private / unavailable publication** → `status: "unavailable"`,
  `error: "likely_deleted"`.
- **Unrecognised URL** → `status: "failed"`, `error: "invalid_url"`.
- **Blocked by Yandex** (captcha/SSO) → the request is retried with a fresh proxy
  session; if it keeps failing the item is marked `failed`.
- **Subscriber count** is accurate for both articles and videos. (For video/short
  pages the count is fetched from the public channel feed API, because the player
  embeds recommended channels on those pages.)
- **Billing:** unavailable/failed items go to a separate **ERRORS** dataset
  (Storage → Datasets → ERRORS), not the main output — so you are not charged for
  deleted/private/invalid URLs.

***

### Notes

- Built with the Apify SDK + Crawlee + Playwright (headless Chromium).
- Endpoints and extraction are documented in [`RESEARCH.md`](./RESEARCH.md).
- Only public data is collected — do not scrape personal data without a
  legitimate reason.

# Actor input Schema

## `urls` (type: `array`):

Paste one URL per line. Supports articles (https://dzen.ru/a/<id>), videos (https://dzen.ru/video/watch/<id>) and shorts (https://dzen.ru/shorts/<id>). You can also paste many links separated by spaces, commas or new lines — they will be split automatically. Query strings and anchors are ignored.

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

Alternative bulk input: paste a list, upload a file, or link a Google Sheet of Dzen URLs. Combined with the field above.

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

Maximum number of publications to scrape in a single run. Helps control cost and run time.

## `maxConcurrency` (type: `integer`):

How many browser pages to run in parallel. 4-6 is a good balance of speed and safety; lower it to 2 if you start seeing SmartCaptcha.

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

Proxy settings. Yandex aggressively blocks datacenter IPs, so Residential proxy in country RU is strongly recommended and enabled by default. Turn it off only if you have another way around blocking.

## Actor input object example

```json
{
  "urls": [
    "https://dzen.ru/a/afRiHXixAFfUTmXO",
    "https://dzen.ru/video/watch/6a2d6ac6f3ceb430b1660fd1"
  ],
  "maxItems": 1000,
  "maxConcurrency": 4,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "RU"
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `details` (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 = {
    "urls": [
        "https://dzen.ru/a/afRiHXixAFfUTmXO",
        "https://dzen.ru/video/watch/6a2d6ac6f3ceb430b1660fd1"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "RU"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("sashaebashu/yandex-zen-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 = {
    "urls": [
        "https://dzen.ru/a/afRiHXixAFfUTmXO",
        "https://dzen.ru/video/watch/6a2d6ac6f3ceb430b1660fd1",
    ],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "RU",
    },
}

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

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

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

```

## CLI example

```bash
echo '{
  "urls": [
    "https://dzen.ru/a/afRiHXixAFfUTmXO",
    "https://dzen.ru/video/watch/6a2d6ac6f3ceb430b1660fd1"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "RU"
  }
}' |
apify call sashaebashu/yandex-zen-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=sashaebashu/yandex-zen-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Yandex Zen Scraper",
        "description": "Yandex Zen (Dzen) scraper : \nextract public stats from articles and videos in bulk: views, likes, comments, author info, subscribers. Paste a list of URLs.",
        "version": "1.0",
        "x-build-id": "MSbVHV8Ay2Wn9XQzy"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/sashaebashu~yandex-zen-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-sashaebashu-yandex-zen-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/sashaebashu~yandex-zen-scraper/runs": {
            "post": {
                "operationId": "runs-sync-sashaebashu-yandex-zen-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/sashaebashu~yandex-zen-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-sashaebashu-yandex-zen-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": {
                    "urls": {
                        "title": "Yandex Zen URLs (bulk paste)",
                        "type": "array",
                        "description": "Paste one URL per line. Supports articles (https://dzen.ru/a/<id>), videos (https://dzen.ru/video/watch/<id>) and shorts (https://dzen.ru/shorts/<id>). You can also paste many links separated by spaces, commas or new lines — they will be split automatically. Query strings and anchors are ignored.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "startUrls": {
                        "title": "Yandex Zen URLs (list / file / Google Sheet)",
                        "type": "array",
                        "description": "Alternative bulk input: paste a list, upload a file, or link a Google Sheet of Dzen URLs. Combined with the field above.",
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    },
                    "maxItems": {
                        "title": "Max Items",
                        "minimum": 1,
                        "maximum": 5000,
                        "type": "integer",
                        "description": "Maximum number of publications to scrape in a single run. Helps control cost and run time.",
                        "default": 1000
                    },
                    "maxConcurrency": {
                        "title": "Max Concurrency",
                        "minimum": 1,
                        "maximum": 10,
                        "type": "integer",
                        "description": "How many browser pages to run in parallel. 4-6 is a good balance of speed and safety; lower it to 2 if you start seeing SmartCaptcha.",
                        "default": 4
                    },
                    "proxyConfiguration": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Proxy settings. Yandex aggressively blocks datacenter IPs, so Residential proxy in country RU is strongly recommended and enabled by default. Turn it off only if you have another way around blocking.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ],
                            "apifyProxyCountry": "RU"
                        }
                    }
                }
            },
            "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
                                    }
                                }
                            },
                            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
