# Udemy Courses Scraper · Prices & outcomes · $2.392/1K (`mlg14/udemy-scraper`) Actor

Scrape Udemy courses from search URLs for e-learning market research, course catalog building and competitor tracking. Returns ratings, reviews, instructors, duration, learning outcomes, badges and current prices. Filters via URL. No login. $2.392/1K results.

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

## Pricing

$2.39 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

Scrape Udemy course search results and export Udemy course data as JSON or CSV. This Udemy search scraper collects course titles, ratings, review counts, instructors, learning outcomes, duration, images, badges, and current prices from public course listings. It is a practical Udemy course search API alternative for building a repeatable catalog from search URLs.

Each result represents one course. Supply one or more course search URLs, set a maximum number of courses, and receive a structured dataset ready for comparison or monitoring. The actor follows search pagination, removes duplicate course IDs across input URLs, and can fetch the current US price for each result. Course information is public; no account or sign-in is required.

### What data can you extract from Udemy?

The output uses stable, readable field names. A missing source value is returned as null; lists without entries are returned as empty lists. The same fields appear in each course record, which makes repeated exports easy to compare.

| Field | Description | Example |
| --- | --- | --- |
| `searchUrl` | Input search URL that first returned the course | `https://www.udemy.com/courses/search/?q=python` |
| `courseId` | Stable public course identifier | `2776760` |
| `title` | Published course title | `100 Days of Code™: The Complete Python Pro Bootcamp` |
| `headline` | Short course summary shown in search | `Master Python by building 100 projects...` |
| `url` | Direct course landing URL | `https://www.udemy.com/course/100-days-of-code/` |
| `rating` | Average course rating | `4.672883033752441` |
| `numReviews` | Number of public ratings | `436813` |
| `durationSeconds` | Total published duration in seconds | `204491` |
| `contentHours` | Duration in hours, rounded to two decimals | `56.8` |
| `numPublishedLectures` | Published lecture count | `604` |
| `numPracticeTestQuestions` | Practice test question count | `0` |
| `instructorNames` | Public instructor display names | list of names |
| `instructorIds` | Public instructor identifiers | list of IDs |
| `objectivesSummary` | Published learning outcomes | list of objectives |
| `badgeNames` | Badge labels shown for the course | `["Bestseller"]` |
| `badgeFamilies` | Normalized badge categories | `["bestseller"]` |
| `language` | Course locale | `en-US` |
| `level` | Instructional level from search | `ALL_LEVELS` |
| `updatedOn` | Last updated date supplied by search | `2026-09-15` |
| `isPaid` | Whether the course is paid | `true` |
| `isPracticeTestCourse` | Whether the listing is a practice test course | `false` |
| `priceAmount` | Current numeric price when enabled | `129.99` |
| `priceCurrency` | Currency of the current price | `USD` |
| `priceText` | Formatted current price | `$129.99` |
| `image100x100` | Small square course image URL | image URL |
| `image125H` | Course image at 125 pixel height | image URL |
| `image240x135` | Medium landscape image URL | image URL |
| `image304x171` | Larger landscape image URL | image URL |
| `image480x270` | Large landscape image URL | image URL |

The rating is a numeric average rather than a formatted star label. `numReviews` is the count returned by public search data and should not be interpreted as a count of written review text. The actor collects course listings and metadata; it does not extract individual review bodies or private enrollment information.

The price fields require `includePrices: true`. They come from each course's public detail response after the search result is found. Prices are requested with a US proxy location, so the currency normally appears as USD. Promotions, location rules, and changes on the site can alter prices between runs. For a historical price series, store each scheduled export with its collection time.

### How to scrape Udemy

1. Open the course search page, enter a topic, and copy the search URL. A valid URL includes `/courses/search/` and a nonempty `q` parameter.
2. Paste that URL into `searchUrls`. Add more URLs to cover other topics or alternate sorts. Courses appearing in more than one URL are delivered once.
3. Set `maxItems` for the number of unique courses you want. The default is 100. Choose whether to include current prices.
4. Run the actor. It requests the public search data page by page, then requests course detail data for prices when that option is enabled.
5. Download the dataset in JSON or CSV, or read it through the platform's dataset endpoint.

For example, a search URL ending in `?q=python` starts at the first page of courses related to that term. A URL with `&p=3` starts at the third visible page. The actor stops when it reaches the requested result count or the search response reports no further pages. It does not manufacture extra matches to reach a requested count.

### Input

| Parameter | Type | Default | Description |
| --- | --- | --- | --- |
| `searchUrls` | array of URLs | required | One or more Udemy course search URLs. Each needs a `q` term. |
| `maxItems` | integer | `100` | Maximum unique courses across all search URLs. Use `0` to continue through available pages. |
| `includePrices` | boolean | `true` | Request a public course detail record for each result to include a current price and currency. |
| `proxyConfiguration` | object | automatic proxy | Optional proxy settings. Automatic rotation is recommended. |

```json
{
  "searchUrls": [
    "https://www.udemy.com/courses/search/?q=python"
  ],
  "maxItems": 36,
  "includePrices": true
}
```

Search URLs can carry a start page with `p`, a sort choice with `sort`, and common search filters for rating, language, free or paid price, and instructional level. Supported sort values are `relevance`, `newest`, `highest-rated`, and `most-reviewed`. The actor reads the search term from the URL; it does not accept an unrelated general page URL as a search request. Leave an ordinary search URL unchanged when no filter is needed.

The maximum applies to unique courses, not to raw rows fetched. If two search URLs return the same course, that course is counted only at its first appearance. The `searchUrl` field records that first matching input URL. Changing the order of input URLs can therefore change this field for overlapping results, while the `courseId` remains the same.

### Output example

The following values are from a successful 36-course run using the input above. This excerpt shows selected fields from one real item; long lists and image variants are omitted for readability.

```json
{
  "searchUrl": "https://www.udemy.com/courses/search/?q=python",
  "courseId": 2776760,
  "title": "100 Days of Code™: The Complete Python Pro Bootcamp",
  "headline": "Master Python by building 100 projects in 100 days. Learn data science, automation, build websites, games and apps!",
  "url": "https://www.udemy.com/course/100-days-of-code/",
  "rating": 4.672883033752441,
  "numReviews": 436813,
  "durationSeconds": 204491,
  "contentHours": 56.8,
  "numPublishedLectures": 604,
  "language": "en-US",
  "level": "ALL_LEVELS",
  "updatedOn": "2026-09-15",
  "isPaid": true,
  "priceAmount": 129.99,
  "priceCurrency": "USD",
  "priceText": "$129.99",
  "image480x270": "https://img-c.udemycdn.com/course/480x270/2776760_f176_10.jpg"
}
```

A course can have multiple instructor names, objectives, or badges. Those fields are lists even if only one entry is present. The course URL is normalized to an absolute address with a trailing slash. Search IDs are converted to numbers so they can serve as stable keys in a catalog or comparison table.

### Use cases

- **Course catalog research:** Assemble courses for a topic, then compare titles, levels, duration, lecture counts, and ratings in one dataset.
- **Curriculum planning:** Review published learning outcomes and course lengths to identify common topics and gaps in an education catalog.
- **Price monitoring:** Run the same search regularly and compare current US prices by `courseId`. Keep the run date with each export so later changes have context.
- **Instructor analysis:** Group results by public instructor ID or name to understand which instructors appear across a topic's visible search results.
- **Content discovery:** Filter a dataset by course level, language, rating, and duration to create a shortlist for a learning program.
- **Search position tracking:** Export successive search pages and compare the order of visible courses over time. Result order may change, so preserve the input URL and run date.

These uses rely on public listing data. Ratings and prices are snapshots, not permanent properties. A course's title, outcomes, and image may also be edited after an export. Repeating the same input gives a fresh view rather than a guaranteed identical dataset.

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

The configured rate is **$2.392 per 1,000 delivered course records**, or $0.002392 per record. Platform usage is included in that per-result charge. A course returned by several input URLs is delivered once and counted once. Check the actor's current pricing panel before a large run because pricing can change.

| Delivered courses | Calculation | Approximate charge |
| ---: | ---: | ---: |
| 36 | 36 × $0.002392 | $0.09 |
| 1,000 | 1,000 × $0.002392 | $2.39 |
| 5,000 | 5,000 × $0.002392 | $11.96 |

The `maxItems` limit is the main cost control. Setting it to 100 caps the delivered dataset at 100 records and the result charge at about $0.24 at this rate. A run that finds fewer public matches delivers fewer records. Enabling prices adds requests and can increase run time, but the displayed per-result rate remains the same. If a user budget limit is reached, the actor stops pushing additional records.

### Tips for best results

Start with a focused search term and a modest `maxItems` value. A broad term can expose hundreds of result pages, while a focused term is easier to review and compare. Use several focused URLs when building a larger catalog: one input can cover a subject, another a specialization, and another an alternate sort. The actor deduplicates their shared courses.

The search page uses 24 courses per result page. For 100 unique courses, expect at least five search pages if there is little overlap and enough results. When current prices are enabled, expect one additional detail request per unique course. Turn `includePrices` off if you need a faster catalog without prices. In that mode, the price fields remain null while the search fields are still populated.

Sort options can surface different parts of a large result set. A relevance search, a newest search, and a most-reviewed search can produce useful complementary views. The actor keeps the first appearance of an ID, so place the URL whose ordering matters most first. Use the start-page parameter when you deliberately want to continue from a later visible page.

For recurring monitoring, keep the same URL list, order, limit, and price setting. Store the collection date alongside each downloaded dataset. Compare records by `courseId` rather than title: titles can change, and similar titles can belong to separate courses. Check a course landing page before making decisions that depend on a current price or a specific published curriculum.

### Limits

Search is limited by what the public search response exposes. In the verified broad search, the response reported 417 pages and a count of 10,000; those values are site supplied and may differ for another term. The actor follows the reported page count and does not bypass a result cap. For broader coverage, use distinct, focused searches or supported filters and deduplicate by `courseId` after export.

The target sometimes returns a 403 block to a datacenter request. The actor rotates proxy sessions and escalates to a residential proxy for a blocked search. This worked in the verified run, but the site can change its access rules at any time. A search that remains blocked after retries is reported as failed. If every input search fails and no records are produced, the run fails rather than reporting an empty success.

Some optional fields may be missing for individual courses. A badge list can legitimately be empty. A course may have no public rating, a different locale, or no current price in its detail response. The actor keeps the course record and uses null for missing scalar values. Prices depend on location and current offers; they are not historical list prices or a promise that every visitor will see the same amount.

This actor extracts course metadata and published learning outcomes. It does not collect video lessons, paid material, student records, account data, written review bodies, or private instructor details. It also does not guarantee a fixed ranking, a fixed number of results for a term, or permanent access to a public endpoint.

### Automated workflows

The input and output can be used by any workflow that accepts JSON. Two example instructions for a scheduled workflow are:

- “Collect the first 100 courses for this search URL each week, then report changes in rating, review count, and price by course ID.”
- “Collect three subject searches, remove overlaps by course ID, and shortlist courses with at least 20 hours of content and a rating above 4.5.”

Provide a valid `searchUrls` value and a sensible `maxItems` limit when starting such a workflow. Downstream steps should treat a null price as unknown, not zero, and should distinguish a missing badge from a failure. Save the original dataset if an audit trail matters, because later site responses may differ.

### Use with AI agents (MCP)

Add this actor to any MCP client (Claude, Cursor, VS Code, n8n and others) with one URL:

`https://mcp.apify.com?tools=mlg14/udemy-scraper`

The actor returns one dataset item per Udemy course: title, rating, review count, instructors, duration, learning outcomes, badges, images and optional current price. Set `maxItems` to keep results bounded, and set `includePrices` to false for faster runs.

**Prompt 1:** "Get 24 Udemy courses about python with current prices."

```json
{
  "searchUrls": ["https://www.udemy.com/courses/search/?q=python"],
  "maxItems": 24,
  "includePrices": true
}
```

**Prompt 2:** "List the 20 newest Udemy courses on machine learning, no prices needed."

```json
{
  "searchUrls": ["https://www.udemy.com/courses/search/?q=machine+learning&sort=newest"],
  "maxItems": 20,
  "includePrices": false
}
```

**Prompt 3:** "Compare Udemy courses for excel and sql, 15 in total, highest rated first."

```json
{
  "searchUrls": [
    "https://www.udemy.com/courses/search/?q=excel&sort=highest-rated",
    "https://www.udemy.com/courses/search/?q=sql&sort=highest-rated"
  ],
  "maxItems": 15,
  "includePrices": true
}
```

### FAQ

#### Is it legal to scrape these course listings?

The actor accesses public listing data without signing in. Whether a particular use is permitted depends on the applicable terms, jurisdiction, and purpose. Respect the site's terms, applicable privacy law, and reasonable request volume. Do not use public names or identifiers for misuse of personal data.

#### Do I need to configure a proxy?

Usually no. Automatic proxy handling is the default. The actor starts with a datacenter route and escalates after blocks. A custom proxy configuration may be useful in a restricted environment, but it can also prevent the automatic route from working as verified.

#### How fast is a run?

Run time depends on blocks, retries, the number of search pages, and whether prices are requested. The verified 36-course run completed successfully in about two minutes. A catalog without prices usually needs fewer requests. Large searches can take longer as the actor follows more pages and may rotate connections.

#### Can I schedule the same search and monitor changes?

Yes. Save the input and schedule repeat runs through the platform. Keep each dataset with its run time, then join records by `courseId`. Compare price, rating, review count, duration, and update date as separate measures; each can change independently.

#### Can I export the results to a spreadsheet?

Yes. Download the dataset as CSV for spreadsheet use, or as JSON for a structured data pipeline. Lists such as learning outcomes may need expansion into separate columns or rows in a spreadsheet. The overview table displays the principal scalar fields first.

#### Why is a field empty?

The site may not provide the value for a given course, or a detail request may fail while its search listing succeeds. Badge lists are often empty by design. If `includePrices` is false, price fields are always null. Check the direct course URL for a current human-readable listing before relying on a missing or unusual value.

#### Does the actor include full course reviews or lesson content?

No. `numReviews` is an aggregate count from search data. The actor does not collect the text of individual reviews, lesson video or audio, exercise answers, or account-only content. Its purpose is public course discovery and comparison.

### Integrations

Use the default dataset endpoint to retrieve records in a data pipeline, send completion events to a webhook, or schedule repeat searches. JSON supports direct processing; CSV supports tables and spreadsheet imports. For a durable catalog, store `courseId` as the key, the collection time as a separate field, and the original `searchUrl` for context. This keeps changes in ranking and course metadata interpretable across repeated runs.

### Support

Open an issue on the Issues tab; we reply within 24 hours and add fields on request. Include the search URL, run link, and the name of any missing field so the issue can be reproduced.

# Actor input Schema

## `searchUrls` (type: `array`):

Udemy course search URLs, each with a q parameter; multiple URLs are merged and duplicates removed. Optional p, sort (relevance, newest, highest-rated, most-reviewed), ratings, lang, price, instructional_level. Example: https://www.udemy.com/courses/search/?q=python\&sort=newest. Use one URL per topic.

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

Maximum number of unique Udemy courses returned across all search URLs, e.g. 50. Set 0 for every available page. Use a small value such as 24 for quick tests and larger values for full catalog exports.

## `includePrices` (type: `boolean`):

Fetch each course's current US price and currency (adds one request per course). Allowed values: true or false. Example: true. Use true for price monitoring; set false for faster, cheaper runs when only ratings and metadata matter.

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

Proxy settings. Automatic proxy rotation is recommended for course search.

## Actor input object example

```json
{
  "searchUrls": [
    "https://www.udemy.com/courses/search/?q=python"
  ],
  "maxItems": 100,
  "includePrices": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `courses` (type: `string`):

All extracted courses in the default dataset.

# 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 = {
    "searchUrls": [
        "https://www.udemy.com/courses/search/?q=python"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("mlg14/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 = { "searchUrls": ["https://www.udemy.com/courses/search/?q=python"] }

# Run the Actor and wait for it to finish
run = client.actor("mlg14/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 '{
  "searchUrls": [
    "https://www.udemy.com/courses/search/?q=python"
  ]
}' |
apify call mlg14/udemy-scraper --silent --output-dataset

```

## MCP server setup

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