{
  "openapi": "3.0.1",
  "info": {
    "title": "Udemy Course Catalog & Rating Finder",
    "description": "Search Udemy courses by keyword, category, or instructor, with rating, subscriber count, price, curriculum size, and level filters.",
    "version": "1.0",
    "x-build-id": "XrULQdpSfJdYmLVRm"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/xyrelith-data~udemy-course-catalog-and-rating-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-xyrelith-data-udemy-course-catalog-and-rating-finder",
        "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/xyrelith-data~udemy-course-catalog-and-rating-finder/runs": {
      "post": {
        "operationId": "runs-sync-xyrelith-data-udemy-course-catalog-and-rating-finder",
        "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/xyrelith-data~udemy-course-catalog-and-rating-finder/run-sync": {
      "post": {
        "operationId": "run-sync-xyrelith-data-udemy-course-catalog-and-rating-finder",
        "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",
              "browse",
              "byCourseUrls",
              "byInstructors"
            ],
            "type": "string",
            "description": "What to collect from Udemy.",
            "default": "search"
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Keywords to search for (mode=search). Add several queries to widen coverage.",
            "items": {
              "type": "string"
            },
            "default": [
              "python"
            ]
          },
          "category": {
            "title": "Category",
            "enum": [
              "any",
              "288",
              "268",
              "328",
              "294",
              "292",
              "296",
              "269",
              "290",
              "274",
              "273",
              "276",
              "278",
              "300"
            ],
            "type": "string",
            "description": "Top-level Udemy category to browse (mode=browse). Ignored when a subcategory is selected.",
            "default": "any"
          },
          "subcategory": {
            "title": "Subcategory",
            "enum": [
              "any",
              "8",
              "558",
              "10",
              "12",
              "14",
              "16",
              "18",
              "20",
              "362",
              "575",
              "26",
              "28",
              "30",
              "32",
              "34",
              "36",
              "38",
              "40",
              "44",
              "48",
              "50",
              "354",
              "52",
              "58",
              "60",
              "530",
              "532",
              "534",
              "536",
              "540",
              "542",
              "544",
              "546",
              "548",
              "550",
              "552",
              "132",
              "134",
              "136",
              "138",
              "140",
              "96",
              "98",
              "100",
              "102",
              "106",
              "108",
              "142",
              "144",
              "146",
              "150",
              "152",
              "156",
              "577",
              "158",
              "160",
              "164",
              "166",
              "168",
              "170",
              "172",
              "176",
              "178",
              "6",
              "110",
              "112",
              "114",
              "116",
              "120",
              "122",
              "124",
              "128",
              "130",
              "62",
              "64",
              "66",
              "68",
              "70",
              "72",
              "74",
              "76",
              "78",
              "80",
              "86",
              "88",
              "90",
              "94",
              "180",
              "184",
              "182",
              "188",
              "190",
              "192",
              "186",
              "194",
              "370",
              "196",
              "204",
              "198",
              "208",
              "218",
              "220",
              "222",
              "224",
              "226",
              "228",
              "230",
              "232",
              "236",
              "238",
              "240",
              "242",
              "244",
              "296",
              "298",
              "300",
              "302",
              "304",
              "306",
              "308",
              "366",
              "380",
              "310",
              "312",
              "523",
              "376",
              "521",
              "527",
              "529",
              "525"
            ],
            "type": "string",
            "description": "Narrower subcategory to browse (mode=browse). Takes precedence over the category.",
            "default": "any"
          },
          "topics": {
            "title": "Topics",
            "type": "array",
            "description": "Topic slugs or URLs to browse, e.g. `python` or `https://www.udemy.com/topic/excel/` (mode=browse).",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "browseUrls": {
            "title": "Browse URLs",
            "type": "array",
            "description": "Category, subcategory, or topic URLs to browse and merge (mode=browse).",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "courseUrls": {
            "title": "Course URLs or IDs",
            "type": "array",
            "description": "Course URLs, slugs, or numeric IDs (mode=byCourseUrls), e.g. `complete-python-bootcamp`.",
            "items": {
              "type": "string"
            },
            "default": [
              "complete-python-bootcamp"
            ]
          },
          "instructorIds": {
            "title": "Instructors",
            "type": "array",
            "description": "Instructor usernames, profile URLs, or numeric IDs (mode=byInstructors).",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "level": {
            "title": "Level",
            "enum": [
              "any",
              "ALL_LEVELS",
              "BEGINNER",
              "INTERMEDIATE",
              "EXPERT"
            ],
            "type": "string",
            "description": "Only return courses at this difficulty level (search and browse).",
            "default": "any"
          },
          "price": {
            "title": "Price",
            "enum": [
              "any",
              "FREE",
              "PAID"
            ],
            "type": "string",
            "description": "Only return free or paid courses (search and browse).",
            "default": "any"
          },
          "language": {
            "title": "Course language",
            "enum": [
              "any",
              "AF",
              "AR",
              "AZ",
              "BG",
              "BN",
              "CA",
              "CS",
              "DA",
              "DE",
              "EL",
              "EN",
              "ES",
              "ET",
              "FA",
              "FI",
              "FR",
              "GU",
              "HE",
              "HI",
              "HR",
              "HU",
              "ID",
              "IT",
              "JA",
              "KA",
              "KK",
              "KN",
              "KO",
              "KU",
              "LT",
              "MK",
              "ML",
              "MR",
              "MS",
              "MY",
              "NB",
              "NE",
              "NL",
              "PA",
              "PL",
              "PS",
              "PT",
              "RO",
              "RU",
              "SA",
              "SK",
              "SL",
              "SO",
              "SQ",
              "SR",
              "SV",
              "SW",
              "TA",
              "TE",
              "TG",
              "TH",
              "TL",
              "TR",
              "UK",
              "UR",
              "UZ",
              "VI",
              "ZH"
            ],
            "type": "string",
            "description": "Only return courses taught in this language (search and browse).",
            "default": "any"
          },
          "minAverageRating": {
            "title": "Minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Only return courses rated at or above this value, e.g. 4.5 (search and browse)."
          },
          "videoLength": {
            "title": "Video length",
            "enum": [
              "any",
              "EXTRA_SHORT",
              "SHORT",
              "MEDIUM",
              "LONG",
              "EXTRA_LONG"
            ],
            "type": "string",
            "description": "Only return courses in this total video-length band (search and browse).",
            "default": "any"
          },
          "mustHaveQuiz": {
            "title": "Has quizzes",
            "type": "boolean",
            "description": "Only return courses that include quizzes (search and browse).",
            "default": false
          },
          "mustHavePracticeTest": {
            "title": "Has practice tests",
            "type": "boolean",
            "description": "Only return courses that include practice tests (search and browse).",
            "default": false
          },
          "mustHaveCodingExercise": {
            "title": "Has coding exercises",
            "type": "boolean",
            "description": "Only return courses that include coding exercises (search and browse).",
            "default": false
          },
          "mustHaveRoleplay": {
            "title": "Has role-play",
            "type": "boolean",
            "description": "Only return courses that include role-play exercises (search and browse).",
            "default": false
          },
          "isCertificationPrep": {
            "title": "Certification prep",
            "type": "boolean",
            "description": "Only return certification-preparation courses (search and browse).",
            "default": false
          },
          "closedCaptionLanguages": {
            "title": "Caption languages",
            "type": "array",
            "description": "Only return courses with closed captions in these languages, e.g. `EN` or `ES`. Use uppercase Udemy subtitle codes; append `_CC` for human-authored captions (e.g. `EN_CC`).",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "RELEVANCE",
              "RATING",
              "REVIEWS",
              "TIME"
            ],
            "type": "string",
            "description": "Order of search and browse results.",
            "default": "RELEVANCE"
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of records to return.",
            "default": 50
          },
          "includeDetails": {
            "title": "Include full details",
            "type": "boolean",
            "description": "Fetch price, subscriber count, dates, and learning outcomes for search and browse results.",
            "default": true
          },
          "includeCurriculum": {
            "title": "Include curriculum",
            "type": "boolean",
            "description": "Fetch each course's section and lecture list. Adds one request per course.",
            "default": true
          },
          "includeInstructorProfile": {
            "title": "Include instructor profile",
            "type": "boolean",
            "description": "Emit an instructor profile record before their courses (mode=byInstructors). Profile records count toward maxItems.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}