{
  "openapi": "3.0.1",
  "info": {
    "title": "👽 Reddit Post & Subreddit Extractora",
    "description": "Scrape Reddit posts, comments, communities and user profiles by keyword, URL or full subreddit — no API key, no login. Date, flair and NSFW filters, built-in engagement metrics, five ready-made views, every item streamed live to your dataset.",
    "version": "0.2",
    "x-build-id": "huTOscuwBkreRprmK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/data_minds~reddit-post-subreddit-extractor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-data_minds-reddit-post-subreddit-extractor",
        "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/data_minds~reddit-post-subreddit-extractor/runs": {
      "post": {
        "operationId": "runs-sync-data_minds-reddit-post-subreddit-extractor",
        "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/data_minds~reddit-post-subreddit-extractor/run-sync": {
      "post": {
        "operationId": "run-sync-data_minds-reddit-post-subreddit-extractor",
        "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": {
          "searchTerms": {
            "title": "🔎 Search keywords",
            "type": "array",
            "description": "Keywords to search on Reddit, one per line (for example \"best laptops 2025\"). Each keyword is searched on its own and gets its own post limit. Leave empty if you only use Reddit URLs or subreddits.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "🔗 Reddit URLs",
            "type": "array",
            "description": "Reddit links to scrape, one per line or uploaded as a list: posts (also redd.it short links), subreddits, user profiles and search pages. Each URL gets its own post limit.",
            "items": {
              "type": "string"
            }
          },
          "subredditUrls": {
            "title": "🔎 Subreddits to collect in full",
            "type": "array",
            "description": "Subreddit names or links, for example AskReddit, r/AskReddit or https://www.reddit.com/r/AskReddit/. Posts are collected up to the post limit per subreddit.",
            "items": {
              "type": "string"
            }
          },
          "maxPostsCount": {
            "title": "🔢 Max posts per input",
            "minimum": 0,
            "maximum": 50000,
            "type": "integer",
            "description": "Maximum posts saved for each keyword, URL or subreddit. Three inputs with a limit of 100 give up to 300 posts.",
            "default": 10
          },
          "searchSort": {
            "title": "🔃 Sort keyword results by",
            "enum": [
              "relevance",
              "hot",
              "top",
              "new",
              "comments"
            ],
            "type": "string",
            "description": "How keyword search results are ranked. Applies to search keywords only.",
            "default": "new"
          },
          "searchTime": {
            "title": "📅 Keyword time range",
            "enum": [
              "all",
              "hour",
              "day",
              "week",
              "month",
              "year"
            ],
            "type": "string",
            "description": "Limit keyword search results to posts from a time window. Applies to search keywords only; ignored when a posted-after date is set.",
            "default": "all"
          },
          "withinCommunity": {
            "title": "🎯 Limit keyword search to a subreddit",
            "type": "string",
            "description": "Search keywords inside one subreddit only. Accepts a name (developers), r/developers or a subreddit link. Leave empty to search all of Reddit."
          },
          "onlyWithFlair": {
            "title": "🎯 Only posts with a flair",
            "type": "boolean",
            "description": "Drop posts without a flair and keep only those that have one.",
            "default": false
          },
          "includeNSFW": {
            "title": "🎯 Include NSFW (18+) content",
            "type": "boolean",
            "description": "Include posts marked as not safe for work.",
            "default": false
          },
          "postedAfter": {
            "title": "📅 Posts on or after",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$|^(\\d+)\\s*(day|week|month|year)s?$",
            "type": "string",
            "description": "Only keep posts created on or after this date (00:00 UTC). Pick a date or type a relative one. Examples: 2025-01-31 (exact day), 30 days (last 30 days), 2 weeks, 3 months, 1 year. Results are newest first and the keyword time range is ignored."
          },
          "postedBefore": {
            "title": "📅 Posts on or before",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$|^(\\d+)\\s*(day|week|month|year)s?$",
            "type": "string",
            "description": "Only keep posts created on or before this date (23:59:59 UTC). Examples: 2025-01-31 (exact day), 30 days (posts older than 30 days), 2 weeks, 3 months, 1 year."
          },
          "commentedAfter": {
            "title": "📅 Comments on or after",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$|^(\\d+)\\s*(day|week|month|year)s?$",
            "type": "string",
            "description": "Only keep comments created on or after this date (UTC). Examples: 2025-01-31 (exact day), 30 days (last 30 days), 2 weeks, 3 months, 1 year."
          },
          "commentedBefore": {
            "title": "📅 Comments on or before",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$|^(\\d+)\\s*(day|week|month|year)s?$",
            "type": "string",
            "description": "Only keep comments created on or before this date (UTC). Examples: 2025-01-31 (exact day), 30 days (comments older than 30 days), 2 weeks, 3 months, 1 year."
          },
          "searchPosts": {
            "title": "✅ Search for posts",
            "type": "boolean",
            "description": "Include posts in keyword search results.",
            "default": true
          },
          "searchComments": {
            "title": "✅ Search for comments",
            "type": "boolean",
            "description": "Include comments in keyword search results.",
            "default": false
          },
          "searchCommunities": {
            "title": "✅ Search for communities",
            "type": "boolean",
            "description": "Include communities (subreddits) in keyword search results.",
            "default": false
          },
          "maxCommentsCount": {
            "title": "🔢 Max comments per keyword",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum comments saved for each keyword when comment search is on. Does not affect the per-post comments.",
            "default": 10
          },
          "maxCommunitiesCount": {
            "title": "🔢 Max communities per keyword",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum communities saved for each keyword when community search is on.",
            "default": 2
          },
          "crawlCommentsPerPost": {
            "title": "✅ Collect comments for each post",
            "type": "boolean",
            "description": "Collect the comments of every post found. This adds rows and run time.",
            "default": false
          },
          "maxCommentsPerPost": {
            "title": "🔢 Max comments per post",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum comments saved for each post when comment collection is on.",
            "default": 10
          },
          "intentSignals": {
            "title": "🎯 Add buyer-intent signals",
            "type": "boolean",
            "description": "Adds true/false flags to every post and comment: wantsHelp, hasPain, painPoint, mentionsPrice, featureRequest, willingToPay, isOwner, isVendor and competitor. Free, no extra charge.",
            "default": false
          },
          "postConcurrency": {
            "title": "⚡ Comment threads at once",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many posts' comment threads are fetched at the same time.",
            "default": 3
          },
          "maxRetries": {
            "title": "🔁 Max retries",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many times a failed request is retried before giving up on it.",
            "default": 3
          },
          "requestDelayMin": {
            "title": "⏳ Min delay between requests (seconds)",
            "minimum": 0,
            "maximum": 10,
            "type": "number",
            "description": "Shortest random pause between requests.",
            "default": 1
          },
          "requestDelayMax": {
            "title": "⏳ Max delay between requests (seconds)",
            "minimum": 0,
            "maximum": 15,
            "type": "number",
            "description": "Longest random pause between requests.",
            "default": 2.5
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy",
            "type": "object",
            "description": "Optional network settings for the run. The defaults work for most runs."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}