{
  "openapi": "3.0.1",
  "info": {
    "title": "Reddit Scraper | All In One | Cheapest ($0.99/1K Result)",
    "description": "[𝘾𝙝𝙚𝙖𝙥𝙚𝙨𝙩] Reddit Scraper Enterprise extracts posts, comments, subreddits, user profiles, votes, timestamps, and other public Reddit data at scale 💬📊 Ideal for sentiment analysis, market research, trend monitoring, brand tracking, AI datasets, and competitive intelligence.",
    "version": "1.0",
    "x-build-id": "Xr3ONXJ4C3ytrc7OA"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapers-hub~reddit-scraper-enterprise/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapers-hub-reddit-scraper-enterprise",
        "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/scrapers-hub~reddit-scraper-enterprise/runs": {
      "post": {
        "operationId": "runs-sync-scrapers-hub-reddit-scraper-enterprise",
        "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/scrapers-hub~reddit-scraper-enterprise/run-sync": {
      "post": {
        "operationId": "run-sync-scrapers-hub-reddit-scraper-enterprise",
        "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": {
          "queries": {
            "title": "Add Search Keywords",
            "type": "array",
            "description": "One or more keywords / phrases to search across all of Reddit.",
            "items": {
              "type": "string"
            }
          },
          "sort": {
            "title": "Choose How Search Results Are Ranked",
            "enum": [
              "relevance",
              "hot",
              "top",
              "new",
              "comments"
            ],
            "type": "string",
            "description": "How Reddit ranks the search results.",
            "default": "relevance"
          },
          "timeframe": {
            "title": "Limit Results by Time Range",
            "enum": [
              "all",
              "year",
              "month",
              "week",
              "day",
              "hour"
            ],
            "type": "string",
            "description": "Only include results from this time window.",
            "default": "all"
          },
          "subredditName": {
            "title": "Choose a Subreddit to Search",
            "type": "string",
            "description": "Subreddit name, with or without the r/ prefix (e.g. 'food' or 'r/food')."
          },
          "subredditKeywords": {
            "title": "Add Keywords Within That Subreddit",
            "type": "array",
            "description": "Optional keywords to search inside the subreddit. Leave empty to browse the subreddit's posts.",
            "items": {
              "type": "string"
            }
          },
          "subredditSort": {
            "title": "Choose How Subreddit Results Are Ranked",
            "enum": [
              "relevance",
              "hot",
              "top",
              "new",
              "comments"
            ],
            "type": "string",
            "description": "How Reddit ranks results within the subreddit.",
            "default": "relevance"
          },
          "subredditTimeframe": {
            "title": "Limit Subreddit Results by Time Range",
            "enum": [
              "all",
              "year",
              "month",
              "week",
              "day",
              "hour"
            ],
            "type": "string",
            "description": "Only include subreddit results from this time window.",
            "default": "all"
          },
          "urls": {
            "title": "Add Reddit URLs to Scrape",
            "type": "array",
            "description": "Full Reddit post URLs to scrape directly.",
            "items": {
              "type": "string"
            }
          },
          "scrapeComments": {
            "title": "Include Comments from Each Post",
            "type": "boolean",
            "description": "Also collect the comments of every scraped post.",
            "default": false
          },
          "maxComments": {
            "title": "Set a Comment Limit per Post",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of comments to collect per post.",
            "default": 50000
          },
          "dateFrom": {
            "title": "Keep Posts Starting From a Specific Date",
            "type": "string",
            "description": "Keep only posts created on or after this date (YYYY-MM-DD, UTC)."
          },
          "dateTo": {
            "title": "Keep Posts Up to a Specific Date",
            "type": "string",
            "description": "Keep only posts created on or before this date (YYYY-MM-DD, UTC)."
          },
          "commentDateFrom": {
            "title": "Keep Comments Starting From a Specific Date",
            "type": "string",
            "description": "Keep only comments created on or after this date (YYYY-MM-DD, UTC)."
          },
          "commentDateTo": {
            "title": "Keep Comments Up to a Specific Date",
            "type": "string",
            "description": "Keep only comments created on or before this date (YYYY-MM-DD, UTC)."
          },
          "forceSortNewForTimeFilteredRuns": {
            "title": "Favor Newest Results for Better Time Coverage (Recommended for Time Frame Filtered Searches)",
            "type": "boolean",
            "description": "Force 'new' sort whenever a time range is set, so recent posts aren't missed.",
            "default": false
          },
          "includeNsfw": {
            "title": "Include NSFW and 18+ Posts",
            "type": "boolean",
            "description": "Include posts marked over_18 / NSFW.",
            "default": false
          },
          "strictSearch": {
            "title": "Strict Reddit Search to Follow Your Keywords More Closely",
            "type": "boolean",
            "description": "Keep only posts where every query token appears in the title or body.",
            "default": false
          },
          "strictTokenFilter": {
            "title": "Keep Only Posts That Clearly Match the Full Query",
            "type": "boolean",
            "description": "Keep only posts that contain the exact query phrase.",
            "default": false
          },
          "maxPosts": {
            "title": "Set a Post Limit for Each Input",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of posts to collect per search / subreddit / URL.",
            "default": 50000
          },
          "maximize_coverage": {
            "title": "Expand Each Search Seed for Broader Reddit Coverage",
            "type": "boolean",
            "description": "Sweep multiple sort orders per seed to gather more unique posts.",
            "default": false
          },
          "sentiment_analysis": {
            "title": "Add Sentiment Scores and Labels to Posts and Comments",
            "type": "boolean",
            "description": "Attach a lexicon-based sentiment score and label to each post.",
            "default": false
          },
          "content_analysis": {
            "title": "Classify Posts into Content Categories",
            "type": "boolean",
            "description": "Attach a content category (Finance, Sports, Gaming, Politics, …) and stats to each post.",
            "default": false
          },
          "mcpConnectors": {
            "title": "MCP Delivery Connectors",
            "type": "array",
            "description": "Connector IDs to hand off the run summary to (optional).",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}