# Skool Classroom Scraper - Course Tree, Events, Leaderboard (`ai-lead-gen-tools/skool-classroom`) Actor

\[💰$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.

- **URL**: https://apify.com/ai-lead-gen-tools/skool-classroom.md
- **Developed by:** [Vladimir Che](https://apify.com/ai-lead-gen-tools) (community)
- **Categories:** Social media, Marketing, Education
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.02 / 1,000 course-scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

## Skool Classroom Scraper

Reads the classroom of any public Skool community: the course tree down to every module, the calendar, and the points leaderboard. No login, no cookies, no Skool API key.

### What you get

One row per item, told apart by `recordType`.

| Row type | What is in it |
|---|---|
| `course` | A course tree node: `id`, `slug`, `unitType`, `parentId`, `rootId`, `depth`, `path`, `title`, `desc`, `descPlain`, `coverImage`, `videoId`, `videoUrl`, `videoLenMs`, `numModules`, `privacy`, `hasAccess`, `state`, `isPublic`, `author` |
| `event` | A calendar entry: `id`, `title`, `descPlain`, `startTime`, `endTime`, `timezone`, `location`, `occurrenceId`, `hasAccess`, `reminderDisabled` |
| `leaderboard` | A points row: `rank`, `points`, `leaderboardType`, plus `user` with name, bio, location, timezone, avatars, social links and gamification stats |

Every row also carries `recordType`, `groupId`, `groupSlug`, `groupName`, `url`, `scrapedAt`, `sourceUrl` and `status`. The field set is identical on every row of every run, so unknown values are `null` and never missing.

A real course row, collected from a public community:

```json
{
  "recordType": "course",
  "id": "9026fc34ad51449fb33c91a359de032f",
  "slug": "c21a0cc1",
  "groupId": "0cd19d7ff2af4f79ab9be556630d71d0",
  "groupSlug": "ai-automation-agency",
  "groupName": "AI Automation Agency Ninjas",
  "url": "https://www.skool.com/ai-automation-agency/classroom/c21a0cc1",
  "unitType": "course",
  "parentId": null,
  "rootId": "9026fc34ad51449fb33c91a359de032f",
  "depth": 0,
  "path": null,
  "title": "Prince Charming AI Challenge",
  "desc": "A video masterclass that walks you through, step-by-step, how to build your new AI profit centre and use AI in a way that has people begging to work with you...",
  "descPlain": "A video masterclass that walks you through, step-by-step, how to build your new AI profit centre and use AI in a way that has people begging to work with you...",
  "coverImage": "https://assets.skool.com/f/0cd19d7ff2af4f79ab9be556630d71d0/a468b06d8f2e443892b21496dc345c428405adb781ab4fd7b62e72973311656c",
  "videoId": null,
  "videoUrl": null,
  "videoThumbnail": null,
  "videoLenMs": null,
  "attachments": null,
  "numModules": 1,
  "privacy": 0,
  "hasAccess": 1,
  "minAccessLevel": null,
  "state": 2,
  "isPublic": true,
  "author": {
    "id": "f04537f035d64ea7a97a4d09acf11d3d",
    "name": null,
    "bio": null
  },
  "selectedModule": null,
  "hasChildren": true,
  "childCount": null,
  "startTime": null,
  "endTime": null,
  "timezone": null,
  "location": null,
  "locationRaw": null,
  "reminderDisabled": null,
  "occurrenceId": null,
  "leaderboardType": null,
  "rank": null,
  "points": null,
  "user": null,
  "children": null,
  "scrapedAt": "2026-11-15T02:19:41.672Z",
  "sourceUrl": "https://www.skool.com/ai-automation-agency/classroom",
  "status": "ok",
  "error": null,
  "raw": null
}
```

### How to use it

1. Put the community slugs into `communityUrls`. A bare slug such as `ai-automation-agency` and a full link both work, and you can mix them.
2. Pick `mode`. Start with `courses`: one request per community tells you whether a tree walk is worth the budget.
3. Set `maxResults` while you explore. A community with 25 root courses and deep trees fills a dataset quickly.
4. Run it. The input below reads one community and stops at a hundred rows:

```json
{
  "mode": "courses",
  "communityUrls": ["ai-automation-agency"],
  "maxResults": 100,
  "runBudgetSecs": 300,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}
```

5. Read the `SUMMARY` key-value record when the run finishes: it counts communities read, rows pushed, requests made and failures, so you see at once whether a community was blocked or simply empty.

| Field | Default | What it does |
|---|---|---|
| `mode` | `all` | Which views to read: `courses`, `courseTree`, `events`, `leaderboard` or `all` |
| `communityUrls` | none | Slugs or full links of public communities. Required: the actor has nothing to read without it |
| `courseNames` | none | Keep only courses whose title matches one of these names, before the tree is walked |
| `maxDepth` | `5` | How deep the local tree walk goes. `0` keeps only the roots |
| `includeLessons` | `true` | Emit leaf modules. Off keeps the branches and drops the leaves |
| `includeInaccessible` | `true` | Keep nodes with `hasAccess: 0`, whose titles and descriptions are public but whose content is locked |
| `includeDescription` | `true` | Keep `desc` next to `descPlain`. Off keeps only the readable text |
| `flattenTree` | `true` | One row per node with `parentId` and `path`. Off nests children under their parent |
| `searchQuery` | none | Client-side match on the title and the readable description of collected rows |
| `maxCoursesPerCommunity` | `0` | Cap on root courses read per community. Zero means no cap |
| `maxResults` | `0` | Cap on the whole dataset across communities and views. Zero means no cap |
| `includeRaw` | `false` | Attach the untouched source node under `raw`, which makes rows several times larger |
| `sameDomainDelaySecs` | `0.3` | Minimum gap between two requests to www.skool.com |
| `requestTimeoutSecs` | `30` | Timeout of one request. Classroom pages are 320 to 400 KB, so keep it high |
| `runBudgetSecs` | none | Soft time limit. At the limit the run starts no new request and finishes with what it has |
| `proxyConfiguration` | off | Apify proxy for www.skool.com, residential group recommended for wide runs |

#### Ready-made tasks

Four saved inputs, one per question this actor answers. Each one shows only the fields it needs, and each returns data on its first run.

| Task | Input | Question it answers |
|---|---|---|
| [Skool Classroom Scraper: Course Tree and Modules](https://apify.com/ai-lead-gen-tools/skool-classroom/examples/skool-classroom-course-tree) | `mode: courseTree`, `communityUrls`, `maxDepth` | what a community teaches, level by level, with depth, path and access flags |
| [Skool Calendar Scraper: Events and Calls](https://apify.com/ai-lead-gen-tools/skool-classroom/examples/skool-classroom-events) | `mode: events`, `communityUrls` | every event of a community calendar with start time, timezone and location |
| [Skool Leaderboard Scraper: Ranked Members](https://apify.com/ai-lead-gen-tools/skool-classroom/examples/skool-classroom-leaderboard) | `mode: leaderboard`, `communityUrls` | who actually engages, ranked by points, with member profiles |
| [Skool Course Search: Find Courses by Keyword](https://apify.com/ai-lead-gen-tools/skool-classroom/examples/skool-classroom-course-search) | `mode: courses`, `communityUrls`, `searchQuery` | only the courses of a classroom whose title, description or slug matches a keyword |

### Modes

| `mode` | Requests | Rows |
|---|---|---|
| `courses` | 1 per community | one per root course, with its `numModules` |
| `courseTree` | 1 per community for the list, then 1 per root course | the whole tree, flat or nested |
| `events` | 2 per community | one per calendar event |
| `leaderboard` | 2 per community | one per ranked member |
| `all` | all of the above | everything |

`courseTree` and `all` need the classroom page first, because the root course names live there. `events` and `leaderboard` read it too, for the community id and name.

A single `GET /classroom/<course>` returns the entire subtree, not one level of it. A course Skool counts as 103 modules comes back as 116 nodes in one 437 KB response, two levels deep. Walking a node per request would multiply the cost for nothing, so the actor fetches one page per root course and recurses locally. `maxDepth` cuts the local walk, not the number of requests.

Skool has no `lesson` unit type. A root is `course`, an intermediate grouping is `set`, and a leaf is `module`, so `includeLessons` decides whether leaf modules are emitted.

### Use cases

- Course research - map what every community in a niche teaches, level by level, and compare depth instead of counting titles.
- Community due diligence - check whether a paid community really has a classroom, how many modules it carries and how fresh the calendar is before you subscribe.
- Content calendar mining - export every event of a niche with `startTime` and `timezone`, and see which formats a community runs repeatedly.
- Creator benchmarking - read the points leaderboard and see how many members actually engage, not just how many joined.

### Cost

The actor charges `$0.02 per 1K rows`, one row being one dataset item. Charged events are `course-scraped`, `event-scraped` and `leaderboard-entry-scraped`, and each row of `status: ok` is charged exactly once. The run itself is charged once as `apify-actor-start`.

Not charged:

- Diagnostic rows, which are the rows with `status` other than `ok`: `not-found` when a page came back without a payload, `fetch-failed` when the request failed, `no-courses` when a community has an empty classroom. They exist so a community you asked for cannot silently vanish from the dataset.
- Requests that returned nothing usable.
- Rows dropped by `searchQuery`, `courseNames`, `maxDepth`, `includeLessons` or `maxResults`, because filtering runs before a row is pushed.

Watch the network volume rather than the row count when you plan a wide run: classroom pages are 320 to 400 KB each, and a deep tree is one page per root course. Five communities on a small plan measured one request and 480 KB in total.

### Honest limits

- Skool has no `lesson` unit type and no per-lesson body text in the tree payload. A `module` row carries its title, its cover and its position, not its video transcript.
- Locked content stays locked. For a node a guest cannot open, the payload describes it but the body is missing, so `desc` and `descPlain` are `null` unless you run with `includeInaccessible` and the node is still served.
- The classroom holds no member list. The only people data in the payload is the leaderboard and the `author` of a course, and Skool returns `name` and `bio` only when the profile is public.
- A community without courses is not an error. Skool answers `/classroom` with `allCourses: []` for a community that teaches nothing, so the actor counts it in `communitiesWithoutCourses` in `SUMMARY` and writes one `no-courses` diagnostic row.
- An event title can repeat. One checked community has six calendar rows with the same title and different `occurrenceId` values, one per weekly occurrence. `occurrenceId` is what tells them apart.
- `www.skool.com` sits behind AWS WAF. It answers HTTP 202 with a JavaScript challenge to requests that look like a browser navigation, and HTTP 403 to everything from an address used too heavily, which is roughly 500 requests. The actor sends no browser `Accept` header for that reason. When a page still comes back blocked, the run logs a warning that names the proxy group to retry with.
- `www.skool.com` has no documented quota. Everything above is measured, not promised.

### FAQ

**Do I need an Apify proxy for this actor?**

For a single community, no. The classroom is public and reads fine from the platform address. For `all` over many communities the run walks hundreds of pages, and Skool starts answering 403 from one address, so attach an Apify residential proxy. The input prefill already has one.

**Why does the run warn about a page with no `__NEXT_DATA__` payload?**

That is the WAF challenge page, not a broken course. Raise `sameDomainDelaySecs`, or retry with the residential proxy group. The warning in the log says which of the two applies to your run.

**What does `descPlain` add if I already have `desc`?**

`desc` is what Skool sent, and for newer courses that is a `v2` document such as `[v2][{"type":"paragraph","content":[...]}]`. `descPlain` is the same text with the markup parsed away and the links kept inline. Turn `includeDescription` off to keep only `descPlain` and make rows smaller.

**How many requests does a tree walk cost?**

One request per root course, no matter how deep the tree is. The whole subtree of a root arrives in one response. `maxDepth` and `includeLessons` trim the output, not the traffic.

**Why is `path` null on a root course?**

`path` lists the ancestors of a node by slug, and a root has none. Use `rootId` to group a subtree, `parentId` to rebuild it, and `depth` to place a node in it.

**Can I subscribe to new courses of a community?**

Yes, put the run on a schedule and diff the dataset on `id`. Keep `mode: courses` for that, because it costs one request per community and already carries `numModules`.

**Does the actor read posts, comments or member profiles?**

No. It reads the classroom, the calendar and the leaderboard, which is what a public community exposes without a login. Posts and the member directory need an account.

**What happens when the run budget is reached?**

The run stops starting new requests and finishes with the rows it already has. `SUMMARY` marks the budget as exhausted, so a partial dataset is never mistaken for a complete one.

### Related actors

- [Skool Communities Scraper](https://apify.com/store/actors/skool-communities) reads the public Skool directory: price, members, activity, owner and social links of every community. Use it to pick the communities, then point this actor at the ones worth reading.

### Changelog

- 2026-11-16: four tasks published, listed under `Ready-made tasks`.
- 2026-11-15: the run warns and names the proxy group to retry with when Skool answers 403 or a challenge page instead of a payload.
- 2026-11-15: page size and network volume documented per request, so a wide run can be budgeted in megabytes.
- 2026-11-14: `Modes` documents that `courseTree` and `all` read the classroom page first.
- 2026-11-13: first public version with `courses`, `courseTree`, `events`, `leaderboard` and `all`.

# Actor input Schema

## `mode` (type: `string`):

`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.

## `communityUrls` (type: `array`):

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.

## `courseNames` (type: `array`):

Limit the tree to these course names, for example `c21a0cc1`. Leave empty to walk every root course. Ignored in `courses`, `events` and `leaderboard` modes.

## `maxDepth` (type: `integer`):

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.

## `includeLessons` (type: `boolean`):

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.

## `includeInaccessible` (type: `boolean`):

Keep nodes with `hasAccess: 0`. Those are locked units: their titles and descriptions are still public, their content is not.

## `includeDescription` (type: `boolean`):

Emit `desc` as stored by Skool, next to the plain-text `descPlain`. Turn this off to keep the dataset small.

## `flattenTree` (type: `boolean`):

Emit one row per node with `parentId`, `rootId`, `depth` and `path`, instead of nested `children[]`. The nested form is one row per root course.

## `searchQuery` (type: `string`):

Case-insensitive substring match over the node title and description. Applied to the rows already collected, not to a Skool search endpoint.

## `maxCoursesPerCommunity` (type: `integer`):

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.

## `maxResults` (type: `integer`):

Cap on the whole dataset across all communities and view types. Zero means no cap.

## `includeRaw` (type: `boolean`):

Attach the untouched source node to every row under `raw`.

## `sameDomainDelaySecs` (type: `number`):

Minimum gap between two requests to www.skool.com. Raise it if Skool starts answering with a challenge page.

## `requestTimeoutSecs` (type: `integer`):

Timeout of a single request. Classroom pages are 320 to 400 KB, so a very low value cuts them off.

## `runBudgetSecs` (type: `integer`):

Soft limit in seconds. When it is reached, the run stops starting new requests and finishes with what it has.

## `proxyConfiguration` (type: `object`):

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.

## Actor input object example

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

# Actor output Schema

## `dataset` (type: `string`):

One row per course tree node, calendar event or leaderboard entry, told apart by `recordType`. Course rows carry the unit type, the parent and root id, the depth and the path from the root, the description with a plain-text twin, the module video link and length, and the access flags. Event rows carry both timestamps, the timezone and the location after both JSON layers are parsed. Leaderboard rows carry rank, points and the member profile with its gamification stats. Every field is always present — unknown values are null, never omitted, so the column set is stable between runs and between modes.

## `summary` (type: `string`):

Counters for the run: mode, communities read and communities without courses, rows per record type, courses listed and tree roots requested, requests per page kind, failures, rows dropped by the search filter, the tree settings, the budget state and how many events were charged.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mode": "courses",
    "communityUrls": [
        "ai-automation-agency"
    ],
    "maxResults": 100,
    "runBudgetSecs": 300,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("ai-lead-gen-tools/skool-classroom").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mode": "courses",
    "communityUrls": ["ai-automation-agency"],
    "maxResults": 100,
    "runBudgetSecs": 300,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("ai-lead-gen-tools/skool-classroom").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mode": "courses",
  "communityUrls": [
    "ai-automation-agency"
  ],
  "maxResults": 100,
  "runBudgetSecs": 300,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call ai-lead-gen-tools/skool-classroom --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ai-lead-gen-tools/skool-classroom"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ZsAdyKSqsCx55y4Hs/builds/0CGRcZyVuM8vM2U1v/openapi.json
