# Udemy Search Scraper (`getdataforme/udemy-search-scraper`) Actor

The Udemy Search Scraper extracts comprehensive course data from Udemy searches, including titles, instructors, ratings, prices, and enrollments....

- **URL**: https://apify.com/getdataforme/udemy-search-scraper.md
- **Developed by:** [GetDataForMe](https://apify.com/getdataforme) (community)
- **Categories:** AI, Developer tools, Automation
- **Stats:** 18 total users, 0 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $9.00 / 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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Udemy Search Scraper

The Udemy Search Scraper is a powerful Apify Actor designed to extract and aggregate course data from Udemy's search results. It enables users to scrape detailed information about courses based on custom search queries, making it ideal for researchers, educators, and businesses seeking insights into online learning trends. By automating the collection of course details, this tool saves time and provides structured data for analysis.

### Features

- **Comprehensive Course Data Extraction**: Scrapes key details including course titles, instructors, ratings, prices, and enrollment numbers from Udemy search pages.
- **Customizable Search Queries**: Allows users to input specific keywords to target relevant courses, ensuring precise data retrieval.
- **Flexible Item Limits**: Set maximum items to process, controlling the scope of data extraction for efficient runs.
- **Proxy Support**: Utilizes residential proxies to bypass restrictions and ensure reliable scraping without IP blocks.
- **High-Performance Scraping**: Built on Apify's robust infrastructure for fast, scalable data collection.
- **Structured JSON Output**: Delivers clean, machine-readable data suitable for integration into databases or analytics tools.
- **Error-Resilient**: Handles common web scraping challenges like dynamic content and rate limits gracefully.

### Input Parameters

| Parameter | Type | Required | Description | Example |
|-----------|------|----------|-------------|---------|
| SearchQuery | string | No | The search query to find relevant Udemy courses. Defaults to a sample query if not specified. | "content marketing" |
| itemLimit | integer | No | Maximum number of courses to scrape. Helps manage run time and data volume. | 10 |
| proxyConfiguration | object | No | Configures proxy settings for anonymous and unrestricted scraping. Uses Apify's residential proxies by default. | {"useApifyProxy": true, "apifyProxyGroups": \["RESIDENTIAL"]} |

### Example Usage

To run the Udemy Search Scraper, provide input parameters in JSON format. Here's an example:

```json
{
  "SearchQuery": "data science",
  "itemLimit": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}
```

Example output (structured JSON array of course objects):

```json
[
  {
    "title": "Data Science Fundamentals",
    "instructor": "John Doe",
    "rating": 4.5,
    "price": "$19.99",
    "enrollments": 15000,
    "url": "https://www.udemy.com/course/data-science-fundamentals/"
  },
  {
    "title": "Advanced Data Analysis",
    "instructor": "Jane Smith",
    "rating": 4.7,
    "price": "$29.99",
    "enrollments": 8500,
    "url": "https://www.udemy.com/course/advanced-data-analysis/"
  }
]
```

### Use Cases

- **Market Research**: Analyze trending courses in specific niches to identify popular topics and emerging skills.
- **Competitive Intelligence**: Monitor competitors' course offerings, pricing, and instructor ratings on Udemy.
- **Price Monitoring**: Track course prices and discounts to inform purchasing or promotional strategies.
- **Content Aggregation**: Build databases of educational content for platforms or learning management systems.
- **Academic Research**: Gather data on course availability and quality for studies in online education.
- **Business Automation**: Automate data feeds for dashboards or reports on e-learning market trends.

### Installation and Usage

1. Search for "Udemy Search Scraper" in the Apify Store
2. Click "Try for free" or "Run"
3. Configure input parameters
4. Click "Start" to begin extraction
5. Monitor progress in the log
6. Export results in your preferred format (JSON, CSV, Excel)

### Output Format

The Actor outputs data as a JSON array of objects, each representing a scraped Udemy course. Key fields include:

- `title`: The course name.
- `instructor`: Name of the course creator.
- `rating`: Average user rating (e.g., 4.5).
- `price`: Current price or discount information.
- `enrollments`: Number of students enrolled.
- `url`: Direct link to the course page.

This structured format ensures easy parsing and integration with tools like Excel, databases, or APIs.

### Support

For custom/simplified outputs or bug reports, please contact:

- Email: support@getdataforme.com
- Subject line: "custom support"
- Contact form: https://getdataforme.com/contact/

We're here to help you get the most out of this Actor!

# Actor input Schema

## `SearchQuery` (type: `string`):

The search query for the spider.

## `itemLimit` (type: `integer`):

Specifies the maximum number of items to process.

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

Specifies proxy servers that will be used by the scraper in order to hide its origin.

## Actor input object example

```json
{
  "SearchQuery": "content marketing",
  "itemLimit": 10,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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 = {
    "itemLimit": 10,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("getdataforme/udemy-search-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 = {
    "itemLimit": 10,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

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

```

## MCP server setup

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