{
  "openapi": "3.0.1",
  "info": {
    "title": "Reddit Scraper ($0.95/1K): Posts, Comments, Search",
    "description": "Scrape Reddit without login: subreddit posts (any sort and time), post comments with full threads, search for posts, comments and communities, user profiles. Score, upvote ratio, awards, flair, media. Monitor keywords and subreddits for new posts and comments with alerts, trend summary.",
    "version": "0.0",
    "x-build-id": "0gkWGTr4PjQchWJg8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tsutseisoftware~reddit-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tsutseisoftware-reddit-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/tsutseisoftware~reddit-scraper/runs": {
      "post": {
        "operationId": "runs-sync-tsutseisoftware-reddit-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/tsutseisoftware~reddit-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-tsutseisoftware-reddit-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": "Reddit URLs",
            "type": "array",
            "description": "Subreddits (with any order and time in the URL, e.g. /r/Python/top/?t=week), posts, comment links, users (/user/spez/, /user/spez/comments/) and searches (/search/?q=…, /r/Python/search/?q=…). The front page (https://www.reddit.com/) reads r/popular.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "searches": {
            "title": "Search terms",
            "type": "array",
            "description": "Search Reddit like its search box. Reddit's query syntax works (e.g. \"title:python\", \"author:spez\", \"flair:Discussion\", OR, -word, \"exact phrase\").",
            "items": {
              "type": "string"
            }
          },
          "subreddits": {
            "title": "Subreddits",
            "type": "array",
            "description": "Subreddit names (Python, r/Python): their posts in the chosen order, and their community row.",
            "items": {
              "type": "string"
            }
          },
          "usernames": {
            "title": "Usernames",
            "type": "array",
            "description": "Reddit users (spez, u/spez): their profile row, posts and comments.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 0,
            "type": "integer",
            "description": "The most rows to save in the run: posts, comments, communities and users together (0 = no limit).",
            "default": 50
          },
          "searchCommunityName": {
            "title": "Search in community",
            "type": "string",
            "description": "Search only in this subreddit (e.g. Python). Empty = all of Reddit."
          },
          "searchPosts": {
            "title": "Search for posts",
            "type": "boolean",
            "description": "The search terms find posts.",
            "default": true
          },
          "searchComments": {
            "title": "Search for comments",
            "type": "boolean",
            "description": "The search terms also find comments (with their post title and link).",
            "default": false
          },
          "searchCommunities": {
            "title": "Search for communities",
            "type": "boolean",
            "description": "The search terms also find subreddits (description, weekly visitors and contributions).",
            "default": false
          },
          "searchUsers": {
            "title": "Search for users",
            "type": "boolean",
            "description": "Not available on Reddit without an account; give \"Usernames\" instead. Kept so that existing inputs still run.",
            "default": false
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "relevance",
              "hot",
              "top",
              "new",
              "rising",
              "comments",
              "controversial",
              "best"
            ],
            "type": "string",
            "description": "Order of subreddits and searches (a URL with its own order keeps it). Relevance and most comments apply to searches, rising, controversial and best to subreddits.",
            "default": "new"
          },
          "time": {
            "title": "Time",
            "enum": [
              "all",
              "hour",
              "day",
              "week",
              "month",
              "year"
            ],
            "type": "string",
            "description": "Time range of \"Top\" and \"Controversial\" and of searches.",
            "default": "all"
          },
          "maxPostCount": {
            "title": "Max posts per source",
            "minimum": 0,
            "type": "integer",
            "description": "The most posts from each subreddit, search or user (0 = no limit). Reddit shows about 1,000 posts of a subreddit in one order and about 250 results of a search.",
            "default": 25
          },
          "maxComments": {
            "title": "Max comments per post",
            "minimum": 0,
            "type": "integer",
            "description": "The most comments of each post (0 = none). Replies are read in thread order, so a high number gives the whole discussion.",
            "default": 10
          },
          "maxCommunitiesCount": {
            "title": "Max communities per search",
            "minimum": 0,
            "type": "integer",
            "description": "With \"Search for communities\": the most subreddits of each search (0 = no limit).",
            "default": 10
          },
          "maxUserCount": {
            "title": "Max users",
            "minimum": 0,
            "type": "integer",
            "description": "The most users read from \"Usernames\" and user URLs (0 = no limit).",
            "default": 10
          },
          "skipComments": {
            "title": "Skip comments",
            "type": "boolean",
            "description": "Posts only, no comments (faster and cheaper).",
            "default": false
          },
          "skipUserPosts": {
            "title": "Skip user posts",
            "type": "boolean",
            "description": "For users: the profile row (and comments), without their posts.",
            "default": false
          },
          "skipCommunity": {
            "title": "Skip community rows",
            "type": "boolean",
            "description": "For subreddits: only the posts, without the row about the community.",
            "default": false
          },
          "maximizeCoverage": {
            "title": "Go past the 1,000-post limit",
            "type": "boolean",
            "description": "Reddit shows about 1,000 posts of a subreddit in one order. This reads the subreddit in several orders (new, hot, top of every period, controversial, rising) and keeps each post once; pages with only posts already saved are charged as extra pages.",
            "default": false
          },
          "fetchPostDetails": {
            "title": "Add post text to search results",
            "type": "boolean",
            "description": "Reddit's search shows titles only; this reads each found post for its text, link, media and comment count (one request per post).",
            "default": true
          },
          "commentSort": {
            "title": "Comment sort",
            "enum": [
              "confidence",
              "best",
              "top",
              "new",
              "old",
              "controversial",
              "qa"
            ],
            "type": "string",
            "description": "Order of the comments of a post.",
            "default": "confidence"
          },
          "maxCommentDepth": {
            "title": "Max comment depth",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Only comments up to this depth (1 = top-level comments only, 0 = all levels).",
            "default": 0
          },
          "postedAfter": {
            "title": "Posted after",
            "type": "string",
            "description": "Only posts from this date or time on: 2026-11-01, 2026-11-01T08:00:00Z or relative \"1 day\", \"24 hours\", \"2 weeks\". Sorted by new, the run stops at the first older post."
          },
          "postedBefore": {
            "title": "Posted before",
            "type": "string",
            "description": "Only posts older than this (same forms as \"Posted after\")."
          },
          "postDateLimit": {
            "title": "Post date limit (same as Posted after)",
            "type": "string",
            "description": "Kept so that existing inputs still run: the same as \"Posted after\"."
          },
          "commentDateLimit": {
            "title": "Comment date limit",
            "type": "string",
            "description": "Only comments from this date or time on (same forms as \"Posted after\")."
          },
          "includeNSFW": {
            "title": "Include NSFW posts",
            "type": "boolean",
            "description": "Posts marked NSFW (over 18) are saved too.",
            "default": true
          },
          "filterKeywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Only posts and comments with these words (title and text), see \"Keyword match\".",
            "items": {
              "type": "string"
            }
          },
          "filterKeywordMode": {
            "title": "Keyword match",
            "enum": [
              "any",
              "all",
              "title",
              "exact"
            ],
            "type": "string",
            "description": "How \"Keywords\" must match.",
            "default": "any"
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Leave out posts and comments with any of these words.",
            "items": {
              "type": "string"
            }
          },
          "minScore": {
            "title": "Min score",
            "type": "integer",
            "description": "Only posts and comments with at least this score (upvotes)."
          },
          "minComments": {
            "title": "Min comments",
            "minimum": 0,
            "type": "integer",
            "description": "Only posts with at least this many comments."
          },
          "flairs": {
            "title": "Flairs",
            "type": "array",
            "description": "Only posts with one of these flairs (e.g. Discussion).",
            "items": {
              "type": "string"
            }
          },
          "excludeAuthors": {
            "title": "Exclude authors",
            "type": "array",
            "description": "Leave out posts and comments of these users (e.g. AutoModerator).",
            "items": {
              "type": "string"
            }
          },
          "skipStickied": {
            "title": "Skip pinned posts",
            "type": "boolean",
            "description": "Leave out posts pinned by the moderators.",
            "default": false
          },
          "languages": {
            "title": "Languages",
            "type": "array",
            "description": "Only posts in these languages, as Reddit detects them (two-letter codes: en, de, es…).",
            "items": {
              "type": "string"
            }
          },
          "onlyNew": {
            "title": "Monitoring: only new posts and comments",
            "type": "boolean",
            "description": "Return only posts, comments, communities and users not returned by earlier runs with the same \"Monitoring key\". Subreddits are then read newest first and the run stops at known posts.",
            "default": false
          },
          "monitoringKey": {
            "title": "Monitoring key",
            "type": "string",
            "description": "Name of the remembered state; use one per watched topic (empty = default)."
          },
          "watchComments": {
            "title": "Monitoring: report new comments on known posts",
            "type": "boolean",
            "description": "Also read posts seen before whose comment count went up and return their new comments. Post URLs in \"Reddit URLs\" are always watched like this in monitoring (thread tracking).",
            "default": false
          },
          "resetMonitoring": {
            "title": "Monitoring: start again",
            "type": "boolean",
            "description": "Forget the state of earlier runs (everything is new again).",
            "default": false
          },
          "includeSentiment": {
            "title": "Add sentiment",
            "type": "boolean",
            "description": "A simple English word-list sentiment of each post and comment (score -1 to 1 and a label), also summed up in the trend summary.",
            "default": false
          },
          "telegramBotToken": {
            "title": "Telegram bot token",
            "type": "string",
            "description": "Token of your bot from @BotFather."
          },
          "telegramChatId": {
            "title": "Telegram chat ID",
            "type": "string",
            "description": "Chat to send to."
          },
          "slackWebhookUrl": {
            "title": "Slack webhook URL",
            "type": "string",
            "description": "Incoming webhook (https://hooks.slack.com/...)."
          },
          "discordWebhookUrl": {
            "title": "Discord webhook URL",
            "type": "string",
            "description": "Webhook of your Discord channel (https://discord.com/api/webhooks/...). In Discord: channel settings → Integrations → Webhooks → Copy Webhook URL. Stored encrypted."
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "Any HTTPS URL (Zapier, Make, n8n, your server): receives the rows as JSON."
          },
          "whatsappAccessToken": {
            "title": "WhatsApp access token",
            "type": "string",
            "description": "Access token of the WhatsApp Cloud API of your Meta business account, used with \"WhatsApp phone number ID\" and \"WhatsApp recipient number\" (step by step in the README, section \"WhatsApp notifications: setup\"). For scheduled runs use a permanent token of a system user: Business settings → System users → Generate token, with the permissions whatsapp_business_messaging and whatsapp_business_management; the token of WhatsApp → API Setup expires within hours. Stored encrypted."
          },
          "whatsappPhoneNumberId": {
            "title": "WhatsApp phone number ID",
            "type": "string",
            "description": "ID of your WhatsApp business number that sends the message (not the number itself), e.g. 106540352242922. In your Meta app: WhatsApp → API Setup → Phone number ID."
          },
          "whatsappTo": {
            "title": "WhatsApp recipient number",
            "type": "string",
            "description": "Phone number that gets the message, in international format with the country code (e.g. +420601234567); up to 5 numbers separated by commas or new lines, each gets its own message and the notification is charged once per run. A test number of Meta sends only to numbers you added and confirmed under API Setup → To. Stored encrypted."
          },
          "whatsappTemplateName": {
            "title": "WhatsApp template name",
            "type": "string",
            "description": "Name of your approved message template (WhatsApp Manager → Message templates, e.g. apify_results), recommended: WhatsApp delivers a template message at any time. Its body gets the run summary with the first results in {{1}} and the dataset link in {{2}} (a template with only {{1}} gets both in {{1}}). Empty: a plain text message, which WhatsApp delivers only when the recipient wrote to your business number in the last 24 hours, so a scheduled run usually needs a template. Meta charges your business account for template messages (step by step in the README, section \"WhatsApp notifications: setup\")."
          },
          "whatsappTemplateLanguage": {
            "title": "WhatsApp template language",
            "type": "string",
            "description": "Language code of the template exactly as WhatsApp Manager → Message templates shows it next to the template, e.g. en_US, en_GB, cs, sk, pl or de. Used only with \"WhatsApp template name\".",
            "default": "en_US"
          },
          "notificationLimit": {
            "title": "Max rows per notification",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many posts and comments the message lists.",
            "default": 10
          },
          "notifyOnlyChanges": {
            "title": "Notify only when something was found",
            "type": "boolean",
            "description": "No message after a run that saved nothing.",
            "default": true
          },
          "exportFormats": {
            "title": "Extra export formats",
            "type": "array",
            "description": "Off by default. Printable HTML report: the results as a clean, branded table with the main columns, made for printing, saving as PDF or sending to someone; for working with the data use Excel or CSV, which have every field. Markdown table: the same columns as text for AI tools, docs or GitHub. The Output tab links the files. Each file has the overview columns of every saved row and nothing is left out, so a run with tens of thousands of rows makes a file of tens of MB that can be slow to open; for big runs use the dataset or its Excel export. Excel (XLSX), CSV and JSON are always in the Output tab and under Export, at no extra cost.",
            "items": {
              "type": "string",
              "enum": [
                "html",
                "markdown"
              ],
              "enumTitles": [
                "Printable HTML report",
                "Markdown table"
              ]
            },
            "default": []
          },
          "proxy": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "No proxy needed: the actor reads Reddit directly. Kept so that existing inputs still run.",
            "default": {
              "useApifyProxy": false
            }
          },
          "debugMode": {
            "title": "Debug log",
            "type": "boolean",
            "description": "Kept so that existing inputs still run; it has no effect.",
            "default": false
          },
          "sendErrorReports": {
            "title": "Send error reports",
            "type": "boolean",
            "description": "When a run fails, send the developer a short error report: the error and your input with secrets left out (tokens, webhooks and e-mails are hidden). Your results are never sent. Reports are deleted after at most 120 hours. Turn off to send nothing.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}