{
  "openapi": "3.0.1",
  "info": {
    "title": "Udemy Course Scraper",
    "description": "Scrape Udemy courses by keyword, topic, search or course link with Udemy's own filters: title, instructors, rating, reviews and students count, price, language, level, last update, length and curriculum.",
    "version": "0.1",
    "x-build-id": "pIAbelMm13d8aQ5sY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automly~udemy-course-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automly-udemy-course-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/automly~udemy-course-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automly-udemy-course-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/automly~udemy-course-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automly-udemy-course-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",
        "properties": {
          "searches": {
            "title": "Keywords",
            "type": "array",
            "description": "Words to search Udemy for, e.g. python or excel, one per line. Each keyword gives up to the maximum number of courses below, in the order you pick under Sort by.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Udemy links",
            "type": "array",
            "description": "Udemy pages, e.g. a topic (https://www.udemy.com/topic/python/), a search with its filters (https://www.udemy.com/courses/search/?q=excel&lang=fr) or a single course (https://www.udemy.com/course/complete-python-bootcamp/). A topic is searched by its name; a search link keeps its own filters.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Max courses per search",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Most courses to take from each keyword, topic or search link, e.g. 100. Udemy lists up to 10,000 per search. Course links are always read.",
            "default": 100
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "most-reviewed",
              "highest-rated",
              "newest"
            ],
            "type": "string",
            "description": "Order of the courses found for each keyword or topic, e.g. Most reviewed.",
            "default": "relevance"
          },
          "minRating": {
            "title": "Minimum rating",
            "enum": [
              "3.0",
              "3.5",
              "4.0",
              "4.5"
            ],
            "type": "string",
            "description": "Only courses rated at least this, e.g. 4.5 & up. Leave empty for any rating."
          },
          "languages": {
            "title": "Languages",
            "type": "array",
            "description": "Only courses taught in these languages, e.g. English. Leave empty for every language.",
            "items": {
              "type": "string",
              "enum": [
                "en",
                "es",
                "pt",
                "ja",
                "tr",
                "zh",
                "fr",
                "ko",
                "ar",
                "ru",
                "de",
                "id",
                "it",
                "hi",
                "pl",
                "vi",
                "ro",
                "th",
                "ur",
                "nl",
                "he",
                "fa",
                "uk",
                "bn",
                "el",
                "cs",
                "hu",
                "ms",
                "ta",
                "te",
                "sv",
                "az",
                "bg",
                "hr",
                "sr",
                "ka",
                "kk",
                "my",
                "ne",
                "sk",
                "sl",
                "sq",
                "lt",
                "lv",
                "et",
                "fi",
                "da",
                "mr",
                "gu",
                "kn",
                "ml",
                "pa",
                "km",
                "uz",
                "sw",
                "tl"
              ],
              "enumTitles": [
                "English",
                "Spanish",
                "Portuguese",
                "Japanese",
                "Turkish",
                "Chinese",
                "French",
                "Korean",
                "Arabic",
                "Russian",
                "German",
                "Indonesian",
                "Italian",
                "Hindi",
                "Polish",
                "Vietnamese",
                "Romanian",
                "Thai",
                "Urdu",
                "Dutch",
                "Hebrew",
                "Persian",
                "Ukrainian",
                "Bengali",
                "Greek",
                "Czech",
                "Hungarian",
                "Malay",
                "Tamil",
                "Telugu",
                "Swedish",
                "Azerbaijani",
                "Bulgarian",
                "Croatian",
                "Serbian",
                "Georgian",
                "Kazakh",
                "Burmese",
                "Nepali",
                "Slovak",
                "Slovenian",
                "Albanian",
                "Lithuanian",
                "Latvian",
                "Estonian",
                "Finnish",
                "Danish",
                "Marathi",
                "Gujarati",
                "Kannada",
                "Malayalam",
                "Punjabi",
                "Khmer",
                "Uzbek",
                "Swahili",
                "Filipino"
              ]
            }
          },
          "levels": {
            "title": "Levels",
            "type": "array",
            "description": "Only courses for these levels, e.g. Beginner. Leave empty for every level.",
            "items": {
              "type": "string",
              "enum": [
                "all",
                "beginner",
                "intermediate",
                "expert"
              ],
              "enumTitles": [
                "All Levels",
                "Beginner",
                "Intermediate",
                "Expert"
              ]
            }
          },
          "price": {
            "title": "Free or paid",
            "enum": [
              "free",
              "paid"
            ],
            "type": "string",
            "description": "Only free courses or only paid courses, e.g. Free courses only. Leave empty for both."
          },
          "videoDuration": {
            "title": "Video duration",
            "type": "array",
            "description": "Only courses with this much video, e.g. 1-3 hours. Leave empty for any length.",
            "items": {
              "type": "string",
              "enum": [
                "EXTRA_SHORT",
                "SHORT",
                "MEDIUM",
                "LONG",
                "EXTRA_LONG"
              ],
              "enumTitles": [
                "0-1 hour",
                "1-3 hours",
                "3-6 hours",
                "6-17 hours",
                "17+ hours"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}