{
  "openapi": "3.0.1",
  "info": {
    "title": "Reddit Scraper — Posts, Comments & Search, $0.50 per 1K",
    "description": "Scrape Reddit posts and full comment threads: keyword search across Reddit or one subreddit, subreddit feeds, and comments from post URLs. Score, date and keyword filters keep junk off your bill. No Reddit account or API key. $0.50 per 1,000 results. Works in Claude, Cursor and ChatGPT via MCP.",
    "version": "0.0",
    "x-build-id": "8tbgjxPe1ydxAzmbH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memo23~reddit-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memo23-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/memo23~reddit-scraper/runs": {
      "post": {
        "operationId": "runs-sync-memo23-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/memo23~reddit-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-memo23-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": {
          "urls": {
            "title": "Reddit URLs",
            "type": "array",
            "description": "Any Reddit URLs to scrape: subreddits, posts, comment links, user profiles, search URLs, or /s/ share links. Also accepts bare r/subreddit or u/username.",
            "items": {
              "type": "string"
            }
          },
          "url": {
            "title": "Single Reddit URL (alias)",
            "type": "string",
            "description": "Optional compatibility alias for MCP/LLM tools that send a single URL string instead of the urls array."
          },
          "comment_url": {
            "title": "Single Reddit comment URL (snake_case alias)",
            "type": "string",
            "description": "Optional compatibility alias for MCP/LLM tools. Use with commentContextMode=true to flag the target comment in the post's comment tree."
          },
          "commentUrl": {
            "title": "Single Reddit comment URL (camelCase alias)",
            "type": "string",
            "description": "Optional compatibility alias for MCP/LLM tools. Use with commentContextMode=true to flag the target comment in the post's comment tree."
          },
          "searchQuery": {
            "title": "Reddit search query (single alias)",
            "type": "string",
            "description": "Single search query alias (can be used instead of or together with Keywords below)."
          },
          "searchSubreddit": {
            "title": "Search subreddit (optional alias)",
            "type": "string",
            "description": "Limit Reddit search to one subreddit (e.g. technology or r/apify). Leave empty to search all Reddit."
          },
          "maxPostsPerSource": {
            "title": "Max posts per source (optional)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of posts to scrape per subreddit, search query, or user profile (set 0 for unlimited up to Reddit's ~1,000 listing cap). When left empty, Max items at the bottom controls the total post budget."
          },
          "users": {
            "title": "Reddit Usernames or Profile URLs (optional)",
            "type": "array",
            "description": "Scrape user profiles, posts, and/or comments. Enter usernames (e.g. spez, u/spez) or profile links (https://www.reddit.com/user/spez/).",
            "items": {
              "type": "string"
            }
          },
          "includeUserProfile": {
            "title": "Include User Profile Info",
            "type": "boolean",
            "description": "When scraping user targets, include a user profile row (karma, postKarma, commentKarma, account creation date, verified status).",
            "default": false
          },
          "includeUserComments": {
            "title": "Include User Comment History",
            "type": "boolean",
            "description": "When scraping user targets, also fetch the user's recent comments.",
            "default": false
          },
          "includeSubredditInfo": {
            "title": "Include Subreddit Info",
            "type": "boolean",
            "description": "When scraping subreddit targets, include a subreddit metadata row (subscribers, active users, description, creation date).",
            "default": false
          },
          "includeCommunityRules": {
            "title": "Include Subreddit Rules",
            "type": "boolean",
            "description": "When Include Subreddit Info is enabled, also fetch the subreddit's community rules.",
            "default": false
          },
          "mode": {
            "title": "Run mode",
            "enum": [
              "searchGlobal",
              "searchSubreddit",
              "postComments",
              "subredditUsers"
            ],
            "type": "string",
            "description": "<strong>Search all of Reddit</strong> — site-wide keyword search. <strong>Search one subreddit</strong> — search inside a sub or browse its feed (leave subreddit keywords empty). <strong>Comments from post URLs</strong> — paste specific Reddit post URLs and get every comment (with full thread expansion). <strong>User scraper</strong> — collect authors from listing URLs.",
            "default": "searchGlobal"
          },
          "subreddits": {
            "title": "Subreddits (alias)",
            "type": "array",
            "description": "Subreddit names or URLs to list posts from, e.g. [\"news\"] or [\"https://www.reddit.com/r/news/\"]. Supplying this alone is enough — no mode needed. Accepted for compatibility with other Reddit actors.",
            "items": {
              "type": "string"
            }
          },
          "sort": {
            "title": "sort (alias)",
            "type": "string",
            "description": "Listing sort: hot, new, top, rising, controversial. Alias of the subreddit/global sort fields."
          },
          "timeFilter": {
            "title": "timeFilter (alias)",
            "type": "string",
            "description": "Time window for the listing: hour, day, week, month, year, all. Alias of the timeframe fields."
          },
          "postUrls": {
            "title": "Reddit post URLs",
            "type": "array",
            "description": "One or more Reddit post URLs, e.g. <code>https://www.reddit.com/r/webscraping/comments/1f64lbr/some_title/</code>. Comment count per post is capped by <b>Max comments per post</b>.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "searchQueries": {
            "title": "Keywords",
            "type": "array",
            "description": "Used when <code>mode</code> is <strong>Search all of Reddit</strong>. Each entry runs a separate site-wide search.",
            "items": {
              "type": "string"
            }
          },
          "searchSort": {
            "title": "Sort",
            "enum": [
              "relevance",
              "hot",
              "top",
              "new",
              "comments"
            ],
            "type": "string",
            "description": "Global search <code>sort</code>. Omitted when sort is <code>new</code>.",
            "default": "relevance"
          },
          "searchTimeframe": {
            "title": "Time range",
            "enum": [
              "all",
              "year",
              "month",
              "week",
              "day",
              "hour"
            ],
            "type": "string",
            "description": "Global search <code>t</code>. Ignored when sort is <code>new</code>.",
            "default": "all"
          },
          "subredditSearchUrl": {
            "title": "Subreddit URL or r/name",
            "type": "string",
            "description": "Used when <code>mode</code> is <strong>Search one subreddit</strong>. Example: <code>https://www.reddit.com/r/technology</code> or <code>r/technology</code>. No subreddit keywords → browse that sub’s feed (hot/new/top). With keywords → search inside the sub."
          },
          "subredditSearchQueries": {
            "title": "Keywords inside subreddit",
            "type": "array",
            "description": "In-subreddit search. <strong>Leave empty</strong> to use the subreddit feed instead of search.",
            "items": {
              "type": "string"
            }
          },
          "subredditSearchSort": {
            "title": "Sort",
            "enum": [
              "relevance",
              "hot",
              "top",
              "new",
              "comments"
            ],
            "type": "string",
            "description": "With keywords: in-subreddit search sort. Without keywords: <code>relevance</code>/<code>hot</code> → hot feed; <code>new</code>/<code>top</code> → that listing; <code>comments</code> → wildcard search.",
            "default": "relevance"
          },
          "subredditSearchTimeframe": {
            "title": "Time range",
            "enum": [
              "all",
              "year",
              "month",
              "week",
              "day",
              "hour"
            ],
            "type": "string",
            "description": "<code>t=</code> for subreddit search and for <code>top</code> on the feed. Ignored for <code>new</code> and hot listing.",
            "default": "all"
          },
          "startUrls": {
            "title": "Subreddit URLs",
            "type": "array",
            "description": "Used when <code>mode</code> is <strong>User scraper</strong>. One or more subreddit URLs (e.g. <code>https://www.reddit.com/r/webscraping</code>).",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "includeOver18": {
            "title": "Include NSFW",
            "type": "boolean",
            "description": "Include adult (18+) posts in <strong>Search all of Reddit</strong> and <strong>Search one subreddit</strong>. Default: off.",
            "default": false
          },
          "searchIncludeComments": {
            "title": "Include comment threads",
            "type": "boolean",
            "description": "Fetch each result post’s thread and save comment rows. Extra requests. <code>maxItems</code> still caps <strong>posts</strong> only.",
            "default": false
          },
          "searchMaxCommentsPerPost": {
            "title": "Max comments per post",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "When comment threads are on: the most comments to collect per post, including replies Reddit folds behind \"load more\". Example: 200 (the default).",
            "default": 200
          },
          "includeComments": {
            "title": "Include Comments (alias)",
            "type": "boolean",
            "description": "Alias for Include comment threads.",
            "default": false
          },
          "maxCommentsPerPost": {
            "title": "Max comments per post (alias)",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Alias for searchMaxCommentsPerPost."
          },
          "commentDepth": {
            "title": "Comment reply depth (levels)",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum reply nesting levels returned (1–10): 1 includes top-level comments only (depth 0); 10 includes depths 0 through 9.",
            "default": 10
          },
          "commentSort": {
            "title": "Comment Sort Order",
            "enum": [
              "confidence",
              "top",
              "new",
              "controversial",
              "old",
              "qa"
            ],
            "type": "string",
            "description": "Order for post comment threads: confidence (best), top, new, controversial, old, or qa.",
            "default": "confidence"
          },
          "embedCommentsInPost": {
            "title": "Embed comments array inside each post row",
            "type": "boolean",
            "description": "When enabled, comments are attached as a nested `comments: [...]` array on the post object instead of separate dataset rows.",
            "default": false
          },
          "searchComments": {
            "title": "Search for comments by keyword",
            "type": "boolean",
            "description": "Also search Reddit comments directly for your search keywords (finds brand mentions inside comments even when the post title doesn't match).",
            "default": false
          },
          "searchCommunities": {
            "title": "Search for communities (subreddits) by keyword",
            "type": "boolean",
            "description": "Also search Reddit communities matching your search keywords (returns subscriber counts, descriptions, and URLs).",
            "default": false
          },
          "searchUsers": {
            "title": "Search for users by keyword",
            "type": "boolean",
            "description": "Also search Reddit user profiles matching your search keywords.",
            "default": false
          },
          "autoDiscoverSubreddits": {
            "title": "Auto-discover relevant subreddits for search queries",
            "type": "boolean",
            "description": "Automatically discover the most relevant subreddits for each search keyword and search inside them as well for deeper coverage.",
            "default": false
          },
          "maxSubreddits": {
            "title": "Max subreddits to auto-discover",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "How many relevant subreddits to auto-discover per query when Auto-discover is enabled (default 5).",
            "default": 5
          },
          "monitorMode": {
            "title": "Monitor mode (only return new posts across scheduled runs)",
            "type": "boolean",
            "description": "When enabled, remembers seen post IDs in a named Key-Value Store across runs and only outputs posts not seen in previous runs.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Monitor store name",
            "type": "string",
            "description": "Named Key-Value Store used by Monitor mode to persist seen post IDs across runs (default: REDDIT_MONITOR_SEEN)."
          },
          "commentContextMode": {
            "title": "Targeted comment context mode",
            "type": "boolean",
            "description": "When enabled and a Reddit comment URL is provided, marks the target comment (isTargetComment=true, commentContextClassification='target') among the post's comment tree.",
            "default": false
          },
          "commentContextDepth": {
            "title": "Targeted comment context depth",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Reply depth used when targeted comment context mode is enabled.",
            "default": 3
          },
          "postedAfter": {
            "title": "Posted after (date, ISO timestamp, or relative age)",
            "type": "string",
            "description": "Only return posts created at or after this point: a date (\"2026-11-01\", UTC), an ISO timestamp (\"2026-11-01T12:00:00Z\"), or a relative age (\"24 hours\", \"7 days\", \"2 weeks\"). With sort \"new\", pagination stops automatically once older posts are reached."
          },
          "postedBefore": {
            "title": "Posted before (date, ISO timestamp, or relative age)",
            "type": "string",
            "description": "Only return posts created before this point, in the same formats as Posted after (\"2026-11-01\", ISO timestamp, or \"24 hours\")."
          },
          "includeNsfw": {
            "title": "Include NSFW posts (alias)",
            "type": "boolean",
            "description": "Alias for Include NSFW (includeOver18)."
          },
          "deduplicatePosts": {
            "title": "Deduplicate Posts",
            "type": "boolean",
            "description": "Remove duplicate posts across multiple sources, queries, or pages. Enabled by default.",
            "default": true
          },
          "filterKeywords": {
            "title": "Filter Keywords",
            "type": "array",
            "description": "Only keep posts matching these keywords (case-insensitive). Use Keyword Match Mode below to control how they match.",
            "items": {
              "type": "string"
            }
          },
          "filterKeywordMode": {
            "title": "Keyword Match Mode",
            "enum": [
              "any",
              "titleOnly",
              "all",
              "exactPhrase"
            ],
            "type": "string",
            "description": "How Filter Keywords are matched: 'any' = title or body contains any keyword; 'titleOnly' = title contains any keyword; 'all' = title or body contains ALL keywords; 'exactPhrase' = title contains exact phrase.",
            "default": "any"
          },
          "htmlFetchPostBody": {
            "title": "Fetch full post text when a search hit lacks it",
            "type": "boolean",
            "description": "Posts normally come with their full body text. When a search hit arrives without it, this opens the post to fill it in (slower: one extra step per post). Default: off. Applied automatically when <strong>Include comment threads</strong> is on.",
            "default": false
          },
          "searchPostDateFrom": {
            "title": "Keep posts from (UTC date)",
            "type": "string",
            "description": "<code>YYYY-MM-DD</code>. Posts older than this day are skipped (not saved). With <strong>Force new sort when filtering by date</strong>, search URLs use <code>sort=new</code> for better coverage."
          },
          "searchPostDateTo": {
            "title": "Keep posts until (UTC date)",
            "type": "string",
            "description": "Optional inclusive end date <code>YYYY-MM-DD</code>."
          },
          "searchCommentDateFrom": {
            "title": "Keep comments from (UTC date)",
            "type": "string",
            "description": "Optional <code>YYYY-MM-DD</code>. Comment rows outside the range are not saved."
          },
          "searchCommentDateTo": {
            "title": "Keep comments until (UTC date)",
            "type": "string",
            "description": "Optional inclusive end <code>YYYY-MM-DD</code>."
          },
          "searchForceNewSortWhenDateFiltered": {
            "title": "Force new sort when post dates filtered",
            "type": "boolean",
            "description": "If post from/until is set, use Reddit <code>sort=new</code> on search URLs.",
            "default": false
          },
          "searchStrictPhrase": {
            "title": "Strict phrase search (quoted q)",
            "type": "boolean",
            "description": "Wrap each keyword line in double quotes in the Reddit <code>q</code> parameter.",
            "default": false
          },
          "searchStrictTokenFilter": {
            "title": "Strict token filter (local)",
            "type": "boolean",
            "description": "After Reddit returns results, keep only posts whose title+body contain every whitespace-separated token from the keyword line (legacy key: <code>strictTokenFilter</code>). Subreddit feed mode has no keyword line — filter does not apply.",
            "default": false
          },
          "searchMaximizeCoverage": {
            "title": "Maximize coverage",
            "type": "boolean",
            "description": "Read more search result pages per keyword and expand more folded comment replies, for fuller results at the cost of a longer run (legacy key: <code>maximize_coverage</code>).",
            "default": false
          },
          "minScore": {
            "title": "Min score",
            "type": "integer",
            "description": "Keep posts with at least this score (upvotes minus downvotes)."
          },
          "maxScore": {
            "title": "Max score",
            "type": "integer",
            "description": "Keep posts with at most this score."
          },
          "minComments": {
            "title": "Min comments",
            "type": "integer",
            "description": "Keep posts with at least this many comments."
          },
          "maxComments": {
            "title": "Max comments",
            "type": "integer",
            "description": "Keep posts with at most this many comments."
          },
          "minUpvoteRatio": {
            "title": "Min upvote ratio",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Keep posts whose upvote ratio (0–100) is at least this. 90 means 90% upvoted."
          },
          "minAwards": {
            "title": "Min awards",
            "type": "integer",
            "description": "Keep posts with at least this many awards."
          },
          "postType": {
            "title": "Post type",
            "enum": [
              "",
              "text",
              "link",
              "image",
              "video",
              "gallery"
            ],
            "type": "string",
            "description": "Only posts of this kind, by Reddit's own flags.",
            "default": ""
          },
          "titleContains": {
            "title": "Title contains",
            "type": "array",
            "description": "Keep posts whose title contains ANY of these words or phrases (case-insensitive).",
            "items": {
              "type": "string"
            }
          },
          "contentContains": {
            "title": "Body contains",
            "type": "array",
            "description": "Keep posts whose body text contains ANY of these.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop posts whose title or body contains ANY of these.",
            "items": {
              "type": "string"
            }
          },
          "flairContains": {
            "title": "Flair contains",
            "type": "array",
            "description": "Keep posts whose link flair contains ANY of these.",
            "items": {
              "type": "string"
            }
          },
          "authorFlairContains": {
            "title": "Author flair contains",
            "type": "array",
            "description": "Keep posts whose author flair contains ANY of these.",
            "items": {
              "type": "string"
            }
          },
          "authors": {
            "title": "Only these authors",
            "type": "array",
            "description": "Keep posts by these usernames only.",
            "items": {
              "type": "string"
            }
          },
          "excludeAuthors": {
            "title": "Exclude authors",
            "type": "array",
            "description": "Drop posts by these usernames.",
            "items": {
              "type": "string"
            }
          },
          "domainContains": {
            "title": "Link domain contains",
            "type": "array",
            "description": "Keep link posts whose domain contains ANY of these (e.g. <code>youtube</code>, <code>github.com</code>).",
            "items": {
              "type": "string"
            }
          },
          "minContentLength": {
            "title": "Min body length",
            "type": "integer",
            "description": "Keep posts whose body is at least this many characters."
          },
          "maxContentLength": {
            "title": "Max body length",
            "type": "integer",
            "description": "Keep posts whose body is at most this many characters."
          },
          "onlyWithFlair": {
            "title": "Only posts with a flair",
            "type": "boolean",
            "description": "Drop posts that have no link flair.",
            "default": false
          },
          "onlyOriginalContent": {
            "title": "Only original content (OC)",
            "type": "boolean",
            "description": "Keep only posts the author marked as OC.",
            "default": false
          },
          "onlyDistinguished": {
            "title": "Only distinguished posts",
            "type": "boolean",
            "description": "Keep only posts by moderators or admins (distinguished).",
            "default": false
          },
          "excludeStickied": {
            "title": "Exclude stickied",
            "type": "boolean",
            "description": "Drop pinned / stickied posts.",
            "default": false
          },
          "excludeLocked": {
            "title": "Exclude locked",
            "type": "boolean",
            "description": "Drop posts with locked comments.",
            "default": false
          },
          "excludeArchived": {
            "title": "Exclude archived",
            "type": "boolean",
            "description": "Drop archived posts.",
            "default": false
          },
          "excludeSpoilers": {
            "title": "Exclude spoilers",
            "type": "boolean",
            "description": "Drop spoiler-tagged posts.",
            "default": false
          },
          "excludeRemoved": {
            "title": "Exclude removed / deleted",
            "type": "boolean",
            "description": "Drop posts whose body was removed or deleted.",
            "default": false
          },
          "excludeDeletedAuthor": {
            "title": "Exclude deleted authors",
            "type": "boolean",
            "description": "Drop posts whose author account is deleted.",
            "default": false
          },
          "excludeCrossposts": {
            "title": "Exclude crossposts",
            "type": "boolean",
            "description": "Drop posts that are crossposts of another post.",
            "default": false
          },
          "aiAnalysis": {
            "title": "Add AI analysis",
            "type": "boolean",
            "description": "Adds one row with dataType 'ai_analysis' per analysed post: sentimentLabel (positive, negative, neutral, mixed), intent (question, seeking_recommendation, complaint, praise, purchase_intent, discussion, showcase, news, other), aiFlags (hasPain, willingToPay, wantsRecommendation, mentionsCompetitor), painPoint (the problem in the author's words), productsMentioned and a one-sentence summary. Each row carries targetId and targetUrl to join it to its post. Paid Apify plans only; billed per analysed item, never for items that could not be analysed. Default: off.",
            "default": false
          },
          "aiIncludeComments": {
            "title": "Also analyse comments",
            "type": "boolean",
            "description": "When AI analysis is on, also analyse scraped comments, not only posts. Comments can outnumber posts many times over, so this raises the analysed-item count. Default: off.",
            "default": false
          },
          "aiMaxItems": {
            "title": "Max items to analyse",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Upper limit on posts (and comments, if included) sent to AI analysis in one run, up to 5000. Example: 200. Default: 500.",
            "default": 500
          },
          "customLabels": {
            "title": "Custom AI labels (JSON questions, up to 5)",
            "type": "object",
            "description": "Define up to 5 custom questions as {\"label_name\": \"plain-language question\"} (e.g. {\"is_b2b\": \"Is the author a B2B SaaS company?\"}) and AI analysis evaluates each one on every analyzed item."
          },
          "aiAttachToPost": {
            "title": "Also attach AI fields inline to posts (AI_ENRICHED_POSTS)",
            "type": "boolean",
            "description": "When enabled, also merges sentimentLabel, intent, aiFlags, painPoint, competitor, and customLabels directly onto the post objects for MCP perPost templates and writes AI_ENRICHED_POSTS to the Key-Value Store.",
            "default": false
          },
          "outputFormat": {
            "title": "AI / LLM Output Format",
            "enum": [
              "default",
              "jsonl-finetune",
              "rag-markdown"
            ],
            "type": "string",
            "description": "Controls AI/LLM dataset transformation. 'default' = standard post & comment JSON records. 'jsonl-finetune' = instruction/response pairs and chat messages for LLM supervised fine-tuning (SFT). 'rag-markdown' = self-contained Markdown chunks with flat metadata for Vector DB / RAG ingestion.",
            "default": "default"
          },
          "mcpConnector": {
            "title": "App connector",
            "type": "string",
            "description": "Pick an app you connected under Settings > MCP connectors in Apify (for example Slack or Discord). Your app credentials stay in Apify and are never passed to this Actor. At the end of the run one summary message is sent: post and comment counts, the top leads when AI analysis is on, and a link to all results. Default: none (no message)."
          },
          "mcpTarget": {
            "title": "Channel or chat",
            "type": "string",
            "description": "Where the summary goes, for example a Slack channel ID like C0123456789 or a Discord channel ID. Leave empty when the app's tool needs no channel. Default: empty."
          },
          "mcpMode": {
            "title": "Delivery mode (summary or perPost)",
            "enum": [
              "summary",
              "perPost"
            ],
            "type": "string",
            "description": "Choose whether to send a single end-of-run digest ('summary') or one message per scraped post ('perPost').",
            "default": "summary"
          },
          "mcpMessage": {
            "title": "Per-post message template (optional)",
            "type": "string",
            "description": "Template used in perPost mode. Supports {{field}} placeholders from any post or AI analysis field (e.g. {{title}}, {{subreddit}}, {{score}}, {{url}}, {{painPoint}}, {{sentimentLabel}})."
          },
          "mcpToolName": {
            "title": "Tool to use (advanced)",
            "type": "string",
            "description": "Name of the app's tool that sends the message, for example send_message. Leave empty to pick a message-sending tool automatically. Default: empty."
          },
          "mcpArguments": {
            "title": "Delivery arguments (advanced)",
            "type": "object",
            "description": "Exact arguments for the tool, for apps whose fields cannot be filled automatically. Put {{summary}} where the summary text goes, for example {\"channel\": \"C0123456789\", \"text\": \"{{summary}}\"}. Default: empty (filled automatically)."
          },
          "maxItems": {
            "title": "Max items",
            "type": "integer",
            "description": "Search modes: max <strong>posts</strong> total (split across keyword lines). User scraper: max unique authors.",
            "default": 100
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "type": "integer",
            "description": "For <strong>User scraper</strong>. Ignored for search modes.",
            "default": 10
          },
          "minConcurrency": {
            "title": "Min concurrency",
            "type": "integer",
            "description": "Minimum pages processed in parallel.",
            "default": 1
          },
          "maxRequestRetries": {
            "title": "Max request retries",
            "type": "integer",
            "description": "Retries per failed request before giving up.",
            "default": 3
          },
          "proxy": {
            "title": "Proxy configuration (optional override)",
            "type": "object",
            "description": "Optional. Residential proxies recommended. The default works out of the box, so leave it empty unless you want to use your own proxies."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}