{
  "openapi": "3.0.1",
  "info": {
    "title": "Skool Classroom Videos Scraper",
    "description": "Skool Classroom Videos Scraper exports the classroom of public Skool communities: every course, section and lesson with title, text, resources, video link, length, thumbnail, playable stream of Skool-hosted videos, transcript and optional MP4 download. No login.",
    "version": "1.0",
    "x-build-id": "n3tWpDmQkxxpVq9Yt"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~skool-classroom-videos-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-skool-classroom-videos-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/neuro-scraper~skool-classroom-videos-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-skool-classroom-videos-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/neuro-scraper~skool-classroom-videos-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-skool-classroom-videos-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": {
          "startUrls": {
            "title": "Communities, classrooms, courses or lessons",
            "type": "array",
            "description": "Community names or links: ai-automation-society, https://www.skool.com/ai-automation-society/classroom, a course https://www.skool.com/ai-automation-society/classroom/3d31807e or one lesson ...?md=<lesson id>.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max rows in total (0 = no limit)",
            "minimum": 0,
            "type": "integer",
            "description": "Stop the run after this many rows (lessons, plus posts / members when turned on).",
            "default": 50
          },
          "lessonsPerCourse": {
            "title": "Max lessons per course (0 = all)",
            "minimum": 0,
            "type": "integer",
            "description": "Lessons kept per course, in course order.",
            "default": 0
          },
          "includeLocked": {
            "title": "List locked lessons",
            "type": "boolean",
            "description": "Locked (members-only) lessons show only their title to visitors; turn on to list them with needs_auth = true.",
            "default": false
          },
          "resolveMedia": {
            "title": "Resolve Skool-hosted videos",
            "type": "boolean",
            "description": "For lessons with a video hosted on Skool, read the playable stream link, length, aspect ratio and thumbnail (one extra page per such lesson).",
            "default": true
          },
          "maxMediaResolves": {
            "title": "Max hosted videos to resolve (0 = no limit)",
            "minimum": 0,
            "type": "integer",
            "description": "Stop resolving Skool-hosted videos after this many (the rest keep their lesson data).",
            "default": 0
          },
          "includeTranscript": {
            "title": "Include transcripts",
            "type": "boolean",
            "description": "Text of the captions of Skool-hosted videos (when the video has captions).",
            "default": false
          },
          "downloadVideos": {
            "title": "Download Skool-hosted videos (MP4)",
            "type": "boolean",
            "description": "Save Skool-hosted lesson videos as MP4 (smallest quality) in the run's key-value store. Videos on Loom, YouTube, Vimeo or Wistia are returned as links.",
            "default": false
          },
          "maxVideoMinutes": {
            "title": "Max video length to download (minutes)",
            "minimum": 0,
            "type": "integer",
            "description": "Longer videos are not downloaded (0 = no limit).",
            "default": 60
          },
          "storeName": {
            "title": "Storage name for downloads (optional)",
            "type": "string",
            "description": "Save downloaded videos in a named key-value store that is kept after the run (letters, digits, dashes). Empty = the run's own store."
          },
          "delayBetweenRequests": {
            "title": "Pause between requests (ms, 0 = automatic)",
            "minimum": 0,
            "maximum": 30000,
            "type": "integer",
            "description": "A fixed pause before each request in milliseconds. 0 = a short automatic pause.",
            "default": 0
          },
          "lessonsSince": {
            "title": "Only lessons / posts created since",
            "type": "string",
            "description": "YYYY-MM-DD - only lessons (and posts) created on or after this date."
          },
          "monitorMode": {
            "title": "Only new lessons (monitor mode)",
            "type": "boolean",
            "description": "Remember the lessons of each community in a named key-value store and save only lessons not seen in earlier runs (is_new = true).",
            "default": false
          },
          "tab": {
            "title": "What to scrape",
            "enum": [
              "classroom",
              "community"
            ],
            "type": "string",
            "description": "Classroom lessons, or the community's posts instead.",
            "default": "classroom"
          },
          "scrapePosts": {
            "title": "Also scrape community posts",
            "type": "boolean",
            "description": "Add the community's posts (30 per page) next to the lessons.",
            "default": false
          },
          "maxPosts": {
            "title": "Max posts per community",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Posts kept per community when posts are scraped.",
            "default": 30
          },
          "includeComments": {
            "title": "Include comments of posts",
            "type": "boolean",
            "description": "Add the comments (with replies) of each post.",
            "default": false
          },
          "commentsLimit": {
            "title": "Max comments per post",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Top-level comments kept per post (25 per page).",
            "default": 20
          },
          "scrapeMembers": {
            "title": "Also scrape members",
            "type": "boolean",
            "description": "Add the community's members (30 per page).",
            "default": false
          },
          "maxMembers": {
            "title": "Max members per community",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Members kept per community when members are scraped.",
            "default": 100
          },
          "maxConcurrency": {
            "title": "Parallel pages",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many pages are read at the same time.",
            "default": 4
          },
          "skoolUrl": {
            "title": "Alias of startUrls",
            "type": "string",
            "description": "Alias."
          },
          "itemStartDate": {
            "title": "Alias of lessonsSince",
            "type": "string",
            "description": "Alias."
          },
          "postsSince": {
            "title": "Alias of lessonsSince",
            "type": "string",
            "description": "Alias."
          },
          "requestConcurrency": {
            "title": "Alias of maxConcurrency",
            "type": "integer",
            "description": "Alias."
          },
          "minConcurrency": {
            "title": "Ignored (kept for old inputs)",
            "type": "integer",
            "description": "Alias."
          },
          "downloadSkoolSelfHostedvideos": {
            "title": "Alias of downloadVideos",
            "type": "boolean",
            "description": "Alias."
          },
          "outputMode": {
            "title": "Alias: downloadVideo = downloadVideos",
            "type": "string",
            "description": "Alias."
          },
          "scrapeComments": {
            "title": "Alias of includeComments",
            "type": "boolean",
            "description": "Alias."
          },
          "maxCommentsPerPost": {
            "title": "Alias of commentsLimit",
            "type": "integer",
            "description": "Alias."
          },
          "scrapeClassroom": {
            "title": "Classroom on/off",
            "type": "boolean",
            "description": "Alias."
          },
          "includeMedia": {
            "title": "Alias of resolveMedia",
            "type": "boolean",
            "description": "Alias."
          },
          "proxy": {
            "title": "Alias of proxyConfiguration",
            "type": "object",
            "description": "Alias."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Residential proxy is the default.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}