{
  "openapi": "3.0.1",
  "info": {
    "title": "Reddit [Only $0.50💰] Posts | Users | Scraper",
    "description": "[Only $0.50💰] Scrape Reddit posts (and optionally full comment threads with replies) from public JSON — site-wide & subreddit search, feed browse, post/comment date filters, NSFW toggle, strict phrase/token match, proxy rotation. Legacy: deduplicated authors from subreddit listing URLs",
    "version": "0.0",
    "x-build-id": "jAAlO0CtSp8k6ffOK"
  },
  "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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Run mode",
            "enum": [
              "searchGlobal",
              "searchSubreddit",
              "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>User scraper</strong> — legacy Cheerio flow to collect authors from listing URLs.",
            "default": "searchGlobal"
          },
          "searchQueries": {
            "title": "Keywords",
            "type": "array",
            "description": "Used when <code>mode</code> is <strong>Search all of Reddit</strong>. Each entry runs a separate global search on old.reddit.",
            "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": "Maps to <code>include_over_18</code> on Reddit JSON for <strong>Search all of Reddit</strong> and <strong>Search one subreddit</strong>.",
            "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. Also sets the first <code>thread.json?limit=</code> (competitor-style). Uses <code>/api/morechildren</code> to fill truncated trees until this cap.",
            "default": 200
          },
          "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 (competitor: <code>forceSortNewForTimeFilteredRuns</code>).",
            "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 (competitor: <code>strictSearch</code>).",
            "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 (competitor: <code>strictTokenFilter</code>). Subreddit feed mode has no keyword line — filter does not apply.",
            "default": false
          },
          "searchMaximizeCoverage": {
            "title": "Maximize coverage",
            "type": "boolean",
            "description": "Higher caps on search pagination pages and <code>morechildren</code> expansions (competitor: <code>maximize_coverage</code>).",
            "default": false
          },
          "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> (Cheerio). 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",
            "type": "object",
            "description": "Specifies proxy servers that will be used by the scraper in order to hide its origin.<br><br>For details, see <a href='https://apify.com/apify/web-scraper#proxy-configuration' target='_blank' rel='noopener'>Proxy configuration</a> in README.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}