{
  "openapi": "3.0.1",
  "info": {
    "title": "Skool Community Directory, Pricing & Member Finder",
    "description": "Browse Skool's public community directory by category, pull pricing and member-count details for communities you already know, and list top members visible on a public community page.",
    "version": "1.0",
    "x-build-id": "tjgDxDV8AsB1A3KHA"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dataspryva~skool-community-directory-pricing-and-member/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dataspryva-skool-community-directory-pricing-and-member",
        "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/dataspryva~skool-community-directory-pricing-and-member/runs": {
      "post": {
        "operationId": "runs-sync-dataspryva-skool-community-directory-pricing-and-member",
        "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/dataspryva~skool-community-directory-pricing-and-member/run-sync": {
      "post": {
        "operationId": "run-sync-dataspryva-skool-community-directory-pricing-and-member",
        "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",
              "getCommunity",
              "getMembers"
            ],
            "type": "string",
            "description": "What to scrape: discover communities from the directory, get details for specific communities, or list visible members.",
            "default": "discover"
          },
          "searchQueries": {
            "title": "Search keywords (mode=discover)",
            "type": "array",
            "description": "Keywords to search the Skool directory for, e.g. [\"ai automation\", \"fitness\"]. Leave empty to browse the selected category and sort order.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Community URLs (mode=getCommunity / getMembers)",
            "type": "array",
            "description": "Skool community URLs, e.g. https://www.skool.com/the-skool-of-life.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "slugs": {
            "title": "Community slugs (mode=getCommunity / getMembers)",
            "type": "array",
            "description": "Community slugs from the Skool URL, e.g. [\"the-skool-of-life\", \"buildwithskool\"]. Alternative to startUrls.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "categorySlug": {
            "title": "Category (mode=discover)",
            "enum": [
              "all",
              "hobbies",
              "music",
              "money",
              "spirituality",
              "tech",
              "health",
              "sports",
              "self_improvement",
              "relationships"
            ],
            "type": "string",
            "description": "Browse one of Skool's nine directory categories, or all categories. Filtering by category also fills the category fields on each community.",
            "default": "all"
          },
          "priceType": {
            "title": "Price (mode=discover)",
            "enum": [
              "all",
              "free",
              "paid",
              "free-trial"
            ],
            "type": "string",
            "description": "Filter communities by membership price: free, paid, or free trial.",
            "default": "all"
          },
          "category": {
            "title": "Category (legacy alias)",
            "enum": [
              "",
              "Technology",
              "Business",
              "Health & Fitness",
              "Arts & Creativity",
              "Education",
              "Gaming",
              "Lifestyle",
              "Finance",
              "Marketing",
              "Other"
            ],
            "type": "string",
            "description": "Deprecated alias for categorySlug kept so saved tasks keep working. categorySlug takes precedence when both are set.",
            "default": ""
          },
          "isFree": {
            "title": "Free communities only (legacy alias)",
            "type": "boolean",
            "description": "Deprecated alias for priceType=free kept so saved tasks keep working. priceType takes precedence when set.",
            "default": false
          },
          "communityType": {
            "title": "Community type (mode=discover)",
            "enum": [
              "all",
              "public",
              "private"
            ],
            "type": "string",
            "description": "Filter the directory by public or private communities.",
            "default": "all"
          },
          "language": {
            "title": "Language (mode=discover)",
            "enum": [
              "all",
              "english",
              "german",
              "spanish",
              "french",
              "chinese",
              "italian",
              "dutch",
              "vietnamese",
              "arabic",
              "hebrew",
              "danish",
              "romanian",
              "turkish",
              "polish",
              "czech",
              "hungarian",
              "swedish",
              "portuguese",
              "bulgarian",
              "norwegian",
              "finnish",
              "croatian",
              "latvian",
              "slovak",
              "serbian",
              "mongolian",
              "haitian",
              "thai",
              "slovenian",
              "russian",
              "lithuanian",
              "amharic",
              "malay",
              "estonian",
              "greek",
              "ukrainian",
              "swahili",
              "japanese",
              "filipino",
              "persian",
              "welsh",
              "korean",
              "cantonese",
              "indonesian",
              "latin",
              "bengali",
              "catalan",
              "hindi"
            ],
            "type": "string",
            "description": "Filter the directory by the community's language.",
            "default": "all"
          },
          "sortBy": {
            "title": "Sort by (mode=discover)",
            "enum": [
              "trending",
              "top-v2",
              "popular",
              "new"
            ],
            "type": "string",
            "description": "Order the directory by trending or by all-time popularity. Legacy popular/new values are accepted.",
            "default": "trending"
          },
          "minMembers": {
            "title": "Minimum members (mode=discover)",
            "minimum": 0,
            "maximum": 100000000,
            "type": "integer",
            "description": "Only keep communities with at least this many members."
          },
          "maxMembers": {
            "title": "Maximum members (mode=discover)",
            "minimum": 0,
            "maximum": 100000000,
            "type": "integer",
            "description": "Only keep communities with at most this many members."
          },
          "enrichDetails": {
            "title": "Fetch full community details (mode=discover)",
            "type": "boolean",
            "description": "Open each discovered community to add pricing, owner, rating, review and roster fields.",
            "default": true
          },
          "includeReviews": {
            "title": "Include recent reviews",
            "type": "boolean",
            "description": "Add the latest public reviews (up to five) to each community record.",
            "default": true
          },
          "memberScope": {
            "title": "Member tabs (mode=getMembers)",
            "enum": [
              "all",
              "members",
              "online",
              "admins"
            ],
            "type": "string",
            "description": "Which public member tab to read: the default members list, the online list, the admin list, or all three combined.",
            "default": "all"
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of records to emit (communities or members combined).",
            "default": 20
          },
          "maxMembersPerCommunity": {
            "title": "Max members per community (mode=getMembers)",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum public members to emit per community. Skool exposes about 30 rows per tab plus the admin and online tabs.",
            "default": 30
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}