{
  "openapi": "3.0.1",
  "info": {
    "title": "Dzen Scraper - Articles, Videos, Channels & Search (Yandex Zen)",
    "description": "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.",
    "version": "0.1",
    "x-build-id": "81OhjH72tZOnrocUA"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hexagone-data~dzen-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hexagone-data-dzen-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/hexagone-data~dzen-scraper/runs": {
      "post": {
        "operationId": "runs-sync-hexagone-data-dzen-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/hexagone-data~dzen-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-hexagone-data-dzen-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": {
          "startUrls": {
            "title": "Dzen addresses",
            "type": "array",
            "description": "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.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "channels": {
            "title": "Channels",
            "type": "array",
            "description": "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.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "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.",
            "items": {
              "type": "string"
            }
          },
          "searchType": {
            "title": "Search type",
            "enum": [
              "all",
              "articles",
              "videos"
            ],
            "type": "string",
            "description": "Applies to Search queries. A pasted search address keeps its own type.",
            "default": "all"
          },
          "contentTypes": {
            "title": "Content types (channels)",
            "type": "array",
            "description": "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).",
            "items": {
              "type": "string",
              "enum": [
                "articles",
                "videos",
                "shorts"
              ],
              "enumTitles": [
                "Articles and posts",
                "Videos",
                "Shorts"
              ]
            },
            "default": [
              "articles",
              "videos",
              "shorts"
            ]
          },
          "channelSort": {
            "title": "Channel sort",
            "enum": [
              "newest",
              "oldest",
              "popular"
            ],
            "type": "string",
            "description": "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.",
            "default": "newest"
          },
          "fetchDetails": {
            "title": "Full text and details",
            "type": "boolean",
            "description": "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).",
            "default": false
          },
          "includeComments": {
            "title": "Include comments",
            "type": "boolean",
            "description": "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.",
            "default": false
          },
          "maxCommentsPerPost": {
            "title": "Max comments per publication",
            "minimum": 0,
            "type": "integer",
            "description": "With Include comments: stop each publication's comments after this many (0 = all comments Dzen serves).",
            "default": 20
          },
          "commentsSort": {
            "title": "Comments sort",
            "enum": [
              "top",
              "newest",
              "oldest"
            ],
            "type": "string",
            "description": "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.",
            "default": "top"
          },
          "maxItemsPerInput": {
            "title": "Max publications per input",
            "minimum": 0,
            "type": "integer",
            "description": "Stop each input (search, channel tab) after this many new publications (0 = no limit). For a channel, each tab counts up to this number.",
            "default": 100
          },
          "maxItems": {
            "title": "Max publications in the run",
            "minimum": 0,
            "type": "integer",
            "description": "Stop the whole run after this many publications (0 = no limit).",
            "default": 1000
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "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.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}