{
  "openapi": "3.0.1",
  "info": {
    "title": "Udemy Scraper - Courses, Prices, Ratings & Students",
    "description": "Scrape Udemy courses by keyword or link: title, instructor, price and discount for any country, rating, reviews, rating distribution, students, lectures, duration, level, language, topics, what you will learn and curriculum sections. Filters, onlyNew for schedules. Error rows are free.",
    "version": "0.1",
    "x-build-id": "vSHVbVkIcTAJWVXxq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapewise~udemy-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapewise-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/scrapewise~udemy-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapewise-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/scrapewise~udemy-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapewise-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": {
          "searchQueries": {
            "title": "Search keywords",
            "type": "array",
            "description": "Course topics or keywords, one per line, for example python, excel or prompt engineering. Each keyword is one search. Leave empty when you paste links below.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Course or search links",
            "type": "array",
            "description": "Optional: Udemy course links (https://www.udemy.com/course/...), course ids, search links (https://www.udemy.com/courses/search/?q=...) or topic links (https://www.udemy.com/topic/...).",
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Course language",
            "type": "array",
            "description": "Keep only courses taught in these languages. Empty = all languages.",
            "items": {
              "type": "string",
              "enum": [
                "en",
                "es",
                "pt",
                "ja",
                "tr",
                "zh",
                "fr",
                "ko",
                "ar",
                "ru",
                "de",
                "id",
                "pl",
                "it",
                "hi",
                "vi",
                "th",
                "ro",
                "nl",
                "he",
                "hu",
                "uk",
                "el",
                "fa",
                "bn",
                "ta",
                "te",
                "ml",
                "ur",
                "az",
                "cs",
                "sv",
                "da",
                "fi",
                "bg",
                "sk"
              ],
              "enumTitles": [
                "English",
                "Spanish",
                "Portuguese",
                "Japanese",
                "Turkish",
                "Chinese",
                "French",
                "Korean",
                "Arabic",
                "Russian",
                "German",
                "Indonesian",
                "Polish",
                "Italian",
                "Hindi",
                "Vietnamese",
                "Thai",
                "Romanian",
                "Dutch",
                "Hebrew",
                "Hungarian",
                "Ukrainian",
                "Greek",
                "Persian",
                "Bengali",
                "Tamil",
                "Telugu",
                "Malayalam",
                "Urdu",
                "Azerbaijani",
                "Czech",
                "Swedish",
                "Danish",
                "Finnish",
                "Bulgarian",
                "Slovak"
              ]
            }
          },
          "levels": {
            "title": "Level",
            "type": "array",
            "description": "Keep only these levels. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "ALL_LEVELS",
                "BEGINNER",
                "INTERMEDIATE",
                "EXPERT"
              ],
              "enumTitles": [
                "All levels",
                "Beginner",
                "Intermediate",
                "Expert"
              ]
            }
          },
          "videoDuration": {
            "title": "Video duration",
            "type": "array",
            "description": "Keep only courses with this much video. Empty = any length.",
            "items": {
              "type": "string",
              "enum": [
                "EXTRA_SHORT",
                "SHORT",
                "MEDIUM",
                "LONG",
                "EXTRA_LONG"
              ],
              "enumTitles": [
                "0 to 1 hour",
                "1 to 3 hours",
                "3 to 6 hours",
                "6 to 17 hours",
                "17+ hours"
              ]
            }
          },
          "price": {
            "title": "Price",
            "enum": [
              "any",
              "free",
              "paid"
            ],
            "type": "string",
            "description": "Free courses, paid courses or both.",
            "default": "any"
          },
          "minRating": {
            "title": "Minimum rating",
            "enum": [
              "4.5",
              "4.0",
              "3.5",
              "3.0"
            ],
            "type": "string",
            "description": "Keep only courses with at least this average rating. Empty = any rating."
          },
          "features": {
            "title": "Must have",
            "type": "array",
            "description": "Keep only courses that include these. Empty = no requirement.",
            "items": {
              "type": "string",
              "enum": [
                "mustHaveQuiz",
                "mustHaveCodingExercise",
                "mustHavePracticeTest"
              ],
              "enumTitles": [
                "Quizzes",
                "Coding exercises",
                "Practice tests"
              ]
            }
          },
          "captionLanguages": {
            "title": "Subtitles",
            "type": "array",
            "description": "Keep only courses with closed captions in these languages. Empty = any.",
            "items": {
              "type": "string",
              "enum": [
                "en",
                "es",
                "pt",
                "ja",
                "tr",
                "zh",
                "fr",
                "ko",
                "ar",
                "ru",
                "de",
                "id"
              ],
              "enumTitles": [
                "English",
                "Spanish",
                "Portuguese",
                "Japanese",
                "Turkish",
                "Chinese",
                "French",
                "Korean",
                "Arabic",
                "Russian",
                "German",
                "Indonesian"
              ]
            }
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "reviews",
              "rating",
              "newest"
            ],
            "type": "string",
            "description": "Order of the results, same options as the site. onlyNew switches Most relevant to Newest.",
            "default": "relevance"
          },
          "priceCountry": {
            "title": "Price country",
            "type": "string",
            "description": "Two-letter country code whose Udemy prices you want, for example US, GB, IN or DE. Price, list price, discount and currency follow that country.",
            "default": "US"
          },
          "includeDetails": {
            "title": "Course details",
            "type": "boolean",
            "description": "On: adds rating distribution, recent rating, lectures, quizzes, practice tests, subcategory, created and published dates, certificate and instructor titles.",
            "default": true
          },
          "includePrice": {
            "title": "Prices",
            "type": "boolean",
            "description": "On: adds the current price, list price, discount and currency for the price country.",
            "default": true
          },
          "maxItems": {
            "title": "Max courses",
            "minimum": 0,
            "type": "integer",
            "description": "Hard cap for the whole run, across all searches and links. 0 = no cap (Udemy shows up to 10,000 courses per search).",
            "default": 50
          },
          "onlyNew": {
            "title": "Only new courses (for schedules)",
            "type": "boolean",
            "description": "On: remembers the courses delivered in earlier runs of the same search (in your account) and delivers only courses not seen before. Skipped courses are free.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy by default. Change it only if you know you need to.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}