{
  "openapi": "3.0.1",
  "info": {
    "title": "Udemy Courses Scraper",
    "description": "Scrape Udemy courses from search keywords, topic or category URLs and course URLs: price, rating, enrolled students, instructors, level, duration, lectures and badges.",
    "version": "0.1",
    "x-build-id": "EhDKwcurpdrEEEe1X"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automation-lab~udemy-courses-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automation-lab-udemy-courses-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/automation-lab~udemy-courses-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automation-lab-udemy-courses-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/automation-lab~udemy-courses-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automation-lab-udemy-courses-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": "Keywords searched on Udemy, the same as typing them into the Udemy search box (Udemy's own relevance matching, not an exact phrase). Each keyword is a separate search and returns up to Maximum courses per search or URL. The filters below apply to every keyword.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "🔗 Udemy URLs",
            "type": "array",
            "description": "Udemy pages to scrape: course pages (udemy.com/course/...), topic pages (udemy.com/topic/python/), category or subcategory pages (udemy.com/courses/development/web-development/) and search result pages (udemy.com/courses/search/?q=excel). Filters in a pasted listing or search URL (lang, instructional_level, price, ratings, sort) override the filters below for that URL. Course URLs always return that course and ignore the filters.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Maximum courses per search or URL",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Most courses saved for each search keyword, topic URL, category URL or search URL. A course URL always gives one course. Udemy shows at most 10,000 courses per search. A course already saved for an earlier keyword or URL in the same run is not saved again.",
            "default": 50
          },
          "languages": {
            "title": "Course languages",
            "type": "array",
            "description": "Keep only courses taught in any of these languages. Empty means all languages. Applies to keywords, topic, category and search URLs.",
            "items": {
              "type": "string",
              "enum": [
                "en",
                "es",
                "pt",
                "de",
                "fr",
                "it",
                "ja",
                "tr",
                "ar",
                "hi",
                "zh",
                "ko",
                "ru",
                "pl",
                "nl",
                "id",
                "vi",
                "th",
                "ro",
                "he",
                "uk"
              ],
              "enumTitles": [
                "English",
                "Spanish",
                "Portuguese",
                "German",
                "French",
                "Italian",
                "Japanese",
                "Turkish",
                "Arabic",
                "Hindi",
                "Chinese",
                "Korean",
                "Russian",
                "Polish",
                "Dutch",
                "Indonesian",
                "Vietnamese",
                "Thai",
                "Romanian",
                "Hebrew",
                "Ukrainian"
              ]
            }
          },
          "levels": {
            "title": "Course levels",
            "type": "array",
            "description": "Keep only courses at any of these levels. 'All Levels' is Udemy's own label for courses aimed at every level. Empty means no level filter.",
            "items": {
              "type": "string",
              "enum": [
                "all",
                "beginner",
                "intermediate",
                "expert"
              ],
              "enumTitles": [
                "All Levels",
                "Beginner",
                "Intermediate",
                "Expert"
              ]
            }
          },
          "price": {
            "title": "Price",
            "enum": [
              "any",
              "free",
              "paid"
            ],
            "type": "string",
            "description": "Keep only free or only paid courses.",
            "default": "any"
          },
          "minRating": {
            "title": "Minimum rating",
            "enum": [
              "0",
              "3.0",
              "3.5",
              "4.0",
              "4.5"
            ],
            "type": "string",
            "description": "Keep only courses whose average rating is at least this value.",
            "default": "0"
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "most-reviewed",
              "highest-rated",
              "newest"
            ],
            "type": "string",
            "description": "Order in which Udemy returns courses for keywords, topics and categories. With a limit, this decides which courses you get.",
            "default": "relevance"
          },
          "includeDescription": {
            "title": "Include full course description",
            "type": "boolean",
            "description": "Add the full course description as plain text. It is often several thousand characters, so it is off by default. Learning objectives, requirements and target audiences are always included.",
            "default": false
          },
          "priceCountry": {
            "title": "Price country",
            "pattern": "^[A-Za-z]{2}$",
            "type": "string",
            "description": "Two-letter country code whose Udemy prices you want, such as US, GB, DE or IN. Udemy sets prices and currency by country; the currency field shows what you got.",
            "default": "US"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Udemy blocks many server IPs, so requests go through Apify Proxy. Datacenter proxy is enough; the default works for most users.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}