{
  "openapi": "3.0.1",
  "info": {
    "title": "Skool Posts, Comments & Members Scraper — Leads (No Login)",
    "description": "Scrape Skool posts, full comment threads and members with no login — keyword search, date filters, reply trees, email & social lead enrichment, only-new monitoring. Clean JSON/CSV/Excel export. Structured error rows, never failed runs. Works with AI agents via MCP.",
    "version": "0.0",
    "x-build-id": "ASIncsl7hq1ZAUghi"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vnx0~posts-comments-members/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vnx0-posts-comments-members",
        "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~posts-comments-members/runs": {
      "post": {
        "operationId": "runs-sync-vnx0-posts-comments-members",
        "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~posts-comments-members/run-sync": {
      "post": {
        "operationId": "run-sync-vnx0-posts-comments-members",
        "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"
          },
          "mode": {
            "title": "Scrape mode",
            "enum": [
              "posts",
              "comments",
              "members",
              "profiles"
            ],
            "type": "string",
            "description": "\"Posts\" walks the community feed. \"Comments\" fetches full comment threads with nested replies. \"Members\" harvests members from the directory and from post/comment authors, with optional email enrichment. \"Profiles\" looks up individual profiles by handle or id.",
            "default": "posts"
          },
          "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. Used by the posts, comments and members modes. When empty, the Actor falls back to the example community shown in the prefill.",
            "items": {
              "type": "string"
            }
          },
          "postIds": {
            "title": "Post ids or URLs (comments mode)",
            "type": "array",
            "description": "Specific posts to fetch comment threads for, as 32-character post ids or full post URLs. Leave empty to pull threads from the newest posts of the community feed instead.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "profiles": {
            "title": "Profiles to look up (profiles mode)",
            "type": "array",
            "description": "Skool users to fetch public profile records for, as handles (\"nateherk\" or \"@nateherk\"), profile URLs, or 32-character user ids.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "keywords": {
            "title": "Keyword filter (posts mode)",
            "type": "array",
            "description": "Keep only posts whose title or content contains at least one of these keywords (case-insensitive, matched in the Actor). Empty means keep everything.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "sinceDate": {
            "title": "Only posts created on or after",
            "type": "string",
            "description": "Optional date filter for posts mode, as \"YYYY-MM-DD\" or a full ISO date. Posts created before this date are skipped.",
            "default": ""
          },
          "oneRowPerComment": {
            "title": "One row per comment",
            "type": "boolean",
            "description": "Comments mode output shape. Off (default) emits one row per thread with replies nested inside it. On emits one flat row per comment and reply, with depth and parent fields.",
            "default": false
          },
          "enrichLeads": {
            "title": "Email & lead enrichment",
            "type": "boolean",
            "description": "For members and profiles with a personal website, crawl the site for a public email address, verify its domain has an MX record, and add email, emailSource and leadConfidence to the row. Only found emails are charged (as enriched-lead events).",
            "default": false
          },
          "monitoringMode": {
            "title": "Monitoring mode (only new)",
            "type": "boolean",
            "description": "When enabled, watermarks in the run's key-value store make this run return only items that were not already delivered: new posts, new comments per thread, and new members. Ideal for scheduled tasks.",
            "default": false
          },
          "maxPosts": {
            "title": "Max posts",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Safety cap on delivered post rows (posts mode) or on threads pulled from the feed (comments mode).",
            "default": 25
          },
          "maxComments": {
            "title": "Max comments",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Safety cap on delivered comment nodes (comments plus replies) per run.",
            "default": 500
          },
          "maxMembers": {
            "title": "Max members",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Safety cap on delivered member rows per run (including members harvested from post and comment authors).",
            "default": 100
          },
          "maxProfiles": {
            "title": "Max profiles",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Safety cap on delivered profile rows per run.",
            "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 lead-enrichment crawls. 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}