# MIT — Wrapped API

> **You are on:** `https://api.beta.paywithlocus.com/api` | [llms.txt](https://beta.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 for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/credits/mit/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## 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.beta.paywithlocus.com/api/wrapped/credits/mit/get-financial-aid \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/mit/get-program-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/mit/get-tuition-costs \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/mit/list-courses \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/mit/list-programs \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

## Next steps

- [All wrapped API providers](https://beta.paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://beta.paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://beta.paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://beta.paywithlocus.com/agent/index.md): every Locus agent page.