{
  "openapi": "3.0.1",
  "info": {
    "title": "Udemy Scraper",
    "description": "Search Udemy courses by keyword or link with Udemy's own filters and get title, instructors, rating, students, price, language, level, last update, length, curriculum and reviews.",
    "version": "0.1",
    "x-build-id": "FeqCpuQVCyRC7w1kn"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automly~udemy-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automly-udemy-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-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automly-udemy-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-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automly-udemy-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": {
          "queries": {
            "title": "Search keywords",
            "type": "array",
            "description": "Words to search Udemy for, e.g. python or excel. Each keyword gives up to the maximum number of courses below, in the order you pick under Sort by.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Search or course links",
            "type": "array",
            "description": "Udemy links, e.g. https://www.udemy.com/courses/search/?q=excel&lang=en or https://www.udemy.com/course/complete-python-bootcamp/. A search link keeps its own filters and sort; a course link gives that course with its full description and curriculum.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max courses per search",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Most courses to take from each keyword 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, e.g. Most reviewed.",
            "default": "relevance"
          },
          "rating": {
            "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"
              ]
            }
          },
          "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"
              ]
            }
          },
          "price": {
            "title": "Price",
            "type": "array",
            "description": "Paid courses, free courses or both, e.g. Free. Leave empty for both.",
            "items": {
              "type": "string",
              "enum": [
                "paid",
                "free"
              ],
              "enumTitles": [
                "Paid",
                "Free"
              ]
            }
          },
          "handsOnPractice": {
            "title": "Hands-on practice",
            "type": "array",
            "description": "Only courses that include all of these, e.g. Coding exercises.",
            "items": {
              "type": "string",
              "enum": [
                "quizzes",
                "coding_exercises",
                "practice_tests",
                "roleplays"
              ],
              "enumTitles": [
                "Quizzes",
                "Coding exercises",
                "Practice tests",
                "Role plays"
              ]
            }
          },
          "certificationPrepOnly": {
            "title": "Certification prep only",
            "type": "boolean",
            "description": "Only courses that prepare for a certification exam.",
            "default": false
          },
          "includeReviews": {
            "title": "Get reviews",
            "type": "boolean",
            "description": "Also save each course's reviews, newest first, as review rows: rating, text, reviewer, date and the instructor's reply.",
            "default": false
          },
          "maxReviewsPerCourse": {
            "title": "Reviews per course",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Most reviews to save for each course, e.g. 100. Udemy shows up to 10,000 per course.",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "The default works for most runs.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}