{
  "openapi": "3.0.1",
  "info": {
    "title": "⭐️ FREE Reddit Scraper Pro",
    "description": "Free Reddit scraper that does what the paid ones do but better. No API keys needed, no usage fees. Pairs with ready-made n8n workflow templates for lead gen and content research.",
    "version": "0.35",
    "x-build-id": "KkZgRw3s603jzurax"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/spry_wholemeal~reddit-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-spry_wholemeal-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/spry_wholemeal~reddit-scraper/runs": {
      "post": {
        "operationId": "runs-sync-spry_wholemeal-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/spry_wholemeal~reddit-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-spry_wholemeal-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",
        "properties": {
          "mode": {
            "title": "Operation Mode",
            "enum": [
              "scrape",
              "discover",
              "search",
              "domain"
            ],
            "type": "string",
            "description": "Choose one operation for this run. Configure the matching section below.",
            "default": "scrape"
          },
          "listings": {
            "title": "Subreddits to Scrape",
            "type": "array",
            "description": "Used when Operation Mode is Scrape. Add one item per subreddit. Use the subreddit name without the r/ prefix.",
            "items": {
              "type": "object",
              "required": [
                "subreddit"
              ],
              "properties": {
                "subreddit": {
                  "title": "Subreddit",
                  "type": "string",
                  "description": "Subreddit name, for example entrepreneur or startups.",
                  "editor": "textfield",
                  "minLength": 1
                },
                "sort": {
                  "title": "Sort Posts By",
                  "type": "string",
                  "description": "How to order posts for this subreddit.",
                  "enum": [
                    "hot",
                    "new",
                    "top",
                    "rising",
                    "controversial"
                  ],
                  "enumTitles": [
                    "Hot",
                    "New",
                    "Top",
                    "Rising",
                    "Controversial"
                  ]
                },
                "timeframe": {
                  "title": "Timeframe",
                  "type": "string",
                  "description": "Used with Top and Controversial sorting.",
                  "enum": [
                    "hour",
                    "day",
                    "week",
                    "month",
                    "year",
                    "all"
                  ],
                  "enumTitles": [
                    "Past Hour",
                    "Past Day",
                    "Past Week",
                    "Past Month",
                    "Past Year",
                    "All Time"
                  ]
                },
                "maxPosts": {
                  "title": "Max Posts",
                  "type": "integer",
                  "description": "Maximum posts to collect from this subreddit.",
                  "editor": "number",
                  "minimum": 1,
                  "maximum": 1000
                }
              }
            }
          },
          "sort": {
            "title": "Default Sort",
            "enum": [
              "hot",
              "new",
              "top",
              "rising",
              "controversial"
            ],
            "type": "string",
            "description": "Fallback sort for Scrape or Domain targets that do not set their own sort.",
            "default": "hot"
          },
          "timeframe": {
            "title": "Default Timeframe",
            "enum": [
              "hour",
              "day",
              "week",
              "month",
              "year",
              "all"
            ],
            "type": "string",
            "description": "Fallback timeframe for targets that do not set their own timeframe.",
            "default": "week"
          },
          "maxPosts": {
            "title": "Default Max Posts",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Fallback max posts for Scrape targets that do not set their own limit.",
            "default": 100
          },
          "searchTerms": {
            "title": "Keywords",
            "maxItems": 20,
            "type": "array",
            "description": "Used when Operation Mode is Discover. Add one keyword or phrase per line.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Max Results",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Discover: max subreddits per keyword. Search: fallback max posts for search targets without their own limit.",
            "default": 25
          },
          "estimateActivity": {
            "title": "Estimate Activity",
            "type": "boolean",
            "description": "Discover only: estimate recent posting activity for discovered communities.",
            "default": true
          },
          "includeNsfw": {
            "title": "Include NSFW",
            "type": "boolean",
            "description": "Discover and Search only: include adult/NSFW results.",
            "default": false
          },
          "searchTargets": {
            "title": "Search Queries",
            "type": "array",
            "description": "Used when Operation Mode is Search. Add one item per query.",
            "items": {
              "type": "object",
              "required": [
                "query"
              ],
              "properties": {
                "query": {
                  "title": "Query",
                  "type": "string",
                  "description": "Keyword, phrase, or Reddit search expression.",
                  "editor": "textfield",
                  "minLength": 1
                },
                "searchSort": {
                  "title": "Sort Results By",
                  "type": "string",
                  "description": "How to rank results for this query.",
                  "enum": [
                    "relevance",
                    "hot",
                    "new",
                    "top",
                    "comments"
                  ],
                  "enumTitles": [
                    "Relevance",
                    "Hot",
                    "New",
                    "Top",
                    "Most Comments"
                  ]
                },
                "timeframe": {
                  "title": "Timeframe",
                  "type": "string",
                  "description": "Time window for this query.",
                  "enum": [
                    "hour",
                    "day",
                    "week",
                    "month",
                    "year",
                    "all"
                  ],
                  "enumTitles": [
                    "Past Hour",
                    "Past Day",
                    "Past Week",
                    "Past Month",
                    "Past Year",
                    "All Time"
                  ]
                },
                "restrictToSubreddit": {
                  "title": "Restrict to Subreddit",
                  "type": "string",
                  "description": "Optional subreddit name without the r/ prefix.",
                  "editor": "textfield"
                },
                "maxResults": {
                  "title": "Max Results",
                  "type": "integer",
                  "description": "Maximum posts to collect for this query.",
                  "editor": "number",
                  "minimum": 1,
                  "maximum": 1000
                }
              }
            }
          },
          "searchSort": {
            "title": "Default Search Sort",
            "enum": [
              "relevance",
              "hot",
              "new",
              "top",
              "comments"
            ],
            "type": "string",
            "description": "Fallback sort for Search targets that do not set their own sort.",
            "default": "relevance"
          },
          "restrictToSubreddit": {
            "title": "Default Subreddit Restriction",
            "type": "string",
            "description": "Optional fallback subreddit restriction for Search targets without their own restriction."
          },
          "authorFilter": {
            "title": "Author Filter",
            "type": "string",
            "description": "Optional: only include posts by this Reddit username."
          },
          "flairFilter": {
            "title": "Flair Filter",
            "type": "string",
            "description": "Optional: only include posts with this flair text."
          },
          "selfPostsOnly": {
            "title": "Self Posts Only",
            "type": "boolean",
            "description": "Only include text posts.",
            "default": false
          },
          "domainTargets": {
            "title": "Domains to Track",
            "type": "array",
            "description": "Used when Operation Mode is Domain. Add one item per domain.",
            "items": {
              "type": "object",
              "required": [
                "domain"
              ],
              "properties": {
                "domain": {
                  "title": "Domain",
                  "type": "string",
                  "description": "Domain name, for example github.com.",
                  "editor": "textfield",
                  "minLength": 1
                },
                "sort": {
                  "title": "Sort Posts By",
                  "type": "string",
                  "description": "How to order matching posts for this domain.",
                  "enum": [
                    "hot",
                    "new",
                    "top",
                    "rising",
                    "controversial"
                  ],
                  "enumTitles": [
                    "Hot",
                    "New",
                    "Top",
                    "Rising",
                    "Controversial"
                  ]
                },
                "timeframe": {
                  "title": "Timeframe",
                  "type": "string",
                  "description": "Used with Top and Controversial sorting.",
                  "enum": [
                    "hour",
                    "day",
                    "week",
                    "month",
                    "year",
                    "all"
                  ],
                  "enumTitles": [
                    "Past Hour",
                    "Past Day",
                    "Past Week",
                    "Past Month",
                    "Past Year",
                    "All Time"
                  ]
                },
                "maxResults": {
                  "title": "Max Results",
                  "type": "integer",
                  "description": "Maximum posts to collect for this domain.",
                  "editor": "number",
                  "minimum": 1,
                  "maximum": 1000
                }
              }
            }
          },
          "maxResultsPerDomain": {
            "title": "Default Max Results per Domain",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Fallback max posts for Domain targets that do not set their own limit.",
            "default": 500
          },
          "includeCommentsMode": {
            "title": "Comment Fetching",
            "enum": [
              "none",
              "all"
            ],
            "type": "string",
            "description": "Optional comment collection for Scrape, Search, and Domain modes.",
            "default": "none"
          },
          "maxTopLevelComments": {
            "title": "Top-Level Comments",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum top-level comments to collect for each post. Use 0 for the maximum supported by Reddit.",
            "default": 50
          },
          "maxRepliesDepth": {
            "title": "Reply Depth",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "How many reply levels to include. 0 means top-level comments only.",
            "default": 3
          },
          "tag": {
            "title": "Tag / Label",
            "type": "string",
            "description": "Optional label added to every output record, for example competitor_research."
          },
          "includeRaw": {
            "title": "Include Raw Source Data",
            "type": "boolean",
            "description": "Include raw source data in each output record. Useful for debugging, but makes outputs much larger.",
            "default": false
          },
          "requestDelayMs": {
            "title": "Request Delay",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Delay between requests in milliseconds.",
            "default": 100
          },
          "customUserAgent": {
            "title": "Custom User-Agent",
            "type": "string",
            "description": "Optional advanced override. Usually not needed."
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Recommended for reliable runs on Apify.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          },
          "proxyCountry": {
            "title": "Proxy Country",
            "enum": [
              "US",
              "CA",
              "MX"
            ],
            "type": "string",
            "description": "Country code to request from Apify Proxy.",
            "default": "US"
          },
          "proxyRotationStrategy": {
            "title": "Proxy Rotation Strategy",
            "enum": [
              "sticky_pool",
              "per_request"
            ],
            "type": "string",
            "description": "How proxy sessions are assigned across requests.",
            "default": "sticky_pool"
          },
          "proxyPoolSize": {
            "title": "Proxy Pool Size",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Used with Sticky pool. Larger values spread parallel work across more sessions.",
            "default": 10
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}