{
  "openapi": "3.0.1",
  "info": {
    "title": "Skool Communities, Members & Classroom Scraper",
    "description": "Scrape Skool.com — 10 modes: discover, community details, posts, comments, members, events, classroom, profiles, leaderboards, and in-community search. Full author and member profiles with social links. HTTP-only, no login required. $3 per 1,000 results.",
    "version": "1.0",
    "x-build-id": "NxIgMuteiqAvMKgg7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sourabhbgp~skool-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sourabhbgp-skool-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/sourabhbgp~skool-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sourabhbgp-skool-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/sourabhbgp~skool-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sourabhbgp-skool-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "discover",
              "community",
              "posts",
              "comments",
              "members",
              "events",
              "classroom",
              "profile",
              "leaderboards",
              "search"
            ],
            "type": "string",
            "description": "What to scrape: discover communities, community details, posts, or posts with comments.",
            "default": "discover"
          },
          "query": {
            "title": "Search Query",
            "type": "string",
            "description": "Search term for discover mode. Leave empty for top-ranked communities."
          },
          "communityUrl": {
            "title": "Community URL or Slug",
            "type": "string",
            "description": "Skool community URL or slug. Required for community, posts, and comments modes. Example: https://www.skool.com/ai-automation-society or just ai-automation-society"
          },
          "username": {
            "title": "Skool Username (with or without @)",
            "type": "string",
            "description": "Required for profile mode. Example: nateherk or @nateherk."
          },
          "maxResults": {
            "title": "Max Results (Discover)",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum communities to return in discover mode. Skool returns up to 30 per page across 34 pages (1000 total cap).",
            "default": 100
          },
          "maxPosts": {
            "title": "Max Posts",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum posts to scrape in posts or comments mode.",
            "default": 100
          },
          "maxCommentsPerPost": {
            "title": "Max Top-Level Comments Per Post",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum top-level comments to fetch per post in comments mode. Replies on each comment are capped separately by maxRepliesPerComment.",
            "default": 100
          },
          "maxRepliesPerComment": {
            "title": "Max Replies Per Comment",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum replies to keep on each comment in comments mode. Applied recursively — each comment in the tree caps its replies array at this value. Default 50 covers typical posts; raise for highly active threads.",
            "default": 50
          },
          "memberTab": {
            "title": "Member Tab",
            "enum": [
              "member",
              "admin",
              "online"
            ],
            "type": "string",
            "description": "Which members to fetch: all, admins, or online.",
            "default": "member"
          },
          "maxMembers": {
            "title": "Max Members",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Maximum members to return. Skool exposes all members of a public community across paginated /-/members pages (30/page). Capped at 50000 to prevent runaway runs.",
            "default": 1000
          },
          "channelId": {
            "title": "Channel UUID (Posts mode)",
            "type": "string",
            "description": "Optional. Filter posts to a specific channel within the community. Channel UUIDs come from currentGroup.metadata.labels (comma-separated string on the /about page)."
          },
          "leaderboardWindow": {
            "title": "Leaderboard Window",
            "enum": [
              "allTime",
              "past7",
              "past30",
              "all"
            ],
            "type": "string",
            "description": "Time window: allTime, past7, past30, or all (returns all three windows + group levels).",
            "default": "all"
          },
          "searchQuery": {
            "title": "Search Query (within community)",
            "type": "string",
            "description": "Required for search mode. Searches posts, members, or courses inside the given community."
          },
          "searchType": {
            "title": "Search Type",
            "enum": [
              "posts",
              "members",
              "courses"
            ],
            "type": "string",
            "description": "What to search inside the community. Note: 'courses' returns LESSONS matching the query, grouped by their parent course (each record has both lessonTitle and courseTitle).",
            "default": "posts"
          },
          "lessonsPerCourse": {
            "title": "Max Lessons Per Course",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum lessons (modules) to return per course in classroom mode. Each course typically has 1-100 modules.",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Optional. By default the actor auto-tiers direct → datacenter → residential, falling through on blocks. Override here to force a specific tier (e.g. for private communities or rate-limited workloads).",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}