{
  "openapi": "3.0.1",
  "info": {
    "title": "Reddit Subreddit Members Scraper By Time Window",
    "description": "Monitor members in competitor subreddits. This actor helps you extract usernames to study growth, engagement patterns, or overlap between audiences in your industry niche.",
    "version": "0.2",
    "x-build-id": "bGxqJdaL7Qjny18wf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/simpleapi~reddit-subreddit-members-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-simpleapi-reddit-subreddit-members-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/simpleapi~reddit-subreddit-members-scraper/runs": {
      "post": {
        "operationId": "runs-sync-simpleapi-reddit-subreddit-members-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/simpleapi~reddit-subreddit-members-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-simpleapi-reddit-subreddit-members-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": {
          "targets": {
            "title": "Subreddits, profiles or search terms",
            "type": "array",
            "description": "One entry per line. Accepts r/python, https://old.reddit.com/r/python/, u/spez, /user/spez/ or a plain keyword. Do not decorate entries with emoji - the original actor's own parser misread its decorated prefill as three keyword searches.",
            "items": {
              "type": "string"
            }
          },
          "subreddits": {
            "title": "Extra subreddit names",
            "type": "array",
            "description": "Plain subreddit names, without the r/ prefix. Merged with the list above.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs (alias)",
            "type": "array",
            "description": "Legacy alias for the first field, kept so older run configurations keep working. Used only when the first field is empty.",
            "items": {
              "type": "string"
            }
          },
          "sortOrders": {
            "title": "Feed sort orders to sweep",
            "type": "array",
            "description": "Sweep one or several rankings. new = latest submitters, hot = current front page, rising = fast movers (small feed), top and controversial = the time window below.",
            "items": {
              "type": "string",
              "enum": [
                "new",
                "hot",
                "rising",
                "top",
                "controversial"
              ],
              "enumTitles": [
                "New - latest submitters",
                "Hot - current front page",
                "Rising - fast movers",
                "Top - highest scoring in the window",
                "Controversial - most divisive in the window"
              ]
            }
          },
          "topTimeWindow": {
            "title": "Time window for top / controversial",
            "enum": [
              "hour",
              "day",
              "week",
              "month",
              "year",
              "all"
            ],
            "type": "string",
            "description": "Always sent explicitly. A bare top request silently returns only today's top posts (measured: an identical id set to t=day), so this actor never omits it.",
            "default": "year"
          },
          "includeCommentFirehose": {
            "title": "Also sweep the comment firehose",
            "type": "boolean",
            "description": "Reads /r/<sub>/comments/ - the people who reply rather than post. Measured 0% author overlap with top/year, so it is the single biggest source of additional participants.",
            "default": true
          },
          "sort_order": {
            "title": "Single sort order (legacy field)",
            "enum": [
              "",
              "new",
              "hot",
              "rising",
              "top",
              "controversial"
            ],
            "type": "string",
            "description": "Legacy single-feed field from the original actor. If you set it, that feed is always swept and is swept first, on top of anything selected above."
          },
          "maxPosts": {
            "title": "Max items per feed",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many listing items to read from EACH selected feed of EACH subreddit. old.reddit serves up to 100 items per request.",
            "default": 10
          },
          "maxComments": {
            "title": "Max comments from the firehose",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "How many recent comments to read per subreddit. Set 0 to skip the comment firehose entirely.",
            "default": 10
          },
          "maxParticipants": {
            "title": "Max participants to emit",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Hard ceiling on charged rows, applied in discovery order. 0 means no ceiling.",
            "default": 0
          },
          "minSortCount": {
            "title": "Minimum number of feeds an account must appear in",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "1 keeps everyone. 2 keeps only accounts that surfaced in at least two swept feeds - a much smaller, more consistently active set.",
            "default": 1
          },
          "excludeAuthors": {
            "title": "Usernames to exclude",
            "type": "array",
            "description": "Case-insensitive. Useful for bots and moderators that appear in every feed.",
            "items": {
              "type": "string"
            }
          },
          "restrictKeywordsToSubreddit": {
            "title": "Restrict search terms to the first subreddit",
            "type": "boolean",
            "description": "Off = search terms hit all of Reddit (the original behaviour). On = they are scoped with restrict_sr to the first subreddit in your list.",
            "default": false
          },
          "fetchDetails": {
            "title": "Read each participant's profile sidebar",
            "type": "boolean",
            "description": "Adds post karma, comment karma, account creation date and account age. Turn it off for a fast, cheap username-and-provenance sweep.",
            "default": true
          },
          "maxConcurrentUsers": {
            "title": "Concurrent profile requests",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many profile sidebars to read at once.",
            "default": 3
          },
          "requestDelay": {
            "title": "Minimum delay between requests (seconds)",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "Pacing floor applied to every request in the run.",
            "default": 1
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Residential is required. Measured 2026-08-01: residential exits returned 200, every datacenter group returned 403.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          },
          "forceResidentialProxy": {
            "title": "Force the RESIDENTIAL proxy group",
            "type": "boolean",
            "description": "On, any other Apify proxy group you pick is overridden to RESIDENTIAL and the override is logged. Turn it off only if you want to reproduce the block yourself.",
            "default": true
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}