{
  "openapi": "3.0.1",
  "info": {
    "title": "Udemy Scraper: Courses, Prices, Students and Reviews",
    "description": "Scrape Udemy courses by keyword, search, category, topic, instructor or course link: instructor, rating, reviews, students, price, discount, hours, lectures, level, language and last update. Optional details and review rows. No login.",
    "version": "0.1",
    "x-build-id": "Futc4NgPTVN1axreX"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/themineworks~udemy-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-themineworks-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/themineworks~udemy-scraper/runs": {
      "post": {
        "operationId": "runs-sync-themineworks-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/themineworks~udemy-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-themineworks-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": "Keywords",
            "type": "array",
            "description": "Words as you would type them in the Udemy search box, one per line. Example: python, excel, project management. Each keyword is one search through Udemy's own search, up to 10,000 courses. Up to 100 searches and links per run.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Udemy links (optional)",
            "type": "array",
            "description": "Links copied from udemy.com: a search with its filters (https://www.udemy.com/courses/search/?q=excel&lang=en), a category (https://www.udemy.com/courses/development/), a subcategory (https://www.udemy.com/courses/development/web-development/), a topic (https://www.udemy.com/topic/python/), an instructor (https://www.udemy.com/user/joseportilla/) or a course (https://www.udemy.com/course/complete-python-bootcamp/). A course link returns that one course with its details.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max courses per search or link",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "The most courses to return for each keyword or list link, 1 to 10,000 (Udemy shows at most 10,000 per search). Example: 500.",
            "default": 50
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "relevance",
              "most_reviewed",
              "highest_rated",
              "newest"
            ],
            "type": "string",
            "description": "Order of the results, as on Udemy. A sort already in a pasted link wins.",
            "default": "relevance"
          },
          "languages": {
            "title": "Course language (optional)",
            "type": "array",
            "description": "Two letter language codes, for example en, es, pt, de, fr, ja, tr. Empty means every language.",
            "items": {
              "type": "string"
            }
          },
          "levels": {
            "title": "Level (optional)",
            "type": "array",
            "description": "Keep only these levels. Empty means every level.",
            "items": {
              "type": "string",
              "enum": [
                "beginner",
                "intermediate",
                "expert",
                "all"
              ],
              "enumTitles": [
                "Beginner",
                "Intermediate",
                "Expert",
                "All Levels"
              ]
            }
          },
          "minRating": {
            "title": "Minimum rating (optional)",
            "enum": [
              "",
              "3",
              "3.5",
              "4",
              "4.5"
            ],
            "type": "string",
            "description": "Keep only courses rated at least this many stars.",
            "default": ""
          },
          "price": {
            "title": "Free or paid",
            "enum": [
              "all",
              "free",
              "paid"
            ],
            "type": "string",
            "description": "Keep free courses, paid courses or both.",
            "default": "all"
          },
          "durations": {
            "title": "Video length (optional)",
            "type": "array",
            "description": "Keep only courses of these lengths: extraShort 0 to 1 hour, short 1 to 3 hours, medium 3 to 6 hours, long 6 to 17 hours, extraLong 17+ hours.",
            "items": {
              "type": "string",
              "enum": [
                "extraShort",
                "short",
                "medium",
                "long",
                "extraLong"
              ],
              "enumTitles": [
                "0 to 1 hour",
                "1 to 3 hours",
                "3 to 6 hours",
                "6 to 17 hours",
                "17+ hours"
              ]
            }
          },
          "priceCountry": {
            "title": "Price country",
            "type": "string",
            "description": "Two letter country code whose prices, currency and running sale you want, for example US, GB, IN, DE, BR. Udemy prices differ by country.",
            "default": "US"
          },
          "includeDetails": {
            "title": "Add course details",
            "type": "boolean",
            "description": "On: each course's own data is read too, for the full description, what you will learn, requirements, target audience, category and subcategory, created and published dates, caption languages, quizzes, practice tests, coding exercises, articles, downloadable resources and certificate. Off: rows come from the search or list cards only, which is faster. Same price either way.",
            "default": false
          },
          "includeReviews": {
            "title": "Add reviews",
            "type": "boolean",
            "description": "On: up to the number below of each course's newest reviews come as their own rows (record_type review) with rating, text, date and the reviewer's display name as Udemy shows it. Reviews are charged per review.",
            "default": false
          },
          "maxReviewsPerCourse": {
            "title": "Max reviews per course",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Used only with Add reviews. 1 to 5,000. Example: 100.",
            "default": 20
          },
          "onlyTextReviews": {
            "title": "Only reviews with text",
            "type": "boolean",
            "description": "On: skip star ratings that have no written text. Off: every rating, with or without text.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Off by default: Udemy answers without a proxy. Turn on Apify Proxy only if runs are refused.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}