{
  "openapi": "3.0.1",
  "info": {
    "title": "Reddit Scraper",
    "description": "Reddit Scraper SD - Reddit Scraper is a social media data tool that extracts Reddit posts, full comment threads, communities and user profiles from subreddit, post, user and search URLs or keywords: score, comments, flair, media URLs, dates and karma. Logged out, no API key.",
    "version": "1.0",
    "x-build-id": "NBUQgmnJGt5pfbZGs"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~reddit-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-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/neuro-scraper~reddit-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-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/neuro-scraper~reddit-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-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": "Start URLs",
            "type": "array",
            "description": "Reddit URLs: a subreddit (https://www.reddit.com/r/Python/, also /r/Python/top/?t=week), a post, a comment permalink, a user (https://www.reddit.com/user/spez/), a search page (https://www.reddit.com/search/?q=web+scraping&type=comments), r/popular or a multireddit (r/Python+learnpython). Short forms r/Python and u/spez work too.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "searches": {
            "title": "Search terms",
            "type": "array",
            "description": "Keywords to search on Reddit, one per line, e.g. \"web scraping\". Reddit's own operators work (\"exact phrase\", AND, OR, subreddit:name, author:name, flair:name). Which result types are collected is set by the 'Search for ...' switches below.",
            "items": {
              "type": "string"
            }
          },
          "searchCommunityName": {
            "title": "Search inside one community (optional)",
            "type": "string",
            "description": "Restrict the keyword search to one subreddit, e.g. \"Python\" or r/Python. Leave empty to search all of Reddit."
          },
          "searchPosts": {
            "title": "Search for posts",
            "type": "boolean",
            "description": "Collect posts matching the search terms.",
            "default": true
          },
          "searchComments": {
            "title": "Search for comments",
            "type": "boolean",
            "description": "Collect comments matching the search terms (Reddit's comment search). Limit per term: 'Max comments per search term'.",
            "default": false
          },
          "searchCommunities": {
            "title": "Search for communities",
            "type": "boolean",
            "description": "Collect subreddits matching the search terms (one community row each, with rules). Limit: 'Max communities'.",
            "default": false
          },
          "searchUsers": {
            "title": "Search for users",
            "type": "boolean",
            "description": "Collect user profiles matching the search terms (karma, account age, profile text). Limit: 'Max users'.",
            "default": false
          },
          "searchMedia": {
            "title": "Search for media",
            "type": "boolean",
            "description": "Collect image / video / gallery posts matching the search terms (Reddit's media search).",
            "default": false
          },
          "sort": {
            "title": "Sort search results",
            "enum": [
              "relevance",
              "hot",
              "top",
              "new",
              "comments"
            ],
            "type": "string",
            "description": "Reddit's search order for the search terms (and for search URLs that do not set one).",
            "default": "new"
          },
          "time": {
            "title": "Time range",
            "enum": [
              "all",
              "hour",
              "day",
              "week",
              "month",
              "year"
            ],
            "type": "string",
            "description": "Reddit's own time window for search results and for 'top' / 'controversial' subreddit listings.",
            "default": "all"
          },
          "subredditSort": {
            "title": "Subreddit listing order",
            "enum": [
              "hot",
              "new",
              "top",
              "rising",
              "controversial"
            ],
            "type": "string",
            "description": "Order of posts for subreddit URLs that do not name one in the URL (a URL like /r/Python/top/ keeps its own).",
            "default": "hot"
          },
          "maxItems": {
            "title": "Maximum items",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Total rows saved in the run (posts + comments + communities + users together).",
            "default": 50
          },
          "maxPostCount": {
            "title": "Max posts per source",
            "minimum": 0,
            "maximum": 50000,
            "type": "integer",
            "description": "Posts saved per subreddit, user page, search term or search URL. Pages follow Reddit's own cursor; Reddit ends a subreddit listing at about 1,000 posts and a search at 250 per sort order (turn on 'Maximize coverage' to go further).",
            "default": 10
          },
          "maxComments": {
            "title": "Max comments per post",
            "minimum": 0,
            "maximum": 20000,
            "type": "integer",
            "description": "Comments saved per post (whole threads, replies included; 'load more' branches are expanded). 0 = no comments.",
            "default": 10
          },
          "maxCommentsCount": {
            "title": "Max comments per search term",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Comments saved per search term when 'Search for comments' is on.",
            "default": 20
          },
          "maxCommunitiesCount": {
            "title": "Max communities",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Communities saved per search term when 'Search for communities' is on.",
            "default": 2
          },
          "maxUserCount": {
            "title": "Max users",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "User profiles saved per search term when 'Search for users' is on.",
            "default": 2
          },
          "skipComments": {
            "title": "Skip comments",
            "type": "boolean",
            "description": "Do not load the comments of posts (faster, posts only).",
            "default": false
          },
          "skipUserPosts": {
            "title": "Skip user posts",
            "type": "boolean",
            "description": "For user URLs save only the profile, not the user's posts and comments.",
            "default": false
          },
          "skipCommunity": {
            "title": "Skip community",
            "type": "boolean",
            "description": "For subreddit URLs do not save the community row (its posts are still saved).",
            "default": false
          },
          "ignoreStartUrls": {
            "title": "Ignore start URLs",
            "type": "boolean",
            "description": "Run only the search terms even if Start URLs are filled (handy for saved tasks and integrations).",
            "default": false
          },
          "commentSort": {
            "title": "Comment order",
            "enum": [
              "confidence",
              "top",
              "new",
              "controversial",
              "old",
              "qa"
            ],
            "type": "string",
            "description": "Reddit's comment order: which comments come first when 'Max comments per post' cuts a thread.",
            "default": "confidence"
          },
          "commentDepth": {
            "title": "Comment reply depth (levels)",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many reply levels to keep: 1 = top-level comments only, 10 = Reddit's full depth per request.",
            "default": 10
          },
          "commentContextMode": {
            "title": "Comment URLs: focus on the comment",
            "type": "boolean",
            "description": "For a comment permalink save the post, the parent comments (context), the comment itself (isTargetComment = true) and its replies. Off = treat it as the whole post.",
            "default": true
          },
          "commentContextDepth": {
            "title": "Comment URLs: parent levels",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "How many parent comments to include above a target comment (Reddit's context parameter).",
            "default": 3
          },
          "postedAfter": {
            "title": "Posts created on or after",
            "type": "string",
            "description": "Keep only posts created on or after this date (UTC), e.g. 2026-10-01, or a relative value like \"7 days\". Newest-first lists stop paging once older posts are reached."
          },
          "postedBefore": {
            "title": "Posts created on or before",
            "type": "string",
            "description": "Keep only posts created on or before this date (end of that day, UTC)."
          },
          "commentedAfter": {
            "title": "Comments created on or after",
            "type": "string",
            "description": "Keep only comments created on or after this date (UTC), e.g. 2026-10-01 or \"30 days\"."
          },
          "commentedBefore": {
            "title": "Comments created on or before",
            "type": "string",
            "description": "Keep only comments created on or before this date (end of that day, UTC)."
          },
          "forceSortNewForTimeFilteredRuns": {
            "title": "Newest first when a post date is set",
            "type": "boolean",
            "description": "With 'Posts created on or after' set, read searches and subreddit listings newest-first so the date window is covered completely and paging stops at the date.",
            "default": false
          },
          "onlyWithFlair": {
            "title": "Only posts with a flair",
            "type": "boolean",
            "description": "Drop posts without a post flair.",
            "default": false
          },
          "filterKeywords": {
            "title": "Filter keywords",
            "type": "array",
            "description": "Keep only posts whose title or text contains these words (case-insensitive, checked by the scraper after Reddit answers). Leave empty to keep all.",
            "items": {
              "type": "string"
            }
          },
          "filterKeywordMode": {
            "title": "Keyword match mode",
            "enum": [
              "any",
              "titleOnly",
              "all",
              "exactPhrase"
            ],
            "type": "string",
            "description": "How 'Filter keywords' are matched.",
            "default": "any"
          },
          "strictSearch": {
            "title": "Strict search (exact phrase)",
            "type": "boolean",
            "description": "Send multi-word search terms to Reddit as an exact phrase (\"web scraping\") instead of loose matching.",
            "default": false
          },
          "strictTokenFilter": {
            "title": "Keep only posts containing every search word",
            "type": "boolean",
            "description": "After Reddit answers, keep only posts whose title, text or link contains every word of the search term.",
            "default": false
          },
          "maximizeCoverage": {
            "title": "Maximize coverage",
            "type": "boolean",
            "description": "When one listing or search ends before 'Max posts per source', continue with Reddit's other sort orders and time windows (new, top/year, top/month ...) and remove duplicates. More requests, many more posts.",
            "default": false
          },
          "sentimentAnalysis": {
            "title": "Add sentiment",
            "type": "boolean",
            "description": "Add sentimentScore (-1 to 1) and sentimentLabel (positive / negative / neutral) to posts and comments, computed with the VADER sentiment lexicon (no AI model, no extra cost).",
            "default": false
          },
          "outputFormat": {
            "title": "Output format",
            "enum": [
              "default",
              "rag-markdown"
            ],
            "type": "string",
            "description": "'rag-markdown' adds a ready-to-embed Markdown text of each row (title, text, author, score, date, link) in the field 'markdown'.",
            "default": "default"
          },
          "subredditTimeframe": {
            "title": "Time window for subreddit listings",
            "enum": [
              "all",
              "hour",
              "day",
              "week",
              "month",
              "year"
            ],
            "type": "string",
            "description": "Time window for 'top' / 'controversial' subreddit URLs that do not set one in the URL (t=...). Empty = the 'time' option."
          },
          "includeCommunityDetails": {
            "title": "Add community details to posts and comments",
            "type": "boolean",
            "description": "Copy the community values (members, description, rules, allowed post types...) onto every post and comment row (one cached lookup per community).",
            "default": true
          },
          "includeMediaLinks": {
            "title": "Include media links",
            "type": "boolean",
            "description": "Keep the image, video, gallery and preview link columns. Off = these columns stay empty (smaller rows).",
            "default": true
          },
          "fastMode": {
            "title": "Fast mode",
            "type": "boolean",
            "description": "Posts only, as fast as possible: no comment threads and no community-detail lookups.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many URLs / search terms are processed in parallel.",
            "default": 5
          },
          "aiAnalysis": {
            "title": "Text analysis (sentiment, intent, emotion, category, flags)",
            "type": "boolean",
            "description": "Free rule-based analysis of every post and comment: sentimentScore / sentimentLabel, intent, emotion, content category, painPoint, competitor and all seven aiFlags. No AI service, no extra charge.",
            "default": false
          },
          "wantsHelp": {
            "title": "Flag: asks for help or a recommendation",
            "type": "boolean",
            "description": "Adds aiFlags.wantsHelp (phrase rules such as 'any tips', 'can someone help', 'looking for a').",
            "default": false
          },
          "isOwner": {
            "title": "Flag: author owns a business",
            "type": "boolean",
            "description": "Adds aiFlags.isOwner ('my business', 'I run a ...').",
            "default": false
          },
          "isVendor": {
            "title": "Flag: author promotes their own product",
            "type": "boolean",
            "description": "Adds aiFlags.isVendor ('we built', 'our app', 'check out my').",
            "default": false
          },
          "hasPain": {
            "title": "Flag: describes a problem",
            "type": "boolean",
            "description": "Adds aiFlags.hasPain ('frustrating', 'not working', 'bug', 'struggling').",
            "default": false
          },
          "mentionsPrice": {
            "title": "Flag: mentions price or money",
            "type": "boolean",
            "description": "Adds aiFlags.mentionsPrice ('$', 'per month', 'pricing', 'expensive').",
            "default": false
          },
          "featureRequest": {
            "title": "Flag: asks for a missing feature",
            "type": "boolean",
            "description": "Adds aiFlags.featureRequest ('feature request', 'wish it had', 'please add').",
            "default": false
          },
          "willingToPay": {
            "title": "Flag: willing to pay",
            "type": "boolean",
            "description": "Adds aiFlags.willingToPay ('willing to pay', 'my budget is', 'take my money').",
            "default": false
          },
          "painPoint": {
            "title": "Extract the pain point",
            "type": "boolean",
            "description": "Adds painPoint: the sentence of the post or comment that states the problem.",
            "default": false
          },
          "competitor": {
            "title": "Extract competitor names",
            "type": "boolean",
            "description": "Adds competitor: brand or product names written after 'alternative to', 'switched from', 'vs', 'instead of'.",
            "default": false
          },
          "onlyFlaggedRows": {
            "title": "Keep only rows with a flag",
            "type": "boolean",
            "description": "With flags turned on, save only posts and comments where at least one chosen flag is true (lead lists).",
            "default": false
          },
          "withinCommunity": {
            "title": "Community to search in",
            "type": "string",
            "description": "Community to search in (same as searchCommunityName)"
          },
          "searchSort": {
            "title": "Search order",
            "type": "string",
            "description": "Search order (same as sort)"
          },
          "searchTime": {
            "title": "Search time window",
            "type": "string",
            "description": "Search time window (same as time)"
          },
          "timeframe": {
            "title": "Time window",
            "type": "string",
            "description": "Time window (same as time)"
          },
          "crawlCommentsPerPost": {
            "title": "Load comments of each post",
            "type": "boolean",
            "description": "Load comments of each post (opposite of skipComments)"
          },
          "maxPostsCount": {
            "title": "Posts per source",
            "type": "integer",
            "description": "Posts per source (same as maxPostCount)"
          },
          "maxCommentsPerPost": {
            "title": "Comments per post",
            "type": "integer",
            "description": "Comments per post (same as maxComments)"
          },
          "dateFrom": {
            "title": "Posts created on or after",
            "type": "string",
            "description": "Posts created on or after (same as postedAfter)"
          },
          "dateTo": {
            "title": "Posts created on or before",
            "type": "string",
            "description": "Posts created on or before (same as postedBefore)"
          },
          "postDateLimit": {
            "title": "Posts created on or after",
            "type": "string",
            "description": "Posts created on or after (same as postedAfter)"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Residential proxy is recommended and is the default. Each Reddit session (100 data requests per 10 minutes) gets its own proxy IP.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}