# Coursera Scraper (`tortuga/coursera-scraper`) Actor

Coursera courses, specializations and professional certificates by keyword, category or URL: partner, instructors, rating, review count, enrolled learners, level, duration, language, skills, free or paid, full description and learner reviews. JSON, CSV or Excel.

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

## Pricing

from $0.56 / 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

## Coursera Scraper

Scrape Coursera courses, specializations and professional certificates by keyword, category or URL: title, partner (university or company), instructors, rating, review count, enrolled learners, level, duration, language, skills, free or paid, full description with learning outcomes, and the public learner reviews shown on each page. Export to JSON, CSV or Excel.

### What you get

| Field | Example |
| --- | --- |
| id, slug, url, type | F-h1g0w7EeWeOApO_l5R1w, python, https://www.coursera.org/specializations/python, specialization |
| title, partner, tagline | Python for Everybody, University of Michigan |
| rating, reviewCount, enrolled | 4.82, 280845, 2039299 |
| level, duration, language, languages | Beginner, 2 months at 10 hours a week, English |
| skills, learningOutcomes, prerequisites | lists of text |
| isFree, offerCategory, inCourseraPlus, certificate, financialAid | false, Subscription, true |
| instructors | name, title, department, coursesTaught, learnersReached |
| courseNames, courseCount | the courses inside a specialization or certificate |
| description, imageUrl | text, image URL |
| reviews (optional) | reviewId, rating, author as displayed (often initials), date, text |

Without "Include details" you get what the search list shows (title, partner, rating, review count, level, duration, skills, free flag). Enrolled learners are shown on the course page, so they need details.

### Input example

```json
{
  "searchQueries": [
    "python"
  ],
  "categories": [
    "data-science"
  ],
  "productTypes": [
    "course",
    "specialization"
  ],
  "includeDetails": true,
  "includeReviews": false,
  "maxItems": 100
}
```

Keywords and categories run as Coursera searches (12 results per page). `startUrls` accepts search pages, browse category pages and course, specialization or professional certificate pages. `productTypes` narrows the search to courses, specializations, professional certificates or guided projects.

### Output example

```json
{
  "id": "8D3R5HiaEeioIg7r4jw_PA",
  "slug": "python-crash-course",
  "url": "https://www.coursera.org/learn/python-crash-course",
  "title": "Crash Course on Python",
  "type": "course",
  "partner": "Google",
  "instructors": [
    {
      "name": "Google Career Certificates",
      "title": null,
      "department": null,
      "coursesTaught": 398,
      "learnersReached": 18794322
    }
  ],
  "rating": 4.77,
  "reviewCount": 40637,
  "enrolled": 1465370,
  "level": "Beginner",
  "duration": "2 weeks at 10 hours a week",
  "language": "English",
  "isFree": false,
  "offerCategory": "Subscription",
  "productType": "COURSE",
  "partners": [
    "Google"
  ],
  "inCourseraPlus": true,
  "courseCount": null,
  "learningOutcomes": [
    "Understand what Python is and why Python is relevant to automation",
    "Write short Python scripts to perform automated actions",
    "Understand how to use the basic Python structures: strings, lists, and dictionaries"
  ],
  "certificate": "Coursera Certificate",
  "financialAid": true
}
```

### Pricing

| Event | Price |
| --- | --- |
| Course | $0.0007 |
| Details | $0.0006 |
| Review | $0.0005 |
| Actor start | $0.00005 |

A course with details costs $0.0013; each review adds $0.0005. Paid plans get volume discounts. Platform usage is included.

### Monitor changes on a schedule

Turn on "Only new or changed items" and save a Task with a Schedule (for example a keyword you track, with details off). The Actor remembers earlier runs and outputs only new items or items whose rating changed; unchanged items are not charged. Each item gets `changeType` and `previousValues`. Use `monitoringKey` to keep several watches apart.

### Proxy note

Apify datacenter proxy is enough. The Actor reads public coursera.org pages (about 700 KB to 1 MB each) at a polite pace of a few requests per second and uses the plain HTTP client of this Actor kit. Measured platform usage was about $0.04 to $0.07 per 1,000 courses with details.

### FAQ

**How do I scrape Coursera courses by keyword?** Add keywords under "Search keywords" (for example python). Each keyword runs the same search the site does and pages through the results until "Max items".

**Can I get enrolled learner counts and instructors?** Yes, with "Include details" on (the default). Learner counts and instructor names come from the course, specialization or certificate page.

**Are reviews included?** Optionally: the public learner reviews shown on each page (about 5 for a course, 12 for a specialization). The author is shown as the site shows it, often initials. The full review archive loads only inside the site and is not returned.

**Does it need a Coursera account?** No. Only public pages are read.

**What about prices?** The site shows whether a product is free to audit or part of a subscription, which the Actor returns as `isFree` and `offerCategory`. Exact fee amounts depend on the learner's country and are not shown to anonymous visitors.

# Actor input Schema

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

Keywords to search on Coursera, one search per entry (for example python or machine learning). A plain string works too.

## `categories` (type: `array`):

Coursera category names or browse slugs (for example data-science or business). Each one runs as a search for that topic.

## `productTypes` (type: `array`):

Only these kinds of products. Leave empty for everything the search returns.

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

Optional Coursera pages: search pages, browse category pages, or course, specialization and professional certificate pages.

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

Open each course page for instructors, enrolled learners, full description, learning outcomes and language. Charged as a separate 'Details' event. Off returns what the search list shows.

## `includeReviews` (type: `boolean`):

Add the public learner reviews shown on each course page (about 5 to 12: author as displayed, rating, date, text). Charged as a separate 'Review' event.

## `maxReviewsPerCourse` (type: `integer`):

Upper limit of reviews added per course.

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

Stop after this many courses. Keeps cost predictable.

## `onlyNewOrChanged` (type: `boolean`):

Remember what earlier runs of this search returned and output only new items or items whose rating changed. Use with a Schedule; unchanged items are not charged.

## `monitoringKey` (type: `string`):

Name for this watch, so several schedules on the same search stay separate; defaults to a key derived from the search input.

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

Apify datacenter proxy is enough.

## Actor input object example

```json
{
  "searchQueries": [
    "python"
  ],
  "includeDetails": true,
  "maxReviewsPerCourse": 12,
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (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": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

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

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

```

## MCP server setup

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