# Udemy Course Scraper 📚 (`easyapi/udemy-course-scraper`) Actor

Extract detailed course information from Udemy.com with this powerful scraper. Collect comprehensive data about online courses, including ratings, content details, instructors, and pricing. Perfect for market research, content aggregation, and educational platform development.

- **URL**: https://apify.com/easyapi/udemy-course-scraper.md
- **Developed by:** [EasyApi](https://apify.com/easyapi) (community)
- **Categories:** Integrations, Other
- **Stats:** 214 total users, 26 monthly users, 100.0% runs succeeded, 3 bookmarks
- **User rating**: 4.68 out of 5 stars

## Pricing

from $2.99 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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 Course Scraper 📚

Powerful scraper for extracting detailed course information from Udemy.com. Get comprehensive data about online courses including ratings, content details, instructors, and pricing.

### 🔍 Features

- Extract detailed course information from Udemy search results
- Support multiple search URLs
- Customizable maximum items limit
- Built-in proxy rotation support
- Smart pagination handling
- Rate limiting and random delays for reliable scraping
- Rich course metadata including:
  - Course title and URL
  - Rating and number of reviews
  - Course duration and content details
  - Instructor information
  - Course objectives
  - Badge and certification details
  - Pricing information
  - Image URLs in various sizes

### 🎯 Use Cases

- Market research and competitive analysis
- Course content aggregation
- Educational platform development
- Price monitoring
- Course recommendation systems
- Learning resource cataloging

### 💡 Sample Output

The scraper provides detailed JSON output for each course, including:

- Complete course details
- Instructor profiles
- Content statistics
- Rating metrics
- Media assets
- Pricing information

### 📋 Input Parameters

- `searchUrls`: Array of Udemy search URLs to scrape
- `maxItems`: Maximum number of items to collect (optional)
- `proxyConfiguration`: Proxy settings (optional)

### 🚀 Getting Started

1. Input your desired Udemy search URLs
2. Set maximum items limit (optional)
3. Configure proxy settings if needed
4. Run the actor and collect your data!

### 📊 Output Format

Results are stored in JSON format, with each entry containing comprehensive course information including title, rating, instructor details, content duration, and more.

#### Input Example

A full explanation of an input example in JSON.

```json
{
    "searchUrls": [
        "https://www.udemy.com/courses/search/?src=ukw&q=ai"
    ],
    "maxItems": 80
}
```

#### Output sample

The results will be wrapped into a dataset which you can always find in the **Storage** tab. Here's an excerpt from the data you'd get if you apply the input parameters above:

And here is the same data but in JSON. You can choose in which format to download your data: JSON, JSONL, Excel spreadsheet, HTML table, CSV, or XML.

```json
[
    {
        "searchUrl": "https://www.udemy.com/courses/search/?src=ukw&q=ai",
        "headline": "25+ Generative <strong>AI</strong> Tools to 10x Business, Productivity, Creativity | Prompt Engineering, ChatGPT, Custom GPTs, Midjourney",
        "rating": 4.51503,
        "image_100x100": "https://img-c.udemycdn.com/course/100x100/5170404_d282_9.jpg",
        "image_304x171": "https://img-c.udemycdn.com/course/304x171/5170404_d282_9.jpg",
        "primary_labelIds_is": "[158002]",
        "hrs_of_content_f": "30.7148991",
        "num_reviews": 44584,
        "num_practice_test_i": "0",
        "visible_instructors": [
            {
                "title": "Julian Melanson",
                "display_name": "Julian Melanson"
            },
            {
                "title": "Benza Maman",
                "display_name": "Benza Maman"
            },
            {
                "title": "Leap Year Learning",
                "display_name": "Leap Year Learning"
            }
        ],
        "image_240x135": "https://img-c.udemycdn.com/course/240x135/5170404_d282_9.jpg",
        "_class": "course",
        "hrs_of_video_f": "30.5958328",
        "num_resources_download_i": "22",
        "num_simple_quiz_i": "0",
        "objectives_summary": [
            "ChatGPT: Create content, synthesize information, and learn faster than ever with effective prompt engineering!",
            "ChatGPT: Turn your creativity into paid work,  generate fresh ideas, reach new audiences, and scale your projects!",
            "Productivity: Achieve your goals faster with ChatGPT, manage your time, prioritize tasks, and create an optimized daily schedule!"
        ],
        "num_asset_video_i": "433",
        "ppi_all_funnels_f": "0.002151019687886661",
        "id": 5170404,
        "is_practice_test_course": false,
        "url": "/course/complete-ai-guide/",
        "image_480x270": "https://img-c.udemycdn.com/course/480x270/5170404_d282_9.jpg",
        "num_coding_exercise_i": "0",
        "num_published_lectures": 454,
        "badge_families": [
            "bestseller",
            "bestseller",
            "bestseller"
        ],
        "lang_s": "en",
        "title": "ChatGPT Complete Guide: Learn Generative AI, ChatGPT & More",
        "primary_label_ids": "[158002]",
        "badge_types": [
            "best_seller_category_topic",
            "best_seller_subcategory",
            "best_seller_subcategory_topic"
        ],
        "is_paid": true,
        "image_125_H": "https://img-c.udemycdn.com/course/125_H/5170404_d282_9.jpg",
        "predictive_score": 1.1040643453598022,
        "relevancy_score": 13001.2548828125,
        "tracking_id": "K3rttbxbTKKeU4ZhCuYZzg",
        "content_info": "30.5 total hours",
        "instructional_level_simple": "All Levels",
        "badges": [
            {
                "_class": "ds_course_badge",
                "id": "65fd46b1b6364f91ba4f1fc9dba37419",
                "badge_text": "Bestseller",
                "badge_family": "bestseller",
                "context_info": {
                    "category": {
                        "id": 292,
                        "title": "Office Productivity",
                        "url": "/courses/office-productivity/",
                        "tracking_object_type": "cat"
                    },
                    "subcategory": null,
                    "label": {
                        "id": 158002,
                        "display_name": "ChatGPT",
                        "title": "ChatGPT",
                        "topic_channel_url": "/topic/chatgpt/",
                        "url": "/topic/chatgpt/",
                        "tracking_object_type": "cl"
                    }
                }
            }
        ],
        "is_in_user_subscription": false,
        "learn_url": "/course/complete-ai-guide/learn/",
        "buyable_object_type": "course",
        "free_course_subscribe_url": null,
        "is_in_personal_plan_collection": false,
        "num_coding_exercises": 0,
        "is_coding_exercises_badge_eligible": false
    },
    ...
]
```

### Related Actors

- 📚 [Udemy Course Reviews Scraper](https://apify.com/easyapi/udemy-course-reviews-scraper) - Extract detailed course reviews, ratings and student feedback from Udemy courses.
- 🎓 [arXiv Search Scraper](https://apify.com/easyapi/arxiv-search-scraper) - Extract research papers data for academic research and trend analysis.
- 🔬 [Nature Search Results Scraper](https://apify.com/easyapi/nature-search-results-scraper) - Scrape comprehensive research article data from Nature.com.
- 📚 [Goodreads Book Scraper](https://apify.com/easyapi/goodreads-book-scraper) - Extract detailed book information from Goodreads search results.
- 📚 [Goodreads Review Scraper](https://apify.com/easyapi/goodreads-review-scraper) - Extract detailed book reviews and ratings from Goodreads.
- 🎧 [Audible Book Search Scraper](https://apify.com/easyapi/audible-book-search-scraper) - Extract comprehensive audiobook information from Audible.
- 📚 [Wattpad Story Scraper](https://apify.com/easyapi/wattpad-story-scraper) - Scrape stories and related content from Wattpad search results.
- 📚 [Substack Posts Scraper](https://apify.com/easyapi/substack-posts-scraper) - Extract articles and posts from Substack newsletters.
- 📚 [Substack Publications Scraper](https://apify.com/easyapi/substack-publications-scraper) - Scrape detailed publication information from Substack.
- 📄 [Article Content Extractor](https://apify.com/easyapi/article-content-extractor) - Extract clean article content and metadata from any web page.
- 🔍 [Keyword Discovery Tool](https://apify.com/easyapi/keyword-discovery-tool) - Discover new keyword ideas and search insights for content optimization.
- 🎯 [YouTube Tags Extractor](https://apify.com/easyapi/youtube-tags-extractor) - Extract and analyze tags from YouTube videos for content optimization.
- 📝 [YouTube Description Extractor](https://apify.com/easyapi/youtube-description-extractor) - Extract complete descriptions from YouTube videos.
- 🔍 [Keyword Density Checker](https://apify.com/easyapi/keyword-density-checker) - Analyze webpage content for keyword density and optimization.
- 🧠 [Website Content to Markdown for LLM Training](https://apify.com/easyapi/website-content-to-markdown-for-llm-training) - Transform web content into clean, LLM-ready Markdown format.

# Actor input Schema

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

List of Udemy search URLs to scrape

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

Maximum number of courses to scrape (default: 100)

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

Proxy settings for the scraper

## Actor input object example

```json
{
  "searchUrls": [
    "https://www.udemy.com/courses/search/?src=ukw&q=python"
  ],
  "maxItems": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("easyapi/udemy-course-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("easyapi/udemy-course-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 '{}' |
apify call easyapi/udemy-course-scraper --silent --output-dataset

```

## MCP server setup

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