{
  "openapi": "3.0.1",
  "info": {
    "title": "Udemy Scraper",
    "description": "Scrape Udemy courses with 40+ fields: ratings, reviews, prices, discounts, instructors, subscribers, curriculum, objectives, prerequisites, and more. Search by keyword or browse topic and category pages. Export to JSON, CSV, Excel, or API for market research and education analytics.",
    "version": "1.0",
    "x-build-id": "xGGzdskrpHJqofg49"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/silentflow~udemy-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-silentflow-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/silentflow~udemy-scraper/runs": {
      "post": {
        "operationId": "runs-sync-silentflow-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/silentflow~udemy-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-silentflow-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": {
          "searches": {
            "title": "🔎 Search keywords",
            "type": "array",
            "description": "Keywords searched on Udemy, the same results a visitor gets, page after page until the course cap. Example: <code>python programming</code>, <code>excel</code>, <code>project management</code>.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "🔗 Udemy URLs",
            "type": "array",
            "description": "Paste any Udemy link: search results (<code>/courses/search/?q=python&ratings=4.5</code>), topic pages (<code>/topic/python/</code>), category pages, single courses (<code>/course/complete-python-bootcamp/</code>) or instructor profiles (<code>/user/joseportilla/</code>). Course and instructor links are always scraped in full, whatever the course cap.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "🔢 Max courses",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "The maximum number of courses collected from searches, topics and categories. Reviews and instructor profiles are not counted.",
            "default": 50
          },
          "languages": {
            "title": "🌐 Course languages",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only courses taught in these languages. English dominates Udemy, so this is the fastest way to a local market.",
            "items": {
              "type": "string",
              "enum": [
                "en",
                "es",
                "pt",
                "fr",
                "de",
                "it",
                "tr",
                "ar",
                "ja",
                "zh",
                "ko",
                "ru",
                "pl",
                "hi",
                "id",
                "ur",
                "ta",
                "te",
                "ml",
                "bn",
                "mr",
                "vi",
                "th",
                "tl",
                "ms",
                "nl",
                "he",
                "uk",
                "fa",
                "ro",
                "el",
                "hu",
                "cs",
                "sv",
                "da",
                "fi",
                "nb",
                "bg"
              ],
              "enumTitles": [
                "English",
                "Spanish",
                "Portuguese",
                "French",
                "German",
                "Italian",
                "Turkish",
                "Arabic",
                "Japanese",
                "Chinese",
                "Korean",
                "Russian",
                "Polish",
                "Hindi",
                "Indonesian",
                "Urdu",
                "Tamil",
                "Telugu",
                "Malayalam",
                "Bengali",
                "Marathi",
                "Vietnamese",
                "Thai",
                "Tagalog",
                "Malay",
                "Dutch",
                "Hebrew",
                "Ukrainian",
                "Persian",
                "Romanian",
                "Greek",
                "Hungarian",
                "Czech",
                "Swedish",
                "Danish",
                "Finnish",
                "Norwegian",
                "Bulgarian"
              ]
            }
          },
          "levels": {
            "title": "🎓 Levels",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only courses made for these levels. Pick several to combine them.",
            "items": {
              "type": "string",
              "enum": [
                "all",
                "beginner",
                "intermediate",
                "expert"
              ],
              "enumTitles": [
                "All Levels",
                "Beginner",
                "Intermediate",
                "Expert"
              ]
            }
          },
          "minRating": {
            "title": "⭐ Minimum rating",
            "enum": [
              "3.0",
              "3.5",
              "4.0",
              "4.5"
            ],
            "type": "string",
            "description": "Keep only courses rated at least this many stars. Leave empty for every rating."
          },
          "price": {
            "title": "💰 Price",
            "enum": [
              "all",
              "free",
              "paid"
            ],
            "type": "string",
            "description": "Free courses only, paid courses only, or both.",
            "default": "all"
          },
          "sortBy": {
            "title": "↕️ Sort by",
            "enum": [
              "relevance",
              "most-reviewed",
              "highest-rated",
              "newest"
            ],
            "type": "string",
            "description": "Order of the search results: Udemy's own ranking, the most reviewed, the highest rated or the newest courses first. Applies to keywords and search links.",
            "default": "relevance"
          },
          "maxReviews": {
            "title": "💬 Reviews per course",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "How many written reviews to collect for each course, newest first, as separate rows with the text, star rating, date and instructor reply. <code>0</code> collects none.",
            "default": 0
          },
          "debugMode": {
            "title": "🐞 Debug mode",
            "type": "boolean",
            "description": "Activate to see detailed logs.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}