# Dzen Scraper (`parsebird/dzen-scraper`) Actor

Scrape Dzen.ru (Yandex Zen) articles, videos, shorts, posts, channels and comments: title, full text, views, likes, comment count, subscribers and dates. Channels, search, feed. Export JSON, CSV, Excel.

- **URL**: https://apify.com/parsebird/dzen-scraper.md
- **Developed by:** [ParseBird](https://apify.com/parsebird) (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.69 / 1,000 records

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

**Dzen Scraper** extracts articles, posts, videos, shorts, channels and comments from [Dzen.ru](https://dzen.ru) (formerly Yandex.Zen / Яндекс Дзен), Russia's largest blogging and video platform: title, full article text, images, publication date, views, likes, comment count, channel name and subscriber count. Scrape channels, single publications, keyword search and the discovery feed.

<table><tr>
<td style="border-left:4px solid #1C1917;padding:12px 16px;font-weight:600">
Paste any Dzen channel, article, post, video or shorts link, or search by keyword, and get every publication as a clean row with views, likes, comment count, subscriber count and ISO dates. Turn on full article text and comments when you need them.
</td>
</tr></table>

##### Copy to your AI assistant

Copy this block into ChatGPT, Claude, Cursor, or any LLM to start using this actor.

```
Apify Actor: parsebird/dzen-scraper. Scrapes Dzen.ru (Yandex Zen) articles, posts, videos, shorts, channels and comments. Call via ApifyClient: client.actor("parsebird/dzen-scraper").call(run_input={"mode": "url", "urls": ["https://dzen.ru/tass"], "maxItems": 50}). Inputs: mode ("url" | "search" | "feed", default "url"), urls (array of strings: channels like dzen.ru/tass or dzen.ru/id/<24-hex id>, optional ?tab=articles|videos|shorts; articles dzen.ru/a/<id>; posts dzen.ru/b/<id>; videos dzen.ru/video/watch/<id>; shorts dzen.ru/shorts/<id>; search pages dzen.ru/search?query=...&type=videos|channels; dzen.ru/video; dzen.ru home page; zen.yandex.ru and m.dzen.ru links are accepted), startUrls (alias of urls, strings or {url} objects), searchQueries (array of strings, search mode), searchType ("all" | "articles" | "videos" | "channels", default "all"), maxItems (integer, default 20, 0 = no limit), maxPages (integer, default 0 = no limit, per channel/search/feed), channelContent ("articles" | "videos" | "shorts", default "articles"), channelSort ("newest" | "popular" | "oldest", default "newest"), fetchArticleText (boolean, default false), includeComments (boolean, default false), maxCommentsPerPost (integer, default 20), commentsSort ("top" | "newest" | "oldest", default "top"), maxConcurrency (1-10, default 4), proxy (Apify proxy object, optional). Output: default dataset has one row per publication with id ("article:<id>", "brief:<id>", "video:<id>", "short:<id>"), dzenType, title, url, publicationDate, modifiedAt, textPreview, textContent, images, authorName, authorUrl, authorId, channelId, subscribers, authorVerified, views, likes, commentsCount, commentsEnabled, timeToReadSeconds, durationSeconds, tags, isPremium, detailFetched, source, searchQuery, inputUrl, comments (when includeComments), scrapedAt. Channel rows (dzenType "channel") go to the dataset named "channels"; comment rows go to the dataset named "comments". Pricing: pay per event, Free plan $1.99 per 1,000 records, $0.69 per 1,000 comments, $1.69 per 1,000 full pages read, plus a $0.005 run start fee. Full API spec: https://apify.com/parsebird/dzen-scraper/api. Get your token: https://console.apify.com/settings/integrations.
```

### What is Dzen Scraper?

**Dzen Scraper** turns Dzen pages into a spreadsheet-ready dataset. Copy a link from [dzen.ru](https://dzen.ru), paste it into **Dzen links** and click **Start**. To try it, keep the prefilled **TASS** channel: the run saves 20 records in a few seconds.

Dzen has no public API for its content, so this scraper works as a **Dzen API alternative** (Yandex Zen API alternative). It needs no Dzen or Yandex account and no proxy setup. Download your data as **JSON, CSV or Excel**, or read it through the [Apify API](https://docs.apify.com/api/v2).

### What can Dzen Scraper do?

- 📰 **Scrape Dzen channels**: articles and posts, long videos or shorts, sorted by newest, most popular or oldest.
- 🔗 **Scrape single publications**: paste article (`/a/`), post (`/b/`), video (`/video/watch/`) or shorts links and get the full record.
- 🔎 **Search Dzen by keyword**: everything, only articles and posts, only videos and shorts, or only channels.
- 🌐 **Walk the discovery feed**: the dzen.ru home page feed and the dzen.ru/video feed.
- 📝 **Get full article text**: the article body as plain text, every image, views and likes.
- 💬 **Collect comments**: top, newest or oldest comments with author, date, likes, dislikes and reply count.
- 🔁 **Old links keep working**: zen.yandex.ru, m.dzen.ru, `/media/<channel>` and `/id/<channel id>` links are read as their dzen.ru pages.
- 🧹 **No duplicates**: a publication found through two inputs is saved once.

Because it runs on Apify, you also get:

- [Scheduling](https://docs.apify.com/platform/schedules) to collect a channel's new publications every day
- [API access](https://docs.apify.com/api/v2) with [Python](https://docs.apify.com/api/client/python) and [JavaScript](https://docs.apify.com/api/client/js) clients
- [Integrations](https://docs.apify.com/platform/integrations) with Make, Zapier, Google Sheets, Slack and webhooks
- Exports in JSON, CSV, Excel, XML and HTML

### What data can you extract from Dzen?

| Field | Description |
|-------|-------------|
| `id`, `dzenType` | Unique ID such as `article:6af45caab4e63f4751c53ad6`, and the type: `article`, `brief` (post), `video` or `short` |
| `title`, `url` | Headline and canonical dzen.ru link. Posts use their first line as the title. |
| `publicationDate`, `modifiedAt` | Published and last edited, ISO 8601 in UTC |
| `textPreview` | The snippet Dzen shows in listings |
| `textContent` | Full article or post text, or the video description |
| `images` | Cover image, plus every image in the article when the full page is read |
| `authorName`, `authorUrl`, `authorId`, `channelId` | Channel name, link, handle and 24-character Dzen channel ID |
| `subscribers`, `authorVerified` | Channel subscriber count and verified badge |
| `views`, `likes`, `commentsCount` | Engagement counts, when Dzen shows them |
| `timeToReadSeconds`, `durationSeconds` | Reading time of an article, length of a video |
| `tags`, `isPremium` | Tags and whether the publication is for paid subscribers |
| `comments` | Comments of the publication (with **Include comments** on) |
| `source`, `searchQuery`, `inputUrl` | Where the record came from: channel, search, feed or a pasted link |

Channel records (title, link, handle, channel ID, description, subscribers, verified, logo, social links) go to a separate dataset named **channels**. Comment rows (text, author, date, likes, dislikes, replies, pinned, written by the channel) go to a dataset named **comments**. Find both in the run's **Storage** tab.

### How to scrape Dzen step by step

1. Open [Dzen Scraper](https://console.apify.com/actors/parsebird~dzen-scraper/input) in Apify Console. A free Apify account is enough to start.
2. Pick a **Mode**: **Links**, **Keyword search** or **Discovery feed**.
3. For links, copy channel, article, video or search URLs from [dzen.ru](https://dzen.ru) and paste them into **Dzen links**. For search, type your keywords into **Search queries**.
4. Set **Maximum records**. For channels, choose **Channel content** and **Channel sort order**.
5. Turn on **Read full article text** or **Include comments** if you need them.
6. Click **Start**, then download the results as JSON, CSV or Excel from the **Output** tab, or read them with the API.

### Input parameters

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `mode` | string | `url` | `url` (links), `search` (keywords) or `feed` (discovery feed) |
| `urls` | array | — | Dzen links: channels, articles, posts, videos, shorts, search pages, dzen.ru/video, dzen.ru |
| `startUrls` | array | — | Same as `urls`; strings or `{ "url": ... }` objects. Both lists are merged. |
| `searchQueries` | array | — | Keywords for search mode |
| `searchType` | string | `all` | `all`, `articles`, `videos` or `channels`. A search link's `&type=` overrides it. |
| `maxItems` | integer | 20 | Maximum records in total. Comments don't count. `0` = no limit. |
| `maxPages` | integer | 0 | Pages per channel, search query or feed. `0` = no limit. |
| `channelContent` | string | `articles` | `articles`, `videos` or `shorts`. A channel link's `?tab=` overrides it. |
| `channelSort` | string | `newest` | `newest`, `popular` or `oldest` |
| `fetchArticleText` | boolean | false | Open every article and post from channels, search and the feed for full text, images, views and likes |
| `includeComments` | boolean | false | Collect comments of each article, post and video |
| `maxCommentsPerPost` | integer | 20 | Top-level comments per publication |
| `commentsSort` | string | `top` | `top`, `newest` or `oldest` |
| `maxConcurrency` | integer | 4 | Requests at the same time (1-10) |
| `proxy` | object | no proxy | Optional Apify Proxy or your own proxies |

Example input:

```json
{
    "mode": "url",
    "urls": [
        "https://dzen.ru/tass",
        "https://dzen.ru/nashakasha?tab=videos",
        "https://dzen.ru/a/arjYU4pA7HGwblbw"
    ],
    "channelSort": "popular",
    "maxItems": 100,
    "fetchArticleText": true,
    "includeComments": true,
    "maxCommentsPerPost": 20
}
```

### Output example

```json
[
    {
        "id": "article:6ab8d8538a40ec71b06e56f0",
        "dzenType": "article",
        "title": "Российский авиапром выходит на серийный размах: что стоит за запуском SJ-100, МС-21, Ил-114 и Ту-214.",
        "url": "https://dzen.ru/a/arjYU4pA7HGwblbw",
        "publicationDate": "2026-09-27T08:49:23Z",
        "modifiedAt": "2026-10-04T11:44:11Z",
        "textPreview": "Сколько лет мы слышали это заклинание «импортозамещение»? Слово затерлось до дыр…",
        "textContent": "Сколько лет мы слышали это заклинание «импортозамещение»? Слово затерлось до дыр, как кнопка лифта в девятиэтажке. …",
        "images": ["https://avatars.dzeninfra.ru/get-zen_doc/271828/pub_6ab8d8538a40ec71b06e56f0_6ab8d878a95eb9133b47084e/scale_1200"],
        "authorName": "Дельные советы",
        "authorUrl": "https://dzen.ru/id/5ed3dcd42dfd2e3c7dcae73b",
        "authorId": "5ed3dcd42dfd2e3c7dcae73b",
        "channelId": "5ed3dcd42dfd2e3c7dcae73b",
        "subscribers": 184401,
        "authorVerified": true,
        "views": 27406,
        "likes": 849,
        "commentsCount": 281,
        "commentsEnabled": true,
        "timeToReadSeconds": 352,
        "durationSeconds": null,
        "tags": null,
        "isPremium": false,
        "detailFetched": true,
        "source": "url",
        "searchQuery": null,
        "inputUrl": "https://dzen.ru/a/arjYU4pA7HGwblbw",
        "comments": [
            {
                "commentId": "3500402711",
                "commentText": "Время покажет, но лучше что то делать, чем все время причитать и жаловаться…",
                "commentAuthor": "Реальный таймшер",
                "commentDate": "2026-09-27T10:58:31Z",
                "commentLikes": 226,
                "commentReplies": 25,
                "isPinned": false,
                "byChannelAuthor": false,
                "postId": "article:6ab8d8538a40ec71b06e56f0"
            }
        ],
        "scrapedAt": "2026-11-11T12:21:09Z"
    },
    {
        "id": "video:6130bc56baa2697c4c02a32b",
        "dzenType": "video",
        "title": "Готовлю жареные грибы из баклажан, получается вкуснее настоящих грибов. И за грибами ходить не надо, и бюджетно",
        "url": "https://dzen.ru/video/watch/6130bc56baa2697c4c02a32b",
        "publicationDate": "2021-09-02T12:21:14Z",
        "textContent": "Состав:\n✔️баклажаны - 600г\n✔️лук-1шт\n✔️яйца-2шт …",
        "authorName": "Наша Каша",
        "authorUrl": "https://dzen.ru/nashakasha",
        "authorId": "nashakasha",
        "subscribers": 7719,
        "views": 453809,
        "likes": 2884,
        "commentsCount": 113,
        "durationSeconds": 253,
        "tags": ["баклажаны как грибы", "баклажаны", "баклажаны рецепт"],
        "detailFetched": true,
        "source": "url"
    }
]
```

The second record is shortened. You can download the dataset in JSON, CSV, Excel, XML or HTML from the run's **Output** tab.

### How to use the Dzen API in Python and JavaScript

Run the scraper from your own code with the Apify API clients. Get your API token in [Apify Console](https://console.apify.com/settings/integrations).

**Python** ([apify-client](https://docs.apify.com/api/client/python)):

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")

run = client.actor("parsebird/dzen-scraper").call(run_input={
    "mode": "url",
    "urls": ["https://dzen.ru/tass"],
    "channelSort": "popular",
    "fetchArticleText": True,
    "maxItems": 100,
})

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["title"], item["views"], item["likes"])
```

**JavaScript** ([apify-client](https://docs.apify.com/api/client/js)):

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

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });

const run = await client.actor('parsebird/dzen-scraper').call({
    mode: 'search',
    searchQueries: ['рецепты выпечки'],
    searchType: 'videos',
    includeComments: true,
    maxCommentsPerPost: 10,
    maxItems: 200,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.length, items[0]);
```

### Use cases

- **Media monitoring**: follow what Russian news outlets and bloggers publish about a brand, product or topic.
- **Content research**: find which articles and videos in a niche get the most views and likes.
- **Competitor analysis**: export a channel's publications, sorted by popularity, with engagement counts.
- **Audience feedback**: collect comments under publications for sentiment analysis.
- **Natural language processing**: build Russian text datasets from full article text.
- **Influencer discovery**: search channels by keyword and compare subscriber counts.

### How does Dzen Scraper work?

1. Reads each link and works out what it is: channel, article, post, video, shorts, search or feed.
2. For channels, search and the feed, reads Dzen's listing pages one after another (about 20 publications per page) until your limits or the last page.
3. For pasted links, and for listings with **Read full article text** on, opens the publication page for the full record.
4. With **Include comments** on, reads the comments page by page up to your limit.
5. Saves every record once, and retries through Apify Proxy by itself if Dzen refuses the connection.

In our tests, a channel with 120 videos took about 9 seconds and a 50-video search about 8 seconds.

### How much does it cost to scrape Dzen?

Dzen Scraper uses pay-per-event pricing. Compute and proxy costs are included in the event price.

| Event | Free | Bronze | Silver | Gold |
|-------|------|--------|--------|------|
| `apify-actor-start`, per run | **$0.005** | **$0.005** | **$0.005** | **$0.005** |
| `record-scraped`, per 1,000 records (articles, posts, videos, shorts, channels) | **$1.99** | **$1.89** | **$1.79** | **$1.69** |
| `comment-scraped`, per 1,000 comments (only with **Include comments** on) | **$0.69** | **$0.59** | **$0.49** | **$0.39** |
| `full-page-read`, per 1,000 full pages (pasted article and video links, and listing articles with **Read full article text** on) | **$1.69** | **$1.49** | **$1.29** | **$1.09** |

For example, on the Free plan:

- 1,000 channel publications cost $1.99.
- 1,000 articles with full text cost $1.99 + $1.69 = $3.68.
- Adding 20 comments to each of 100 channel videos costs 100 records ($0.199) + 2,000 comments ($1.38).

A start event fires once per run for each GB of run memory, and the default memory stays within one. To cap your spending, set a maximum cost per run in the run options. The run stops at that limit and keeps what it saved.

### Is it legal to scrape Dzen?

Dzen Scraper only collects what Dzen shows publicly, without logging in. Web scraping of public data is generally legal, but what you may do with the data depends on your purpose and your country. Comments and channel names can be personal data under laws such as the GDPR or Russia's Federal Law No. 152-FZ, and articles and videos belong to their authors. Check Dzen's terms too, and ask a lawyer if you are unsure. You can read more in [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/) This section is not legal advice.

### Other scrapers you may like

- [Yandex Maps Scraper](https://apify.com/parsebird/yandex-maps-scraper): businesses, phones and emails from Yandex Maps
- [Yandex Maps Reviews Scraper](https://apify.com/parsebird/yandex-maps-reviews-scraper): reviews from Yandex Maps places
- [Yandex Market Product Scraper](https://apify.com/parsebird/yandex-market-scraper): products and prices from Yandex Market
- [hh.ru Jobs Scraper](https://apify.com/parsebird/hh-ru-jobs-scraper): job listings from hh.ru
- [Cian.ru Property Scraper](https://apify.com/parsebird/cian-ru-property-scraper): Russian real estate listings
- [Substack Scraper](https://apify.com/parsebird/substack-scraper): Substack newsletters and posts
- [Toutiao Scraper](https://apify.com/parsebird/toutiao-scraper): articles and videos from Toutiao
- [YouTube Search Scraper](https://apify.com/parsebird/youtube-search-scraper): YouTube videos by keyword

### FAQ

**Do I need a Dzen or Yandex account, or a proxy?**
No. The scraper reads public data without logging in and connects directly. If Dzen refuses the connection, it switches to Apify Proxy by itself. You can also set your own proxy under **Advanced**.

**What is the difference between an article, a post and a brief?**
Dzen has long articles (`dzen.ru/a/...`) and short posts (`dzen.ru/b/...`). Dzen calls posts "briefs", so their records have `dzenType: "brief"`. Posts have no headline, so the scraper uses the first line of the text as the title.

**Why are views or likes empty for some records?**
Dzen doesn't show every count in listings. Article listings often have no views; turn on **Read full article text** to read them from the article page. Pasted article and video links always include views, likes and comment counts.

**Where are the channel records and comments?**
Channel records go to the **channels** dataset and comment rows to the **comments** dataset, in the run's **Storage** tab. Comments are also added to each publication record. A search with **Search result type** set to **Channels** therefore fills only the channels dataset.

**Why is `commentsCount` higher than the number of comments I got?**
`commentsCount` includes replies. The scraper collects top-level comments, and gives each one's reply count in `commentReplies`.

**Can I scrape dzen.ru/news?**
No. Dzen's news section is not supported, and such links are skipped with a warning.

**Can I get only new publications every day?**
Set **Channel sort order** to **Newest first** and a small **Maximum records**, then run it on a [schedule](https://docs.apify.com/platform/schedules). The scraper doesn't remember earlier runs, so remove duplicates by `id` in your own pipeline.

**Can I use Dzen Scraper through the API or with integrations?**
Yes. See the [API tab](https://apify.com/parsebird/dzen-scraper/api) for endpoints and code, and connect it to Make, Zapier, Google Sheets or webhooks with [integrations](https://docs.apify.com/platform/integrations).

**Something doesn't work. What should I do?**
Open an issue in the [Issues tab](https://apify.com/parsebird/dzen-scraper/issues) with your input and run link. We read every report.

# Changelog

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

# Actor input Schema

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

Choose what to scrape: Dzen links you paste, keyword search, or the discovery feed (dzen.ru home page).

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

Links mode. Add channels (dzen.ru/tass, dzen.ru/id/<id>, ?tab=videos or ?tab=shorts), articles (dzen.ru/a/...), posts (dzen.ru/b/...), videos (dzen.ru/video/watch/...), shorts, search pages (dzen.ru/search?query=...), dzen.ru/video or the dzen.ru home page. zen.yandex.ru and m.dzen.ru links work too.

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

Same as Dzen links. Both lists are merged, so inputs written for other Dzen scrapers keep working.

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

Search mode. Enter keywords or phrases, one per line, e.g. 'грибы'.

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

What the search returns. A search link's own \&type= overrides this.

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

Stop after this many records (articles, posts, videos, shorts and channels). Comments don't count. Set 0 for no limit.

## `maxPages` (type: `integer`):

Pages to read for each channel, search query or feed (about 20 records per page). 0 means no limit.

## `channelContent` (type: `string`):

Which tab to scrape for channel links. A link's own ?tab= overrides this.

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

Order of a channel's publications.

## `fetchArticleText` (type: `boolean`):

Turn on to open every article and post found in channels, search or the feed, and get its full text, all images, views and likes. Charged as a full page read. Pasted article and video links are always read in full.

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

Turn on to also collect comments of each article, post and video. They are added to each record and saved one per row in the 'comments' dataset.

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

Top-level comments to collect for each publication.

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

Order of the comments, as on Dzen.

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

Pages and comment requests read at the same time (1-10).

## `proxy` (type: `object`):

Optional. Without a proxy the Actor connects directly and switches to Apify Proxy by itself if Dzen refuses the connection.

## Actor input object example

```json
{
  "mode": "url",
  "urls": [
    "https://dzen.ru/tass"
  ],
  "searchType": "all",
  "maxItems": 20,
  "maxPages": 0,
  "channelContent": "articles",
  "channelSort": "newest",
  "fetchArticleText": false,
  "includeComments": false,
  "maxCommentsPerPost": 20,
  "commentsSort": "top",
  "maxConcurrency": 4,
  "proxy": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `dataset` (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 = {
    "mode": "url",
    "urls": [
        "https://dzen.ru/tass"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("parsebird/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 = {
    "mode": "url",
    "urls": ["https://dzen.ru/tass"],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("parsebird/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 '{
  "mode": "url",
  "urls": [
    "https://dzen.ru/tass"
  ],
  "maxItems": 20
}' |
apify call parsebird/dzen-scraper --silent --output-dataset

```

## MCP server setup

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