# Skool Classroom Course Tree: Modules of a Community

**Use case:** 

Walk every level of a Skool classroom and export one row per course, set and module with depth, path and access flags.

## Input

```json
{
  "mode": "courseTree",
  "communityUrls": [
    "ai-automation-agency"
  ],
  "maxDepth": 5,
  "includeLessons": true,
  "includeInaccessible": true,
  "includeDescription": true,
  "flattenTree": true,
  "maxCoursesPerCommunity": 10,
  "maxResults": 300,
  "includeRaw": false,
  "sameDomainDelaySecs": 0.3,
  "requestTimeoutSecs": 30,
  "runBudgetSecs": 300,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

## Output

```json
{
  "recordType": {
    "label": "Record type",
    "format": "string"
  },
  "id": {
    "label": "Id",
    "format": "string"
  },
  "slug": {
    "label": "Slug",
    "format": "string"
  },
  "groupId": {
    "label": "Group id",
    "format": "string"
  },
  "groupSlug": {
    "label": "Group slug",
    "format": "string"
  },
  "groupName": {
    "label": "Group name",
    "format": "string"
  },
  "url": {
    "label": "Url",
    "format": "string"
  },
  "unitType": {
    "label": "Unit type",
    "format": "string"
  },
  "parentId": {
    "label": "Parent id",
    "format": "string"
  },
  "rootId": {
    "label": "Root id",
    "format": "string"
  },
  "depth": {
    "label": "Depth",
    "format": "integer"
  },
  "path": {
    "label": "Path",
    "format": "array"
  },
  "title": {
    "label": "Title",
    "format": "string"
  },
  "desc": {
    "label": "Desc",
    "format": "string"
  },
  "descPlain": {
    "label": "Desc plain",
    "format": "string"
  },
  "coverImage": {
    "label": "Cover image",
    "format": "string"
  },
  "videoId": {
    "label": "Video id",
    "format": "string"
  },
  "videoUrl": {
    "label": "Video url",
    "format": "string"
  },
  "videoThumbnail": {
    "label": "Video thumbnail",
    "format": "string"
  },
  "videoLenMs": {
    "label": "Video len ms",
    "format": "integer"
  },
  "attachments": {
    "label": "Attachments",
    "format": "array"
  },
  "numModules": {
    "label": "Num modules",
    "format": "integer"
  },
  "privacy": {
    "label": "Privacy",
    "format": "integer"
  },
  "hasAccess": {
    "label": "Has access",
    "format": "integer"
  },
  "minAccessLevel": {
    "label": "Min access level",
    "format": "integer"
  },
  "state": {
    "label": "State",
    "format": "integer"
  },
  "isPublic": {
    "label": "Is public",
    "format": "boolean"
  },
  "author": {
    "label": "Author",
    "format": "object"
  },
  "selectedModule": {
    "label": "Selected module",
    "format": "string"
  },
  "hasChildren": {
    "label": "Has children",
    "format": "boolean"
  },
  "childCount": {
    "label": "Child count",
    "format": "integer"
  },
  "children": {
    "label": "Children",
    "format": "array"
  },
  "scrapedAt": {
    "label": "Scraped at",
    "format": "string"
  },
  "sourceUrl": {
    "label": "Source url",
    "format": "string"
  },
  "status": {
    "label": "Status",
    "format": "string"
  },
  "error": {
    "label": "Error",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Skool Classroom Scraper - Course Tree, Events, Leaderboard Actor is ready to run with the inputs already set for "Skool Classroom Course Tree: Modules of a Community". [Sign up or log in](https://console.apify.com/create-task-from-example/NGqMbykBIDCY8xweH) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Skool Classroom Course Tree: Modules of a Community" task

The Skool Classroom Scraper - Course Tree, Events, Leaderboard Actor will start running based on the input automatically. You can also change all the input fields, like mode, communities, and more, to match your specific use case.

### 3. Receive the "Skool Classroom Course Tree: Modules of a Community" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as record type, id, slug, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Skool Classroom Course Tree: Modules of a Community" task via API](https://apify.com/ai-lead-gen-tools/skool-classroom.md).

## FAQ

### Which communities can this task read?

Only communities whose classroom is open. If /classroom redirects to /about, the dataset carries one diagnostic row with status no-courses instead of courses.

### How is the nesting rebuilt from the rows?

Each row carries depth, path, parentId and rootId, so the tree can be reassembled. flattenTree keeps one flat row per unit.

### What happens with units I cannot open?

They are still exported and marked with hasAccess 0 and minAccessLevel, so gaps in the export are visible instead of silent.

### How do I keep the run cheap?

maxCoursesPerCommunity and maxDepth cap the crawl, and runBudgetSecs stops it before it overspends.

## About this Actor

This example demonstrates how to use [Skool Classroom Scraper - Course Tree, Events, Leaderboard](https://apify.com/ai-lead-gen-tools/skool-classroom.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/ai-lead-gen-tools/skool-classroom.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/ai-lead-gen-tools/skool-classroom.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
