{
  "openapi": "3.0.1",
  "info": {
    "title": "🔥 Reddit Scraper + Ads Library - Posts [NO COOKIES] ✅",
    "description": "The most complete Reddit scraper on Apify. Extract posts, comments with full reply chains, subreddit metadata, user profiles, AND ads from the Reddit Ads Library - all without API keys, cookies, or login. Built for market researchers, content marketers, and competitive intel teams.",
    "version": "0.0",
    "x-build-id": "xfHx5GTusFVhRuWYi"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/unseenuser~Reddit-Scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-unseenuser-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/unseenuser~Reddit-Scraper/runs": {
      "post": {
        "operationId": "runs-sync-unseenuser-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/unseenuser~Reddit-Scraper/run-sync": {
      "post": {
        "operationId": "run-sync-unseenuser-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": "STEP 1 - What do you want to scrape?",
            "enum": [
              "subreddit_posts",
              "reddit_search",
              "post_comments",
              "subreddit_search",
              "subreddit_info",
              "ads_search",
              "ad_details"
            ],
            "type": "string",
            "description": "Pick one. After you pick, scroll down and only fill the section labelled with the same emoji as your choice. Everything else is ignored.",
            "default": "subreddit_posts"
          },
          "subreddits": {
            "title": "📰 Subreddits",
            "type": "array",
            "description": "REQUIRED FOR: 📰 Subreddit posts, 🔍 Subreddit search, ℹ️ Subreddit info. Paste subreddit names - 'r/SaaS', '/r/SaaS', and 'SaaS' all work.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "📰 Sort order (subreddit posts / search)",
            "enum": [
              "hot",
              "new",
              "top",
              "rising",
              "controversial",
              "best",
              "relevance",
              "comments"
            ],
            "type": "string",
            "description": "How to sort. For 📰 Subreddit posts use hot / new / top / rising. For 🔎 / 🔍 Search use relevance / top / new / comments.",
            "default": "hot"
          },
          "timeFilter": {
            "title": "📰 Time window (only matters for sort = top, controversial, or any search)",
            "enum": [
              "hour",
              "day",
              "week",
              "month",
              "year",
              "all"
            ],
            "type": "string",
            "description": "Reddit only honours this when sort is top / controversial / relevance. Ignored otherwise.",
            "default": "week"
          },
          "searchQueries": {
            "title": "🔎 Search queries",
            "type": "array",
            "description": "REQUIRED FOR: 🔎 Reddit search and 🔍 Subreddit search. Each line runs as a separate search.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "searchScope": {
            "title": "🔎 Search scope (Reddit search only)",
            "enum": [
              "all_reddit",
              "in_subreddit"
            ],
            "type": "string",
            "description": "ONLY USED FOR 🔎 Reddit search. Pick 'All of Reddit' for brand monitoring across the whole site.",
            "default": "all_reddit"
          },
          "searchSubreddit": {
            "title": "🔎 Restrict to subreddit (Reddit search only)",
            "type": "string",
            "description": "Used only when 🔎 Search scope = 'Restrict to one subreddit'. Leave blank otherwise.",
            "default": ""
          },
          "postUrls": {
            "title": "💬 Post URLs",
            "type": "array",
            "description": "REQUIRED FOR: 💬 Post comments. Paste full Reddit post URLs - one per line.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "adSearchQueries": {
            "title": "💰 Ad search queries",
            "type": "array",
            "description": "REQUIRED FOR: 💰 Ads Library search. Each query is one Ads Library lookup. Reddit caps results at ~30 per query.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "adIndustries": {
            "title": "💰 Industry filter (optional)",
            "type": "array",
            "description": "Optional. Allowed values: RETAIL_AND_ECOMMERCE, TECH_B2B, TECH_B2C, EDUCATION, ENTERTAINMENT, GAMING, FINANCIAL_SERVICES, HEALTH_AND_BEAUTY, CONSUMER_PACKAGED_GOODS, EMPLOYMENT, AUTO, TRAVEL, REAL_ESTATE, GAMBLING_AND_FANTASY_SPORTS, POLITICS_AND_GOVERNMENT, OTHER.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "adBudgets": {
            "title": "💰 Budget filter (optional)",
            "type": "array",
            "description": "Optional. Allowed values: LOW, MEDIUM, HIGH.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "adFormats": {
            "title": "💰 Format filter (optional)",
            "type": "array",
            "description": "Optional. Allowed values: IMAGE, VIDEO, CAROUSEL, FREE_FORM.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "adPlacements": {
            "title": "💰 Placement filter (optional)",
            "type": "array",
            "description": "Optional. Allowed values: FEED, COMMENTS_PAGE.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "adObjectives": {
            "title": "💰 Objective filter (optional)",
            "type": "array",
            "description": "Optional. Allowed values: IMPRESSIONS, CLICKS, CONVERSIONS, VIDEO_VIEWABLE_IMPRESSIONS, APP_INSTALLS.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "adIds": {
            "title": "🎯 Ad IDs",
            "type": "array",
            "description": "REQUIRED FOR: 🎯 Ad details. Paste the ad IDs returned by 💰 Ads Library search - one per line.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxPostsPerSubreddit": {
            "title": "⚙️ Max posts per subreddit / per search query",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Cap on posts pulled per subreddit (or per search query). 100 is a good default. Lower = cheaper.",
            "default": 100
          },
          "maxCommentsPerPost": {
            "title": "⚙️ Max comments per post (💬 Post comments only)",
            "minimum": 1,
            "type": "integer",
            "description": "Cap on total comment nodes returned per post. Counts nested replies.",
            "default": 200
          },
          "maxCommentDepth": {
            "title": "⚙️ Max comment depth (💬 Post comments only)",
            "minimum": 0,
            "type": "integer",
            "description": "How deep to follow reply threads. 0 = top-level only. 5 is a good default.",
            "default": 5
          },
          "maxAdsPerSearch": {
            "title": "⚙️ Max ads per query (💰 Ads Library only)",
            "minimum": 1,
            "type": "integer",
            "description": "Reddit's Ads Library natively returns up to ~30 per query. Going higher will not help.",
            "default": 30
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}