{
  "openapi": "3.0.1",
  "info": {
    "title": "Skillshare Scraper",
    "description": "Scrape Skillshare classes (skillshare.com). Search classes with level, length, rating, and language filters; browse category rows; fetch class details and reviews by SKU; list all categories.",
    "version": "1.0",
    "x-build-id": "MsLc4sCP4m2fUiiTW"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~skillshare-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-skillshare-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/crawlerbros~skillshare-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-skillshare-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/crawlerbros~skillshare-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-skillshare-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": [
              "search",
              "byCategory",
              "bySku",
              "listCategories"
            ],
            "type": "string",
            "description": "What to fetch.",
            "default": "search"
          },
          "searchQuery": {
            "title": "Search query (mode=search)",
            "type": "string",
            "description": "Free-text class query, e.g. `drawing`, `watercolor`, `python`.",
            "default": "drawing"
          },
          "category": {
            "title": "Category (mode=byCategory)",
            "enum": [
              "",
              "ai-innovation",
              "animation-3d",
              "art-illustration",
              "crafts-diy",
              "creative-career",
              "creativity-inspiration",
              "design",
              "development",
              "film-video",
              "home-lifestyle",
              "marketing-business",
              "music-audio",
              "personal-development",
              "photography",
              "productivity",
              "writing-publishing"
            ],
            "type": "string",
            "description": "Category slug, e.g. `art-illustration`, `design`, `photography`, `music-audio`. Use mode=listCategories to enumerate.",
            "default": ""
          },
          "categoryRow": {
            "title": "Category row (mode=byCategory)",
            "enum": [
              "featured",
              "popular",
              "trending",
              "free"
            ],
            "type": "string",
            "description": "Which curated row to fetch for the category.",
            "default": "featured"
          },
          "skus": {
            "title": "Class SKUs (mode=bySku)",
            "type": "array",
            "description": "Skillshare class SKUs or full class URLs, e.g. `637385311` or `https://www.skillshare.com/en/classes/basic-skills-getting-started-with-drawing/637385311`.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeReviews": {
            "title": "Include reviews (mode=bySku)",
            "type": "boolean",
            "description": "Also emit paginated student reviews for each class.",
            "default": false
          },
          "maxReviewsPerClass": {
            "title": "Max reviews per class",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Hard cap on reviews emitted per class (mode=bySku + includeReviews).",
            "default": 10
          },
          "level": {
            "title": "Level",
            "enum": [
              "",
              "allLevels",
              "beginner",
              "intermediate",
              "advanced"
            ],
            "type": "string",
            "description": "Restrict to a class level.",
            "default": ""
          },
          "classLength": {
            "title": "Class length",
            "enum": [
              "",
              "short",
              "shorter",
              "medium",
              "long"
            ],
            "type": "string",
            "description": "Restrict by class duration.",
            "default": ""
          },
          "classRating": {
            "title": "Class rating",
            "enum": [
              "",
              "fourStar",
              "threeStar",
              "twoStar",
              "belowTwoStar"
            ],
            "type": "string",
            "description": "Minimum aggregate star rating bucket.",
            "default": ""
          },
          "language": {
            "title": "Original language",
            "enum": [
              "",
              "en",
              "de",
              "pt",
              "es",
              "fr"
            ],
            "type": "string",
            "description": "Restrict to classes originally taught in this language.",
            "default": ""
          },
          "publishTime": {
            "title": "Published within",
            "enum": [
              "",
              "pastYear",
              "past3Months",
              "pastMonth",
              "past2Weeks",
              "pastWeek"
            ],
            "type": "string",
            "description": "Restrict to classes published within this window.",
            "default": ""
          },
          "tag": {
            "title": "Skill tag",
            "type": "string",
            "description": "Restrict to classes with this skill tag, e.g. `Procreate`, `Watercolor Paint`, `Character Design & Illustration`."
          },
          "isStaffPick": {
            "title": "Staff picks only",
            "type": "boolean",
            "description": "Only emit Skillshare staff-pick classes.",
            "default": false
          },
          "isTopTeacher": {
            "title": "Top teachers only",
            "type": "boolean",
            "description": "Only emit classes from top-rated teachers.",
            "default": false
          },
          "onlyHighQualityClasses": {
            "title": "Only high-quality classes",
            "type": "boolean",
            "description": "Filter to Skillshare's high-quality class pool (default on).",
            "default": true
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "studentCount",
              "publishTime"
            ],
            "type": "string",
            "description": "Search result ordering.",
            "default": "relevance"
          },
          "minRating": {
            "title": "Min rating",
            "minimum": 0,
            "maximum": 4,
            "type": "number",
            "description": "Client-side filter: drop classes rated below this (0-4)."
          },
          "containsKeyword": {
            "title": "Contains keyword",
            "type": "string",
            "description": "Client-side filter: only emit classes whose title or description contains this text."
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on emitted records.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}