# Neetcode — 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 curated coding problem collections including Core Skills, Blind 75, NeetCode 150, and NeetCode 250, along with detailed problem solutions and course content organized by chapters and lessons. Perfect for preparing for technical interviews and mastering data structures and algorithms through structured learning paths.

**Category:** Education | **Website:** [neetcode.io/](https://neetcode.io/) | **Docs:** [parse.bot/marketplace/9a2b72d3-e66e-4311-97c1-d0bc78b784b7/neetcode-io-api](https://parse.bot/marketplace/9a2b72d3-e66e-4311-97c1-d0bc78b784b7/neetcode-io-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-neetcode-io-api-9a2b72d3/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_blind75_problems

Retrieve all problems in the Blind 75 collection, grouped by topic category. Blind 75 is a curated subset focused on the most essential coding interview problems. Each problem includes its slug, display name, difficulty, free-access flag, and URL.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-neetcode-io-api-9a2b72d3/get_blind75_problems \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_core_skills_problems

Retrieve all problems in the Core Skills collection, grouped by category (Implement Data Structures, Sorting, Graphs, Dynamic Programming, Design Patterns, SQL, Machine Learning). Each problem includes its slug, display name, difficulty, free-access flag, and URL.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-neetcode-io-api-9a2b72d3/get_core_skills_problems \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_course_chapters

Retrieve the full chapter/section structure of a course including all lessons. Returns the course display name, course_id, optional base code URL, and an array of sections each containing lessons with metadata (video IDs, suggested problems, custom problem slugs, lesson length in minutes, free-access flag).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `course_id` | string | Yes | Course identifier. Accepted values: 'dsa-for-beginners', 'advanced-algorithms', 'system-design-interview', 'system-design-for-beginners', 'full-stack-development'. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-neetcode-io-api-9a2b72d3/get_course_chapters \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"course_id":"<string>"}'
```

### get_lesson_article

Retrieve the article content for a specific lesson in a course. Not all lessons have articles; if the requested lesson has no article, the endpoint returns a stale_input error with kind 'input_not_found'. The lesson_name must exactly match a lesson name from get_course_chapters (case-sensitive).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `course_id` | string | Yes | Course identifier. Accepted values: 'dsa-for-beginners', 'advanced-algorithms', 'system-design-interview', 'system-design-for-beginners', 'full-stack-development'. |
| `lesson_name` | string | Yes | Exact lesson name as returned by get_course_chapters (case-sensitive, e.g. 'RAM', 'Kadane\'s Algorithm'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-neetcode-io-api-9a2b72d3/get_lesson_article \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"course_id":"<string>","lesson_name":"<string>"}'
```

### get_neetcode_all_problems

Retrieve every problem covered by NeetCode across all collections, grouped by topic category. This is the union of all curated sets. Each problem includes its slug, display name, difficulty, free-access flag, and URL.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-neetcode-io-api-9a2b72d3/get_neetcode_all_problems \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_neetcode150_problems

Retrieve all problems in the NeetCode 150 collection, grouped by topic category (Array, Hash Table, Two Pointers, Stack, Binary Search, Linked List, Tree, etc.). Each problem includes its slug, display name, difficulty, free-access flag, and URL.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-neetcode-io-api-9a2b72d3/get_neetcode150_problems \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_neetcode250_problems

Retrieve all problems in the NeetCode 250 collection, grouped by topic category. NeetCode 250 is the largest curated set covering broad algorithmic topics plus Python, SQL, and Design Patterns. Each problem includes its slug, display name, difficulty, free-access flag, and URL.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-neetcode-io-api-9a2b72d3/get_neetcode250_problems \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_problem_detail

Retrieve detailed information for a specific problem by slug. Returns the problem description (markdown/HTML with examples and constraints), solutions in multiple programming languages, video explanation embed, topics, prerequisites, difficulty, free-access flag, and an editorial article when available. Slugs are obtained from any problem-list endpoint.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `slug` | string | Yes | Problem slug as returned by problem list endpoints (e.g. 'two-integer-sum', 'duplicate-integer', 'dynamicArray'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-neetcode-io-api-9a2b72d3/get_problem_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"slug":"<string>"}'
```
