# MIT — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Access comprehensive MIT course and program information including tuition costs, financial aid options, degree programs with their requirements, and detailed course listings. Plan your education by exploring program details and understanding the full cost structure to make informed decisions about your studies at MIT.

**Category:** Education | **Website:** [www.mit.edu/](https://www.mit.edu/) | **Docs:** [parse.bot/marketplace/c84caca1-818e-46bc-bedb-574d7db512c0/mit-edu-api](https://parse.bot/marketplace/c84caca1-818e-46bc-bedb-574d7db512c0/mit-edu-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-mit-edu-api-c84caca1/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_financial_aid

Retrieves financial aid and scholarship information from the MIT Course Catalog. Returns structured sections covering application requirements, eligibility criteria, types of aid available, and policies for undergraduate or graduate students.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `level` | string | No | Education level to retrieve financial aid info for. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-mit-edu-api-c84caca1/get_financial_aid \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"level":"<string>"}'
```

### get_program_details

Retrieves detailed requirements and criteria for a specific MIT degree program. Returns the program title, department, structured requirement tables (GIR requirements, departmental requirements with course numbers and units), and full descriptive content. The slug parameter corresponds to the slug field from list_programs results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `slug` | string | Yes | Program slug from list_programs (e.g. 'computer-science-engineering-course-6-3', 'mechanical-engineering-course-2'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-mit-edu-api-c84caca1/get_program_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"slug":"<string>"}'
```

### get_tuition_costs

Retrieves tuition and cost information from the MIT Course Catalog for either undergraduate or graduate level. Returns fee tables with itemized costs, extracted dollar amounts, and full descriptive content about attendance costs, visiting student fees, and withdrawal policies.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `level` | string | No | Education level to retrieve costs for. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-mit-edu-api-c84caca1/get_tuition_costs \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"level":"<string>"}'
```

### list_courses

Lists all courses offered by a specific MIT department. Returns course number, title, prerequisites, terms offered, unit information, and description for each course. Department codes correspond to MIT's numbering system (e.g. '6' for EECS, '18' for Mathematics, '2' for Mechanical Engineering).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `department` | string | Yes | MIT department code (e.g. '6' for Electrical Engineering and Computer Science, '18' for Mathematics, '2' for Mechanical Engineering, '8' for Physics, '14' for Economics). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-mit-edu-api-c84caca1/list_courses \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"department":"<string>"}'
```

### list_programs

Lists all degree programs (undergraduate and graduate) available in the MIT Course Catalog. Each program includes its name, URL slug for use with get_program_details, and full catalog URL. Returns approximately 97 programs across all MIT schools.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-mit-edu-api-c84caca1/list_programs \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```
