{
  "openapi": "3.0.1",
  "info": {
    "title": "Skool Classroom Archiver — Videos & Transcripts (No Login)",
    "description": "Archive any Skool classroom with no login: courses, lesson trees, attachments, signed Mux video handoff and FREE transcripts, plus per-lesson markdown and RAG chunks for AI pipelines. Only-new monitoring, structured errors, never failed runs. Works with AI agents via MCP.",
    "version": "0.0",
    "x-build-id": "AdUvKJsvpWiTHPSW4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vnx0~classroom-archiver/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vnx0-classroom-archiver",
        "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/vnx0~classroom-archiver/runs": {
      "post": {
        "operationId": "runs-sync-vnx0-classroom-archiver",
        "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/vnx0~classroom-archiver/run-sync": {
      "post": {
        "operationId": "run-sync-vnx0-classroom-archiver",
        "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": {
          "action": {
            "title": "Action",
            "enum": [
              "scrape",
              "system:health"
            ],
            "type": "string",
            "description": "What this run should do. \"system:health\" performs a cheap end-to-end self-check that returns one deterministic status row and makes no requests to skool.com.",
            "default": "scrape"
          },
          "communityUrls": {
            "title": "Community URLs or slugs",
            "type": "array",
            "description": "Public Skool community URLs or bare slugs, e.g. \"https://www.skool.com/ai-automation-society\" or \"ai-automation-society\". No login is required for public communities. When empty, the Actor falls back to the example community shown in the prefill.",
            "items": {
              "type": "string"
            }
          },
          "courseNames": {
            "title": "Courses to archive (names or title match)",
            "type": "array",
            "description": "Optional course filter: 8-character course names as used in classroom URLs (e.g. \"7f8b31ca\") or case-insensitive title substrings (e.g. \"n8n\"). Empty means the first \"Max courses\" courses of the catalog.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "includeResources": {
            "title": "Include attachments & links metadata",
            "type": "boolean",
            "description": "Emit one resource row per lesson attachment: external links keep their URL; Skool-hosted files carry name, type and asset id (Skool exposes no public download URL for uploaded files, so rows never fabricate one). File rows cost $2.50/1K on FREE.",
            "default": true
          },
          "includeVideo": {
            "title": "Include video handoff (signed HLS URL)",
            "type": "boolean",
            "description": "Emit a video row with the signed Mux HLS playback URL, poster image, duration and token expiry for every lesson that has a video. The URL is a handoff for your own player or downloader — the Actor does not download video files.",
            "default": true
          },
          "transcripts": {
            "title": "Fetch transcripts (FREE captions → VTT + TXT)",
            "type": "boolean",
            "description": "Download the caption track of each lesson video and stitch the full transcript (VTT + readable text). Charged per started minute of video at $8/1K minutes on FREE; lessons without captions get a free note row and the lesson still succeeds.",
            "default": true
          },
          "exportMode": {
            "title": "AI export",
            "enum": [
              "none",
              "markdown",
              "rag-chunks"
            ],
            "type": "string",
            "description": "Extra AI-ready output. \"None\" delivers the dataset only. \"Markdown\" writes one .md per lesson plus a course bundle .md into the key-value store. \"RAG chunks\" emits timestamped transcript-chunk rows (text, course, lesson, lessonUrl, startSeconds) designed to drop straight into a vector store alongside the dataset.",
            "default": "markdown"
          },
          "onlyNewLessons": {
            "title": "Only new lessons (monitoring)",
            "type": "boolean",
            "description": "When enabled, a per-community watermark in the run's key-value store makes this run deliver only lessons that were not delivered before. Ideal for scheduled tasks that archive a growing classroom.",
            "default": false
          },
          "maxCourses": {
            "title": "Max courses per community",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Safety cap on courses archived per community per run. Course titles from the catalog are matched against \"Courses to archive\" first, then the cap applies.",
            "default": 5
          },
          "maxLessons": {
            "title": "Max lessons per course",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Safety cap on lessons hydrated and delivered per course. Lessons are hydrated one by one (one request each), so this cap directly bounds runtime and transcript spend.",
            "default": 25
          },
          "maxCostPerRun": {
            "title": "Max cost per run (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Optional spending cap for this run in USD. Once reached, the Actor stops producing new billable results and finishes successfully. Failures are never charged.",
            "default": null
          },
          "authToken": {
            "title": "Skool authToken cookie (optional)",
            "type": "string",
            "description": "Optional Skool login cookie to access private communities your account can see. Paste ONLY the authToken cookie value (or \"authToken=...\"). Stored as a secret and never logged. Leave empty for public communities."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings for requests to skool.com and the Mux caption CDN. Public pages usually work without proxies — the default disables Apify Proxy; enable it only if requests get blocked.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}