{
  "openapi": "3.0.1",
  "info": {
    "title": "Reddit Scraper Pro | FREE 🔥 | No API Key Required",
    "description": "A powerful FREE Reddit scraper for posts and comments with detailed metrics. No API key required. Scrape subreddits, profiles, and specific posts, or search Reddit site-wide by keywords or domains. Collect rich, structured data including authors, scores, timestamps, flairs, comment threads, and more",
    "version": "0.0",
    "x-build-id": "B7dlTyEMqRcs1qZ5P"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/coding-doctor-omar~Reddit-Scraper-Pro/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-coding-doctor-omar-Reddit-Scraper-Pro",
        "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/coding-doctor-omar~Reddit-Scraper-Pro/runs": {
      "post": {
        "operationId": "runs-sync-coding-doctor-omar-Reddit-Scraper-Pro",
        "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/coding-doctor-omar~Reddit-Scraper-Pro/run-sync": {
      "post": {
        "operationId": "run-sync-coding-doctor-omar-Reddit-Scraper-Pro",
        "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": [
          "maxResults",
          "scrapingMode",
          "includeComments",
          "maxCommentsDepth"
        ],
        "properties": {
          "maxResults": {
            "title": "Maximum Results",
            "minimum": 1,
            "type": "integer",
            "description": "The maximum total number of posts and comments to scrape.",
            "default": 100
          },
          "maxPostsPerCollection": {
            "title": "Maximum Posts Per Collection",
            "minimum": 0,
            "type": "integer",
            "description": "The maximum number of posts to scrape per collection. A collection is either a subreddit, a profile, or a domain.",
            "default": 500
          },
          "scrapingMode": {
            "title": "Scraping Mode",
            "enum": [
              "standard",
              "keywordSearch",
              "domainSearch"
            ],
            "type": "string",
            "description": "Choose Standard mode for your regular use cases or Domain Search mode for scraping posts & comments that mention a particular domain site-wide or Keyword Search mode for scraping posts & comments that include or exclude certain keywords site-wide.",
            "default": "standard"
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "default",
              "hot",
              "new"
            ],
            "type": "string",
            "description": "The sort order of posts. The default option will use the default sort order for each subreddit scraped.",
            "default": "default"
          },
          "timeFrame": {
            "title": "Time Frame",
            "enum": [
              "all-time",
              "past-hour",
              "today",
              "past-week",
              "past-month",
              "past-year"
            ],
            "type": "string",
            "description": "The time frame in which to look for posts and comments.",
            "default": "all-time"
          },
          "subredditUrls": {
            "title": "Subreddit URLs",
            "type": "array",
            "description": "A list of the URLs of subreddits to scrape. In Domain Search and Keyword Search modes, this option will be ignored.",
            "default": [
              {
                "url": "https://www.reddit.com/r/webscraping"
              }
            ],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "postUrls": {
            "title": "Post URLs",
            "type": "array",
            "description": "A list of the URLs of the specific posts to scrape. In Domain Search and Keyword Search modes, this option will be ignored.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "profileUrls": {
            "title": "Profile URLs",
            "type": "array",
            "description": "A list of the URLs of the specific profiles to scrape. In Domain Search and Keyword Search modes, this option will be ignored.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "keywordsIncluded": {
            "title": "Keywords to be Included",
            "type": "array",
            "description": "Filters down posts to those containing any of this list of keywords. Only English letters, numbers, hyphens, and space are supported.",
            "items": {
              "type": "string",
              "pattern": "^[a-zA-Z0-9 -]+$",
              "minLength": 1,
              "maxLength": 100
            }
          },
          "keywordsExcluded": {
            "title": "Keywords to be Excluded",
            "type": "array",
            "description": "Filters down posts to those NOT containing any of this list of keywords. Only English letters, numbers, hyphens, and space are supported.",
            "items": {
              "type": "string",
              "pattern": "^[a-zA-Z0-9 -]+$",
              "minLength": 1,
              "maxLength": 100
            }
          },
          "domains": {
            "title": "Domains",
            "type": "array",
            "description": "A list of domains for which to look for posts and/or comments across reddit (e.g. look for posts/comments referencing github.com across reddit). Only relevant in Domain Search mode.",
            "default": [
              "github.com"
            ],
            "items": {
              "type": "string"
            }
          },
          "includeComments": {
            "title": "Include Comments",
            "type": "boolean",
            "description": "If enabled, comments for each post will also be scraped (will take more time).",
            "default": false
          },
          "maxCommentsDepth": {
            "title": "Maximum Comments Depth",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Sets the maximum depth of comments to scrape when scraping comments. Set to 0 or lower to scrape top-level comments only. Default is 10.",
            "default": 10
          },
          "maxCommentsPerPost": {
            "title": "Maximum Comments Per Post",
            "minimum": 1,
            "type": "integer",
            "description": "The maximum total number of comments and replies to scrape per post.",
            "default": 50000
          },
          "maxTopCommentsPerPost": {
            "title": "Maximum Top-Level Comments Per Post",
            "minimum": 1,
            "type": "integer",
            "description": "The maximum top-level comments (depth 0) to scrape per post.",
            "default": 500
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}