{
  "openapi": "3.0.1",
  "info": {
    "title": "Dzen.ru Scraper",
    "description": "Get Dzen articles, posts, videos, shorts, and channels from links, search terms, channel names, or the discovery feed. Each row has text, stats, and author data, with optional comments. Turn on monitoring to see only new and changed content.",
    "version": "0.0",
    "x-build-id": "nmqtth49YcCkQk12q"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/maximedupre~dzen-ru/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-maximedupre-dzen-ru",
        "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/maximedupre~dzen-ru/runs": {
      "post": {
        "operationId": "runs-sync-maximedupre-dzen-ru",
        "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/maximedupre~dzen-ru/run-sync": {
      "post": {
        "operationId": "run-sync-maximedupre-dzen-ru",
        "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",
        "required": [
          "resultType"
        ],
        "properties": {
          "maxItems": {
            "title": "Maximum results",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many publications or channels. Leave empty or enter 0 to get all available results."
          },
          "resultType": {
            "title": "Result type",
            "enum": [
              "all",
              "publications",
              "channels"
            ],
            "type": "string",
            "description": "Choose publications, channels, or both. Both is available for search terms and search links."
          },
          "findBy": {
            "title": "Find publications by",
            "enum": [
              "links",
              "channelNames",
              "search",
              "feed"
            ],
            "type": "string",
            "description": "For Publications, choose links, channel names, search terms, or the discovery feed."
          },
          "channelNames": {
            "title": "Channel names: Names",
            "type": "array",
            "description": "Enter Dzen channel handles. A handle is the part after dzen.ru/ in the channel link, such as duma. Display names do not work.",
            "items": {
              "type": "string"
            }
          },
          "channelTypes": {
            "title": "Channel publication types",
            "type": "array",
            "description": "Choose the publication types to get from channel links or names. Choose All types or leave this empty to get all types. Do not combine All types with other choices.",
            "items": {
              "type": "string",
              "enum": [
                "all",
                "article",
                "post",
                "video",
                "short"
              ],
              "enumTitles": [
                "All types",
                "Articles",
                "Posts",
                "Videos",
                "Shorts"
              ]
            }
          },
          "channelOrder": {
            "title": "Channel publication order",
            "enum": [
              "newest",
              "oldest",
              "popular"
            ],
            "type": "string",
            "description": "Choose the order for publications from channel links or names.",
            "default": "newest"
          },
          "maxPerChannelType": {
            "title": "Maximum publications per channel and type",
            "minimum": 0,
            "type": "integer",
            "description": "For channel links and channel names, stop after this many publications for each channel and each chosen type. Leave empty or enter 0 to get all available publications. The maximum results limit also applies."
          },
          "urls": {
            "title": "Dzen links",
            "type": "array",
            "description": "For Publications found by links, enter full Dzen article, post, video, short, channel, search, video section, or news section URLs. For All results or Channels, enter search URLs.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "For All results, Channels, or Publications found by search terms, enter keywords or phrases to search on Dzen. Each entry is one search.",
            "items": {
              "type": "string"
            }
          },
          "searchType": {
            "title": "Search publication types",
            "enum": [
              "all",
              "articles",
              "videos"
            ],
            "type": "string",
            "description": "For search terms and search links, choose which publications to get. This does not change the channel results when Result type is All results.",
            "default": "all"
          },
          "includeComments": {
            "title": "Include comments",
            "type": "boolean",
            "description": "For Publications and All results, add top-level comments to each publication. Each comment has its own charge.",
            "default": false
          },
          "maxComments": {
            "title": "Maximum comments per publication",
            "minimum": 0,
            "type": "integer",
            "description": "When comments are on, get up to this many top-level comments for each publication, where available. Enter 0 to get all available comments.",
            "default": 20
          },
          "commentOrder": {
            "title": "Comment order",
            "enum": [
              "newest",
              "oldest",
              "popular"
            ],
            "type": "string",
            "description": "When comments are on, choose the order for top-level comments. Most popular returns up to 20 comments per publication.",
            "default": "newest"
          },
          "monitor": {
            "title": "Monitor changes",
            "type": "boolean",
            "description": "Compare the current content with validated earlier observations to find new and changed content.",
            "default": false
          },
          "includeAbsent": {
            "title": "Include absent content",
            "type": "boolean",
            "description": "When monitoring, include previously seen content that is absent after a complete scan.",
            "default": false
          },
          "includeUnchanged": {
            "title": "Include unchanged content",
            "type": "boolean",
            "description": "When monitoring, include content that has not changed.",
            "default": false
          },
          "excludeChangeFields": {
            "title": "Fields to exclude from change detection",
            "type": "array",
            "description": "When monitoring, enter the exact result field names to ignore when checking for changes.",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}