{
  "openapi": "3.0.1",
  "info": {
    "title": "Skool Classroom Scraper - Course Tree, Events, Leaderboard",
    "description": "[💰$0.02/1K] Scrape the Skool classroom of any public community. Returns every course, set and module with depth, path, cover, video and attachments, calendar events with occurrence id, and the points leaderboard with member profiles. One request per course tree. No login.",
    "version": "0.6",
    "x-build-id": "0CGRcZyVuM8vM2U1v"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ai-lead-gen-tools~skool-classroom/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ai-lead-gen-tools-skool-classroom",
        "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/ai-lead-gen-tools~skool-classroom/runs": {
      "post": {
        "operationId": "runs-sync-ai-lead-gen-tools-skool-classroom",
        "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/ai-lead-gen-tools~skool-classroom/run-sync": {
      "post": {
        "operationId": "run-sync-ai-lead-gen-tools-skool-classroom",
        "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": [
          "communityUrls"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "courses",
              "courseTree",
              "events",
              "leaderboard",
              "all"
            ],
            "type": "string",
            "description": "`courses` lists the root courses of every community with one request per community. `courseTree` walks the whole tree: one request per root course, the whole subtree arrives in that single response. `events` reads the calendar. `leaderboard` reads the points leaderboard. `all` runs all four.",
            "default": "all"
          },
          "communityUrls": {
            "title": "Communities",
            "type": "array",
            "description": "Skool community slugs or links, for example `ai-automation-agency` or `https://www.skool.com/ai-automation-agency`. The classroom is public, so no login is needed.",
            "items": {
              "type": "string"
            }
          },
          "courseNames": {
            "title": "Course names",
            "type": "array",
            "description": "Limit the tree to these course names, for example `c21a0cc1`. Leave empty to walk every root course. Ignored in `courses`, `events` and `leaderboard` modes.",
            "items": {
              "type": "string"
            }
          },
          "maxDepth": {
            "title": "Maximum tree depth",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "How deep the tree walk goes. Depth 0 is the root course, depth 1 its first level of children. The whole tree arrives in one request, so this value only trims the output, it does not add requests.",
            "default": 5
          },
          "includeLessons": {
            "title": "Include leaf modules",
            "type": "boolean",
            "description": "Emit the leaves of the tree. Skool labels them `unitType: module`, there is no `lesson` type. When off, only nodes with children are kept: the course itself and its sets.",
            "default": true
          },
          "includeInaccessible": {
            "title": "Include nodes you cannot open",
            "type": "boolean",
            "description": "Keep nodes with `hasAccess: 0`. Those are locked units: their titles and descriptions are still public, their content is not.",
            "default": true
          },
          "includeDescription": {
            "title": "Include full description",
            "type": "boolean",
            "description": "Emit `desc` as stored by Skool, next to the plain-text `descPlain`. Turn this off to keep the dataset small.",
            "default": true
          },
          "flattenTree": {
            "title": "Flatten the tree",
            "type": "boolean",
            "description": "Emit one row per node with `parentId`, `rootId`, `depth` and `path`, instead of nested `children[]`. The nested form is one row per root course.",
            "default": true
          },
          "searchQuery": {
            "title": "Search text",
            "type": "string",
            "description": "Case-insensitive substring match over the node title and description. Applied to the rows already collected, not to a Skool search endpoint."
          },
          "maxCoursesPerCommunity": {
            "title": "Maximum root courses per community",
            "minimum": 0,
            "type": "integer",
            "description": "Cap on the root courses taken from one community. Zero means no cap. A community can have 25 root courses, and each one costs a tree walk.",
            "default": 0
          },
          "maxResults": {
            "title": "Maximum rows",
            "minimum": 0,
            "type": "integer",
            "description": "Cap on the whole dataset across all communities and view types. Zero means no cap.",
            "default": 0
          },
          "includeRaw": {
            "title": "Include raw payload",
            "type": "boolean",
            "description": "Attach the untouched source node to every row under `raw`.",
            "default": false
          },
          "sameDomainDelaySecs": {
            "title": "Pause between requests",
            "minimum": 0,
            "maximum": 60,
            "type": "number",
            "description": "Minimum gap between two requests to www.skool.com. Raise it if Skool starts answering with a challenge page.",
            "default": 0.3
          },
          "requestTimeoutSecs": {
            "title": "Request timeout",
            "minimum": 5,
            "maximum": 180,
            "type": "integer",
            "description": "Timeout of a single request. Classroom pages are 320 to 400 KB, so a very low value cuts them off.",
            "default": 30
          },
          "runBudgetSecs": {
            "title": "Run budget",
            "minimum": 30,
            "maximum": 3600,
            "type": "integer",
            "description": "Soft limit in seconds. When it is reached, the run stops starting new requests and finishes with what it has."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy for www.skool.com. Off by default: the classroom is readable directly. Skool sits behind AWS WAF and answers HTTP 403 or a challenge page once an address is used heavily; the run then warns and tells you to retry with an Apify residential proxy. Small runs work without a proxy, wide runs over many communities do not.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}