# Udemy Courses Scraper (`automation-lab/udemy-courses-scraper`) Actor

Scrape Udemy courses from search keywords, topic or category URLs and course URLs: price, rating, enrolled students, instructors, level, duration, lectures and badges.

- **URL**: https://apify.com/automation-lab/udemy-courses-scraper.md
- **Developed by:** [Automation Lab](https://apify.com/automation-lab) (community)
- **Categories:** Education
- **Features:** Limited permissions
- **Stats:** 2 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.75 / 1,000 courses

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Udemy Courses Scraper

**Udemy Courses Scraper** collects Udemy course data from search keywords, topic pages, category pages and course URLs. Every course becomes one clean row with the title, instructors, rating, review count, enrolled students, current and list price, language, level, duration, lecture count, last update date, category and badges such as Bestseller and Highest Rated.

One Actor covers search, topics, categories and single courses, with one flat price per course.

### What does Udemy Courses Scraper do?

- 🔍 **Searches Udemy by keyword**, the same as the Udemy search box, with up to 10,000 courses per keyword.
- 🗂️ **Scrapes topic, category and subcategory pages**, such as `udemy.com/topic/python/` or `udemy.com/courses/development/web-development/`.
- 🔗 **Scrapes single course URLs**, so you can track a fixed list of competitor courses every week.
- 🎛️ **Filters** by language, level, free or paid, minimum rating, and sort order (relevance, most reviewed, highest rated, newest).
- 💲 **Regional prices**: choose the country whose Udemy prices you want (US, GB, DE, IN and more). The current sale price and the list price both come with their currency.
- 👩‍🏫 **Instructor details** in every row: job title, profile URL, total students, number of courses and average rating across all the instructor's courses.

### Who is it for?

- **Course creators** who check competitor courses before launching or repricing their own course.
- **Edtech and marketing teams** who track enrollment growth, ratings and discounts for a topic every week.
- **Market researchers** who size a niche: how many courses, how many students, which instructors lead.
- **Affiliate and deal sites** that list free courses or big discounts.
- **Data and AI teams** who need a structured catalogue of courses, objectives and requirements.

### Why use this Udemy scraper?

- **All entry points in one Actor**: keywords, topic URLs, category URLs, search URLs and course URLs, mixed in one run. Courses found by more than one input are saved once.
- **Complete rows**: price, list price, discount, students, rating, reviews, badges, duration, lectures, quizzes, practice tests, dates, category, subcategory, topic, captions, objectives, requirements and instructor stats.
- **Fast and light**: several hundred courses per minute in our tests, using no browser.
- **One flat price per course** with no extra fees for instructor details or filters.

### What data can you extract from Udemy?

| Field | Example |
| --- | --- |
| `courseId`, `url`, `title`, `headline` | 567828, `https://www.udemy.com/course/complete-python-bootcamp/` |
| `instructors` | name, job title, URL, image, total students, course count, average rating |
| `rating`, `recentRating`, `reviewCount` | 4.6, 4.62, 568120 |
| `enrolledStudents` | 2209152 |
| `isFree`, `price`, `listPrice`, `discountPercent`, `currency` | false, 22.99, 199.99, 89, USD |
| `language`, `locale`, `level` | English (US), en_US, All Levels |
| `durationHours`, `videoDurationMinutes`, `lectureCount`, `quizCount`, `practiceTestCount` | 22.4, 1330, 170, 29, 0 |
| `lastUpdated`, `createdAt`, `publishedAt` | 2025-08-07, 2015-07-29T00:12:23Z, 2015-10-12T21:42:53Z |
| `category`, `subcategory`, `topic` | Development, Programming Languages, Python |
| `badges`, `isBestseller`, `isHighestRated`, `isNew` | \["Bestseller"], true, false, false |
| `hasCertificate`, `captionLanguages`, `imageUrl` | true, \["English \[Auto]", ...], image URL |
| `whatYouWillLearn`, `requirements`, `targetAudiences` | lists of strings |
| `description` | full description as plain text (optional) |
| `source`, `position`, `scrapedAt` | the keyword or URL that found the course, its rank, the time |

### How much does it cost to scrape Udemy courses?

Udemy Courses Scraper uses pay-per-event pricing. You pay a small start fee per run and a flat price for each course saved. Filters, instructor details and descriptions cost nothing extra.

| Event | Free / Starter | Scale | Business |
| --- | --- | --- | --- |
| Run start (once per run) | $0.002 | $0.002 | $0.002 |
| Each course saved | $0.002187 | $0.0019683 | $0.0017496 |

Examples on the Starter plan:

- 20 courses for one keyword: about **$0.046**.
- 500 courses across five keywords: about **$1.10**.
- A weekly check of 100 competitor course URLs: about **$0.22** per week.

Apify's free plan includes monthly platform credit, which is enough to try the Actor on a few hundred courses. You only pay for courses actually saved; a run that stops at your spending limit keeps every course it has charged.

### How to scrape Udemy courses

1. Open **Udemy Courses Scraper** in Apify Console.
2. Add one or more **Search keywords**, such as `python` or `excel`, and/or paste **Udemy URLs** (course, topic, category or search pages).
3. Optionally choose **Course languages**, **Course levels**, **Price**, **Minimum rating** and **Sort by**.
4. Set **Maximum courses per search or URL**.
5. Click **Start** and download the results as JSON, CSV, Excel or HTML, or read them through the API.

### Input parameters

| Parameter | Type | Description |
| --- | --- | --- |
| `searchQueries` | array of strings | Keywords searched on Udemy. Each keyword is a separate search. |
| `startUrls` | array of URLs | Course, topic, category, subcategory or search page URLs. |
| `maxItems` | integer | Most courses for each keyword or listing URL (default 50, up to 10,000). A course URL always gives one course. |
| `languages` | array | Keep only courses in these languages, such as `en`, `es`, `de`. |
| `levels` | array | `all`, `beginner`, `intermediate`, `expert`. |
| `price` | string | `any` (default), `free` or `paid`. |
| `minRating` | string | `0` (any), `3.0`, `3.5`, `4.0` or `4.5`. |
| `sortBy` | string | `relevance` (default), `most-reviewed`, `highest-rated`, `newest`. |
| `includeDescription` | boolean | Add the full course description as plain text (default off). |
| `priceCountry` | string | Two-letter country code for prices, default `US`. |
| `proxyConfiguration` | object | Apify Proxy settings. The default works. |

Filters apply to keywords, topic, category and search URLs. Filters inside a pasted Udemy URL (`lang`, `instructional_level`, `price`, `ratings`, `sort`) win over the input filters for that URL. Course URLs ignore filters and always return that course.

Example input:

```json
{
    "searchQueries": ["python", "excel"],
    "startUrls": [
        { "url": "https://www.udemy.com/topic/data-science/" },
        { "url": "https://www.udemy.com/course/complete-python-bootcamp/" }
    ],
    "maxItems": 100,
    "languages": ["en"],
    "minRating": "4.0",
    "sortBy": "most-reviewed"
}
```

### Output example

```json
{
    "courseId": 567828,
    "url": "https://www.udemy.com/course/complete-python-bootcamp/",
    "title": "The Complete Python Bootcamp From Zero to Hero in Python",
    "headline": "Learn Python like a Professional  Start from the basics and go all the way to creating your own applications and games",
    "instructors": [
        {
            "id": 9685726,
            "name": "Jose Portilla",
            "jobTitle": "Head of Data Science at Pierian Training",
            "url": "https://www.udemy.com/user/joseportilla/",
            "imageUrl": "https://img-c.udemycdn.com/user/100x100/9685726_67e7_4.jpg",
            "totalStudents": 4669672,
            "courseCount": 86,
            "averageRating": 4.58
        }
    ],
    "instructorNames": "Jose Portilla, Pierian Training",
    "rating": 4.6,
    "recentRating": 4.62,
    "reviewCount": 568120,
    "enrolledStudents": 2209152,
    "isFree": false,
    "price": 22.99,
    "listPrice": 199.99,
    "discountPercent": 89,
    "currency": "USD",
    "language": "English (US)",
    "locale": "en_US",
    "level": "All Levels",
    "durationHours": 22.4,
    "videoDurationMinutes": 1330,
    "lectureCount": 170,
    "quizCount": 29,
    "practiceTestCount": 0,
    "lastUpdated": "2025-08-07",
    "createdAt": "2015-07-29T00:12:23Z",
    "publishedAt": "2015-10-12T21:42:53Z",
    "category": "Development",
    "subcategory": "Programming Languages",
    "topic": "Python",
    "badges": [],
    "isBestseller": false,
    "isHighestRated": false,
    "isNew": false,
    "hasCertificate": true,
    "captionLanguages": ["English [Auto]", "Spanish [Auto]"],
    "imageUrl": "https://img-c.udemycdn.com/course/480x270/567828_67d0.jpg",
    "whatYouWillLearn": ["You will learn how to leverage the power of Python to solve tasks."],
    "requirements": ["Access to a computer with an internet connection."],
    "targetAudiences": ["Beginners who have never programmed before."],
    "source": "https://www.udemy.com/course/complete-python-bootcamp/",
    "position": 1,
    "scrapedAt": "2026-11-17T08:00:00.000Z"
}
```

Lists are shortened here. The dataset has three views: **Courses** (overview), **Pricing** and **Course details**.

### Tips and limits

- **Udemy shows at most 10,000 courses per search.** For a full topic, combine several narrower keywords or use topic and subcategory URLs; duplicates are removed within a run.
- **Prices depend on country.** Udemy sets prices and currency by country. Use `priceCountry` to choose; the `currency` field shows what you got.
- **Ratings**: `rating` is the all-time average; `recentRating` is the recent-weighted number Udemy shows on the course page.
- **Removed or private courses** are skipped with a warning in the log and are not charged.
- **Bad input** (for example a non-Udemy URL or a topic or course that does not exist) fails the run before anything is charged. If only some inputs are bad, the rest still run.
- The run status says how many courses were saved out of how many were asked for, and why it stopped.

### Integrations and workflows

- **Weekly competitor tracking**: schedule the Actor with your competitors' course URLs and send the dataset to Google Sheets to chart students, rating and price over time.
- **Niche research**: search a keyword with `sortBy: most-reviewed` and compare students and review counts across the top 200 courses.
- **Free course alerts**: run `price: free` with `sortBy: newest` daily and push new rows to Slack or email through Make, Zapier or n8n.
- **Data pipelines**: read results through the Apify API or connect webhooks to load every run into your warehouse.

### Use the Udemy scraper through the API

#### cURL

```bash
curl -X POST "https://api.apify.com/v2/acts/automation-lab~udemy-courses-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"searchQueries": ["python"], "maxItems": 20}'
```

#### JavaScript

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('automation-lab/udemy-courses-scraper').call({
    searchQueries: ['python'],
    maxItems: 20,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.map((course) => `${course.title}: ${course.enrolledStudents} students`));
```

#### Python

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("automation-lab/udemy-courses-scraper").call(
    run_input={"searchQueries": ["python"], "maxItems": 20}
)
for course in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(course["title"], course["price"], course["currency"])
```

### Use with AI agents through MCP

Udemy Courses Scraper is available as a tool through the Apify MCP server, so AI assistants can search Udemy for you.

For Claude Code:

```bash
claude mcp add --transport http apify \
  "https://mcp.apify.com?tools=automation-lab/udemy-courses-scraper"
```

For Claude Desktop, Cursor or VS Code, add this to the MCP configuration:

```json
{
    "mcpServers": {
        "apify": {
            "url": "https://mcp.apify.com?tools=automation-lab/udemy-courses-scraper"
        }
    }
}
```

Selecting this Actor also adds the standard run and dataset tools (`get-actor-run`, `get-dataset-items` and others). Start one run, keep its run ID, check that same run until it finishes, then read the dataset in pages with a `limit` instead of loading every row at once.

Example prompts:

- "Find the 50 most reviewed Udemy courses about Excel and list their price and students."
- "Which free Spanish web development courses on Udemy have a rating of 4.5 or more?"
- "Compare these three Udemy course URLs by rating, students and last update."

### Is it legal to scrape Udemy?

This Actor collects only public course information that Udemy shows to every visitor without logging in: titles, prices, ratings and public instructor profiles. It does not log in, does not access paid course content and does not collect learners' personal data.

You are responsible for how you use the data. Respect Udemy's terms of use, copyright in course descriptions and images, and privacy laws such as GDPR when you store instructor names. This Actor is not affiliated with or endorsed by Udemy. If in doubt, ask a lawyer.

### Data handling and diagnostics

Your results are stored only in your own Apify storage and follow your account's retention settings. When a run fails, the Actor sends a sanitized error report (error message, Actor, build and run IDs, and the input with secret fields and URL query strings removed) to our private GlitchTip error tracker so we can fix the problem. These reports are kept for 30 days and are not deleted when you delete your Apify storage. No AI model is called.

### FAQ

**How many courses can I scrape?**
Up to 10,000 per keyword or listing URL, which is the most Udemy itself shows. Use several keywords or topic URLs for more.

**Why are the prices different from what I see in my browser?**
Udemy prices depend on your country and on running sales. Set `priceCountry` to your country code to see your prices.

**Why did a course URL return nothing?**
The course was removed, made private or the URL slug is wrong. Open the URL in your browser to check; the run log names each course that was skipped.

**Why are fewer courses returned than Maximum courses?**
The search or topic has fewer matching courses, or the courses were already saved earlier in the same run. The status message tells you which.

**Does it scrape reviews?**
No. This Actor returns course-level data including the rating and review count, not individual review texts.

### Related Actors

- [Coursera Course Catalog Scraper](https://apify.com/automation-lab/coursera-course-catalog): course data from Coursera.
- [LinkedIn Learning Course Catalog](https://apify.com/automation-lab/linkedin-learning-course-catalog): course data from LinkedIn Learning.
- [YouTube Scraper](https://apify.com/automation-lab/youtube-scraper): videos and channel data from YouTube.

# Changelog

This Actor's version history is a separate document: https://apify.com/automation-lab/udemy-courses-scraper/changelog.md

# Actor input Schema

## `searchQueries` (type: `array`):

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.

## `startUrls` (type: `array`):

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.

## `maxItems` (type: `integer`):

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.

## `languages` (type: `array`):

Keep only courses taught in any of these languages. Empty means all languages. Applies to keywords, topic, category and search URLs.

## `levels` (type: `array`):

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.

## `price` (type: `string`):

Keep only free or only paid courses.

## `minRating` (type: `string`):

Keep only courses whose average rating is at least this value.

## `sortBy` (type: `string`):

Order in which Udemy returns courses for keywords, topics and categories. With a limit, this decides which courses you get.

## `includeDescription` (type: `boolean`):

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.

## `priceCountry` (type: `string`):

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.

## `proxyConfiguration` (type: `object`):

Udemy blocks many server IPs, so requests go through Apify Proxy. Datacenter proxy is enough; the default works for most users.

## Actor input object example

```json
{
  "searchQueries": [
    "python"
  ],
  "startUrls": [
    {
      "url": "https://www.udemy.com/course/complete-python-bootcamp/"
    }
  ],
  "maxItems": 20,
  "price": "any",
  "minRating": "0",
  "sortBy": "relevance",
  "includeDescription": false,
  "priceCountry": "US",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Main table: title, instructors, rating, reviews, students, price, level, duration, last update and badges.

## `pricing` (type: `string`):

Current price, list price, discount, currency and bestseller flag per course.

## `details` (type: `string`):

Category, topic, language, level, lecture, quiz and practice-test counts, dates and certificate per course.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searchQueries": [
        "python"
    ],
    "startUrls": [
        {
            "url": "https://www.udemy.com/course/complete-python-bootcamp/"
        }
    ],
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("automation-lab/udemy-courses-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "searchQueries": ["python"],
    "startUrls": [{ "url": "https://www.udemy.com/course/complete-python-bootcamp/" }],
    "maxItems": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("automation-lab/udemy-courses-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchQueries": [
    "python"
  ],
  "startUrls": [
    {
      "url": "https://www.udemy.com/course/complete-python-bootcamp/"
    }
  ],
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call automation-lab/udemy-courses-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,automation-lab/udemy-courses-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/E0YFJD2dYaRbJKNMf/builds/EhDKwcurpdrEEEe1X/openapi.json
