# Udemy Scraper - Courses, Prices, Ratings & Students (`scrapewise/udemy-scraper`) Actor

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.

- **URL**: https://apify.com/scrapewise/udemy-scraper.md
- **Developed by:** [Scrapewise Data](https://apify.com/scrapewise) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.36 / 1,000 course delivereds

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 Scraper: courses with prices for any country, ratings, students and curriculum

Udemy Scraper collects **Udemy courses by keyword or by link**, without a Udemy account or cookies. Each
course comes back as one clean row: title, headline, instructor names, category and subcategory, topics, level,
language, video hours, lectures, quizzes and practice tests, average and recent rating, number of reviews, the
1 to 5 star rating distribution, number of students, badges such as Bestseller, the **current price, list price and
discount for the country you choose**, what you will learn, requirements, target audience, curriculum section titles,
subtitles, and the created, published and last updated dates.

It is used for course market research (which topics sell, at what price, with how many students), to track prices
and discounts across countries, to monitor new courses in a niche every day, to compare instructors and catalogs, and
to build course datasets for recommendation systems, RAG and AI agents.

### At a glance

| What | Price |
|---|---|
| Course delivered | **US$ 1.79 per 1,000 courses** (US$ 0.001791 each) |
| Run start | US$ 0.005 per run |

- 500 courses for a keyword = **US$ 0.91**. 50 courses (the default) = **US$ 0.095**.
- Error rows, duplicates and courses skipped by `onlyNew` are never charged. `maxItems` is a hard cap, and a spending
  limit set on the run stops it cleanly with everything delivered so far.
- Prices, details and the proxy are included: there is no extra charge per request.

### Quick start

Search a keyword:

```json
{
  "searchQueries": ["python"],
  "maxItems": 100
}
```

Free beginner courses in Spanish, highest rated first:

```json
{
  "searchQueries": ["excel", "power bi"],
  "language": ["es"],
  "levels": ["BEGINNER"],
  "price": "free",
  "sortBy": "rating",
  "maxItems": 200
}
```

Specific courses, with the prices shown to buyers in India:

```json
{
  "startUrls": [
    "https://www.udemy.com/course/100-days-of-code/",
    "https://www.udemy.com/course/machinelearning/"
  ],
  "priceCountry": "IN"
}
```

New courses in a niche every day (pair it with a schedule):

```json
{
  "searchQueries": ["generative ai"],
  "sortBy": "newest",
  "onlyNew": true,
  "maxItems": 200
}
```

### Input

| Field | What it does |
|---|---|
| `searchQueries` | Keywords, one per line. Each keyword is one Udemy search (up to 10,000 courses each, Udemy's own cap). |
| `startUrls` | Course links (`/course/...`), course ids, search links (`/courses/search/?q=...`) or topic links (`/topic/...`). |
| `language` | Course languages to keep, for example `en`, `es`, `pt`, `de`, `ja`. Empty = all. |
| `levels` | `ALL_LEVELS`, `BEGINNER`, `INTERMEDIATE`, `EXPERT`. Empty = all. |
| `videoDuration` | `EXTRA_SHORT` (0 to 1 h), `SHORT` (1 to 3 h), `MEDIUM` (3 to 6 h), `LONG` (6 to 17 h), `EXTRA_LONG` (17 h+). |
| `price` | `any` (default), `free` or `paid`. |
| `minRating` | `4.5`, `4.0`, `3.5` or `3.0` and up. |
| `features` | Must include quizzes, coding exercises and/or practice tests. |
| `captionLanguages` | Must have closed captions in these languages. |
| `sortBy` | `relevance` (default), `reviews` (most reviewed), `rating` (highest rated), `newest`. |
| `priceCountry` | Two-letter country code for the prices, for example `US` (default), `GB`, `IN`, `DE`, `BR`. |
| `includeDetails` | Adds rating distribution, recent rating, lectures, quizzes, practice tests, subcategory, dates, certificate and instructor titles (default on). |
| `includePrice` | Adds price, list price, discount and currency (default on). |
| `maxItems` | Cap for the whole run, across all searches and links (default 50; 0 = no cap). |
| `onlyNew` | Remembers what earlier runs of the same search delivered and returns only new courses. |
| `proxyConfiguration` | Apify Proxy by default. |

`searchQuery`, `query`, `keyword`, `keywords`, `urls`, `courseUrls`, `maxResults` and `limit` are accepted too, so
inputs written for other Udemy tools keep working.

### Output

One row per course. Fields marked with \* come with `includeDetails` (on by default); price fields come with
`includePrice` (on by default).

| Field | Example | Notes |
|---|---|---|
| `courseId` | `6125705` | Udemy course id |
| `title`, `headline` | `AWS Certified Machine Learning Engineer Associate: Hands On!` | |
| `url`, `slug`, `imageUrl` | `https://www.udemy.com/course/aws-certified-...` | 480x270 cover image |
| `instructors` | `["Frank Kane", "Stephane Maarek ..."]` | Public instructor names |
| `instructorTitles` \* | `["Best Selling Instructor, 11x AWS Certified, Kafka Guru"]` | The tagline each instructor publishes |
| `category`, `subcategory` \* | `IT & Software`, `IT Certifications` | |
| `topics` | `["AWS Certified Machine Learning Engineer - Associate"]` | Udemy topic tags |
| `level`, `language` | `ALL_LEVELS`, `en-US` | |
| `durationSeconds`, `durationHours` | `90112`, `25.0` | Video length |
| `lectures`, `quizzes`, `practiceTests` \* | `318`, `13`, `2` | Published counts |
| `rating`, `ratingRecent` \* | `4.537` | Average stars, all time and recent |
| `reviewsCount` | `6155` | Number of ratings |
| `ratingDistribution` \* | `{"1": 83, "2": 97, "3": 356, "4": 1736, "5": 3883}` | Count per star |
| `students` | `63714` | Enrolled students |
| `isFree` | `false` | |
| `price`, `listPrice`, `discountPercent`, `currency`, `priceCountry` | `99.99`, `99.99`, `0`, `USD`, `US` | Price shown to buyers in `priceCountry` at run time |
| `badges` | `["Bestseller"]` | Bestseller, Highest Rated, New or Hot & New when Udemy shows them |
| `hasCertificate` \*, `isPracticeTestCourse` | `true`, `false` | |
| `captionLanguages` | `["en-US", "es-ES", "pt-BR"]` | Subtitle locales |
| `learningOutcomes`, `requirements`, `targetAudience` | lists of text | The "What you'll learn", requirements and audience blocks |
| `curriculumSections`, `sectionsCount` | `["Introduction", "Data Ingestion and Storage", ...]` | Section titles in order |
| `createdAt` \*, `publishedAt` \*, `lastUpdated` | `2024-08-01T...`, `2024-08-20T...`, `2026-09-29` | |
| `position` | `5` | Rank in the search results |
| `sourceQuery`, `scrapedAt` | `machine learning` | Which keyword or link produced the row |

#### Example row (real data, shortened)

```json
{
  "type": "course",
  "courseId": "950390",
  "title": "Machine Learning A-Z [2026]: ML, DL, AI with AWS, Python & R",
  "url": "https://www.udemy.com/course/machinelearning",
  "instructors": ["Kirill Eremenko", "Hadelin de Ponteves", "SuperDataScience Team"],
  "category": "Development",
  "subcategory": "Data Science",
  "topics": ["R (programming language)", "Python", "Data Science", "Machine Learning"],
  "level": "ALL_LEVELS",
  "language": "en-US",
  "durationHours": 49.2,
  "lectures": 474,
  "quizzes": 37,
  "practiceTests": 2,
  "rating": 4.495,
  "reviewsCount": 206529,
  "ratingDistribution": {"1": 2092, "2": 3151, "3": 18313, "4": 69749, "5": 113224},
  "students": 1227387,
  "isFree": false,
  "price": 159.99,
  "listPrice": 159.99,
  "discountPercent": 0,
  "currency": "USD",
  "priceCountry": "US",
  "badges": ["Bestseller"],
  "hasCertificate": true,
  "learningOutcomes": ["Make powerful analysis", "Make accurate predictions", "..."],
  "curriculumSections": ["Welcome to the course!", "--- Part 1: Data Preprocessing ---", "..."],
  "lastUpdated": "2026-09-29",
  "position": 1,
  "sourceQuery": "machine learning"
}
```

The same course with `"priceCountry": "IN"` returned `"price": 459.0, "listPrice": 3199.0, "discountPercent": 86,
"currency": "INR"` in the same test: Udemy prices and sales differ a lot by country.

### Errors you may see

Every error is a row with `errorCode` and is never charged:

| errorCode | Meaning |
|---|---|
| `INVALID_URL` | Not a Udemy course, search or topic link |
| `INVALID_INPUT` | A field has a wrong value (for example a 3-letter country code) or Udemy rejected the filter |
| `NOT_FOUND` | The course does not exist, was removed or is private |
| `NO_RESULTS` | Udemy has no course for this keyword and filters |
| `BLOCKED` | Udemy refused every attempt for this search; run it again in a few minutes |

### Integrations, scheduling and AI agents

- **Schedule** a search daily or weekly with [Apify schedules](https://docs.apify.com/platform/schedules) and
  `onlyNew` on to get only the courses published since the last run, or without it to follow prices, students and
  ratings over time.
- **Export** as JSON, CSV, Excel or XML, or read the dataset from the [Apify API](https://docs.apify.com/api/v2).
- **Connect** it to Make, n8n, Zapier or Google Sheets through
  [Apify integrations](https://docs.apify.com/platform/integrations).
- **AI agents:** call it as a tool through the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp)
  in Claude, ChatGPT, Cursor or any MCP client, for example "find the 100 most reviewed Udemy courses about prompt
  engineering and tell me the average price and rating".

### FAQ

**Do I need a Udemy account or API key?** No. The Actor reads the same public data the Udemy website shows to a
visitor, without login, cookies or an affiliate key.

**How many courses can I get?** Udemy shows up to 10,000 courses per search. Use several keywords or filters
(language, level, duration) to cover a larger catalog; duplicates across searches are removed and not charged.

**Why do prices change between runs?** Udemy runs frequent sales and prices by country. The row shows the price at
the moment of the run for `priceCountry`; schedule the Actor to build a price history.

**Can I get the full lecture list or the reviews text?** The curriculum comes as section titles and lecture counts.
Individual reviews are not collected: the row has the totals and the star distribution.

**Is it legal?** The Actor reads public course pages only. Instructor data is limited to the public name and
tagline they publish as creators; no student or reviewer data is collected. You are responsible for how you use the
data under the laws that apply to you.

**Something broke or a field is missing?** Open an issue on the Actor page; issues are answered within a day.

### Limitations

- Prices come for one country per run; run it again with another `priceCountry` to compare.
- With `includeDetails` off, the fields marked with \* in the table are empty.
- Udemy Business only content and private courses are not available.
- Counts and prices are the ones Udemy shows at the moment of the run.

### Changelog

- **16 Oct 2026:** first version: keyword, topic and course link input, all Udemy search filters, price by country,
  rating distribution, curriculum sections, `onlyNew` for schedules.

# Actor input Schema

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

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.

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

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/...).

## `language` (type: `array`):

Keep only courses taught in these languages. Empty = all languages.

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

Keep only these levels. Empty = all.

## `videoDuration` (type: `array`):

Keep only courses with this much video. Empty = any length.

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

Free courses, paid courses or both.

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

Keep only courses with at least this average rating. Empty = any rating.

## `features` (type: `array`):

Keep only courses that include these. Empty = no requirement.

## `captionLanguages` (type: `array`):

Keep only courses with closed captions in these languages. Empty = any.

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

Order of the results, same options as the site. onlyNew switches Most relevant to Newest.

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

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.

## `includeDetails` (type: `boolean`):

On: adds rating distribution, recent rating, lectures, quizzes, practice tests, subcategory, created and published dates, certificate and instructor titles.

## `includePrice` (type: `boolean`):

On: adds the current price, list price, discount and currency for the price country.

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

Hard cap for the whole run, across all searches and links. 0 = no cap (Udemy shows up to 10,000 courses per search).

## `onlyNew` (type: `boolean`):

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.

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

Apify Proxy by default. Change it only if you know you need to.

## Actor input object example

```json
{
  "searchQueries": [
    "python"
  ],
  "price": "any",
  "sortBy": "relevance",
  "priceCountry": "US",
  "includeDetails": true,
  "includePrice": true,
  "maxItems": 50,
  "onlyNew": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `resultsCsv` (type: `string`):

No description

# 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"
    ],
    "maxItems": 50,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapewise/udemy-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"],
    "maxItems": 50,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("scrapewise/udemy-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"
  ],
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call scrapewise/udemy-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapewise/udemy-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/X9BdLkUyhOaSTlD1j/builds/vSHVbVkIcTAJWVXxq/openapi.json
