# University Course Catalog Scraper: Edu Data Intelligence (`scrapepilot/university-course-catalog-scraper-edu-data-intelligence`) Actor

University Courses: Scrape course listings from MIT OpenCourseWare, Harvard, Stanford, Yale and Cornell. Returns course code, title, credits, department, instructor, description and syllabus link. Filter by keyword and department. Demo mode included.

- **URL**: https://apify.com/scrapepilot/university-course-catalog-scraper-edu-data-intelligence.md
- **Developed by:** [Scrape Pilot](https://apify.com/scrapepilot) (community)
- **Categories:** Developer tools, Lead generation, Automation
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

$7.99/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period.You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#rental-actors

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

## 🎓 University Course Catalog Scraper

Scrape **real course listings** from public university catalogs — MIT OpenCourseWare, Harvard, Stanford, Yale, Cornell and any university with a public course catalog.

Returns structured course data: course code, title, credits, semester, department, instructor, description and direct syllabus link.

---

### 🎯 Quick Start — Demo Mode

**Get 10 real courses in 2 seconds:**

1. Toggle **Demo Mode** → **ON**
2. Click **Run Actor**
3. Get real courses from Harvard, MIT, Stanford, Yale and Cornell

---

### 📦 Output Fields

| Field | Type | Description | Example |
|-------|------|-------------|---------|
| `Course_Code` | string | Official course code | `CS50` |
| `Title` | string | Full course title | `Introduction to Computer Science` |
| `Credits` | string | Credit hours or units | `4.0` |
| `Semester` | string | Term offered | `Fall 2026` |
| `Department` | string | Academic department | `Computer Science` |
| `Instructor` | string | Professor / instructor name | `David J. Malan` |
| `Description` | string | Course description | `A broad and robust understanding...` |
| `Syllabus_Link` | string | Direct course/syllabus URL | `https://cs50.harvard.edu/...` |
| `Level` | string | Academic level | `Undergraduate` |
| `Schedule` | string | Meeting times | `Mon/Wed 10:00–11:30 AM` |
| `university` | string | University name | `Harvard University` |
| `Proxy_Status` | string | Proxy used | `RESIDENTIAL-SECURE` |
| `Timestamp` | string | Extraction time (UTC) | `2026-03-28T21:20:00Z` |

---

### 📋 Example Output

```json
{
  "Course_Code": "6.034",
  "Title": "Artificial Intelligence",
  "Credits": "12 units",
  "Semester": "Fall 2026",
  "Department": "Electrical Engineering and Computer Science",
  "Instructor": "Patrick H. Winston",
  "Description": "Introduces representations, methods, and architectures used to build applications...",
  "Syllabus_Link": "https://ocw.mit.edu/courses/6-034-artificial-intelligence-fall-2010/",
  "Level": "Undergraduate",
  "Schedule": "Tue/Thu 11:00 AM–12:30 PM",
  "university": "MIT",
  "Proxy_Status": "RESIDENTIAL-SECURE",
  "Timestamp": "2026-03-28T21:20:00Z"
}
````

***

### 🏛️ Recommended URLs

| University | Public Catalog URL |
|------------|-------------------|
| **MIT** (best) | `https://ocw.mit.edu/search/?q=KEYWORD&type=course` |
| **MIT All Courses** | `https://ocw.mit.edu/search/?type=course` |
| **Harvard** | `https://catalog.college.harvard.edu/` |
| **Stanford** | `https://online.stanford.edu/courses` |
| **Yale** | `https://oyc.yale.edu/` |
| **Cornell** | `https://courses.cornell.edu/` |

> **Note:** `courses.my.harvard.edu` requires student login. Use `catalog.college.harvard.edu` instead (public).

***

### ⚙️ Input Examples

#### MIT Machine Learning courses

```json
{"university_url": "https://ocw.mit.edu/search/?q=machine+learning&type=course", "max_results": 20}
```

#### Multiple universities

```json
{
  "university_urls": "https://ocw.mit.edu/search/?q=python\nhttps://oyc.yale.edu/",
  "keyword": "python"
}
```

#### Filter by department

```json
{
  "university_url": "https://ocw.mit.edu/search/?type=course",
  "department": "Computer Science",
  "max_results": 50
}
```

***

### 🎯 Use Cases

| Use Case | Who Uses It |
|----------|------------|
| **Course Research** | Students comparing courses across universities |
| **EdTech Platforms** | Building course catalogs and databases |
| **Academic Analytics** | Analyzing curriculum offerings and trends |
| **Content Creation** | Writing about university programs |
| **Career Planning** | Finding relevant courses in a field |

***

### 🔑 Keywords

university course scraper, course catalog extractor, MIT OpenCourseWare scraper, Harvard course catalog, Stanford course scraper, academic course data, syllabus scraper, university curriculum data, online course extractor, college course catalog

***

### 💰 Pricing

**$7.99/month** — Unlimited university course catalog extraction.

# Actor input Schema

## `demo_mode` (type: `boolean`):

ON → instantly returns 10 real courses from Harvard, MIT, Stanford, Yale and Cornell — no scraping needed.

## `university_url` (type: `string`):

Public course catalog URL.

Working examples:
https://ocw.mit.edu/search/?q=python\&type=course
https://ocw.mit.edu/search/?q=machine+learning
https://catalog.college.harvard.edu/

## `university_urls` (type: `string`):

Multiple catalog URLs, one per line.

## `keyword` (type: `string`):

Only return courses containing this keyword in title or description. E.g: 'machine learning', 'python', 'statistics'

## `department` (type: `string`):

Filter courses by department name. E.g: 'Computer Science', 'Mathematics', 'Economics'

## `max_results` (type: `integer`):

Maximum number of courses to return

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

RESIDENTIAL proxy recommended — some university sites block datacenter IPs.

## Actor input object example

```json
{
  "demo_mode": false,
  "university_url": "https://ocw.mit.edu/search/?q=machine+learning&type=course",
  "max_results": 30,
  "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 = {
    "university_url": "https://ocw.mit.edu/search/?q=machine+learning&type=course",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapepilot/university-course-catalog-scraper-edu-data-intelligence").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 = {
    "university_url": "https://ocw.mit.edu/search/?q=machine+learning&type=course",
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("scrapepilot/university-course-catalog-scraper-edu-data-intelligence").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "university_url": "https://ocw.mit.edu/search/?q=machine+learning&type=course",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call scrapepilot/university-course-catalog-scraper-edu-data-intelligence --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=scrapepilot/university-course-catalog-scraper-edu-data-intelligence",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "University Course Catalog Scraper: Edu Data Intelligence",
        "description": "University Courses: Scrape course listings from MIT OpenCourseWare, Harvard, Stanford, Yale and Cornell. Returns course code, title, credits, department, instructor, description and syllabus link. Filter by keyword and department. Demo mode included.",
        "version": "0.0",
        "x-build-id": "MwSYjYejfOP53rMO8"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/scrapepilot~university-course-catalog-scraper-edu-data-intelligence/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-scrapepilot-university-course-catalog-scraper-edu-data-intelligence",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/scrapepilot~university-course-catalog-scraper-edu-data-intelligence/runs": {
            "post": {
                "operationId": "runs-sync-scrapepilot-university-course-catalog-scraper-edu-data-intelligence",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/scrapepilot~university-course-catalog-scraper-edu-data-intelligence/run-sync": {
            "post": {
                "operationId": "run-sync-scrapepilot-university-course-catalog-scraper-edu-data-intelligence",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "demo_mode": {
                        "title": "🎯 Demo Mode",
                        "type": "boolean",
                        "description": "ON → instantly returns 10 real courses from Harvard, MIT, Stanford, Yale and Cornell — no scraping needed.",
                        "default": false
                    },
                    "university_url": {
                        "title": "University Catalog URL",
                        "type": "string",
                        "description": "Public course catalog URL.\n\nWorking examples:\nhttps://ocw.mit.edu/search/?q=python&type=course\nhttps://ocw.mit.edu/search/?q=machine+learning\nhttps://catalog.college.harvard.edu/"
                    },
                    "university_urls": {
                        "title": "Multiple University URLs",
                        "type": "string",
                        "description": "Multiple catalog URLs, one per line."
                    },
                    "keyword": {
                        "title": "Keyword Filter",
                        "type": "string",
                        "description": "Only return courses containing this keyword in title or description. E.g: 'machine learning', 'python', 'statistics'"
                    },
                    "department": {
                        "title": "Department Filter",
                        "type": "string",
                        "description": "Filter courses by department name. E.g: 'Computer Science', 'Mathematics', 'Economics'"
                    },
                    "max_results": {
                        "title": "Max Courses",
                        "type": "integer",
                        "description": "Maximum number of courses to return",
                        "default": 30
                    },
                    "proxyConfiguration": {
                        "title": "Proxy (RESIDENTIAL Recommended)",
                        "type": "object",
                        "description": "RESIDENTIAL proxy recommended — some university sites block datacenter IPs."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
