# Deepwiki — 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.

> Search and retrieve documentation for any GitHub repository indexed on DeepWiki, including wiki pages, table of contents, and source file references in markdown format. Look up repository profiles, discover featured projects, and access complete wiki content all in one place.

**Category:** Developer Tools | **Website:** [deepwiki.com/](https://deepwiki.com/) | **Docs:** [parse.bot/marketplace/056b27cb-39fb-495f-ba3d-20d5570aeafc/deepwiki-com-api](https://parse.bot/marketplace/056b27cb-39fb-495f-ba3d-20d5570aeafc/deepwiki-com-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-deepwiki-com-api-056b27cb/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### check_repo_wiki_exists

Check if a repository has a publicly available DeepWiki. Returns a boolean indicating whether the wiki exists. Useful for verifying availability before attempting to fetch wiki content.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `owner` | string | Yes | GitHub repository owner (e.g. 'microsoft', 'facebook') |
| `repo` | string | Yes | GitHub repository name (e.g. 'vscode', 'react') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-deepwiki-com-api-056b27cb/check_repo_wiki_exists \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"owner":"<string>","repo":"<string>"}'
```

### get_homepage_featured_repos

Retrieve the list of featured/popular repositories displayed on the DeepWiki landing page. Returns all indexed repositories sorted by popularity. No parameters required.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-deepwiki-com-api-056b27cb/get_homepage_featured_repos \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_repo_wiki_all_pages

Fetch all wiki pages for a repository to obtain the full documentation. Each page includes its slug, title, markdown content, and relevant source files. Can be large for repositories with extensive documentation.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `owner` | string | Yes | GitHub repository owner (e.g. 'facebook', 'microsoft') |
| `repo` | string | Yes | GitHub repository name (e.g. 'react', 'vscode') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-deepwiki-com-api-056b27cb/get_repo_wiki_all_pages \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"owner":"<string>","repo":"<string>"}'
```

### get_repo_wiki_overview

Fetch the main wiki overview page for a repository, including its table of contents and metadata. The table_of_contents contains slugs that can be used with get_repo_wiki_page. Also returns metadata about the repository (stars, language, topics) and the markdown content of the first overview page.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `owner` | string | Yes | GitHub repository owner (e.g. 'microsoft', 'facebook') |
| `repo` | string | Yes | GitHub repository name (e.g. 'vscode', 'react') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-deepwiki-com-api-056b27cb/get_repo_wiki_overview \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"owner":"<string>","repo":"<string>"}'
```

### get_repo_wiki_page

Fetch the full content of a specific wiki page. Use the slug from get_repo_wiki_overview's table_of_contents. Returns the full markdown content and a list of relevant source file paths referenced by the wiki page.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `owner` | string | Yes | GitHub repository owner (e.g. 'microsoft', 'facebook') |
| `repo` | string | Yes | GitHub repository name (e.g. 'vscode', 'react') |
| `slug` | string | Yes | Page slug from get_repo_wiki_overview table_of_contents (e.g. '1.1-repository-structure-and-build-system', '2-feature-flags-system') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-deepwiki-com-api-056b27cb/get_repo_wiki_page \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"owner":"<string>","repo":"<string>","slug":"<string>"}'
```

### get_user_or_org_profile

Fetch a GitHub user or organization profile, including their bio and a list of their repositories indexed on DeepWiki. Combines GitHub profile data with DeepWiki indexing information.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `username` | string | Yes | GitHub username or organization name (e.g. 'microsoft', 'torvalds', 'facebook') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-deepwiki-com-api-056b27cb/get_user_or_org_profile \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"username":"<string>"}'
```

### search_repositories

Search for repositories indexed on DeepWiki by keyword. Supports both keyword searches (e.g. 'react') and 'owner/repo' format queries (e.g. 'microsoft/vscode'). Returns matching repositories with metadata.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search keyword or owner/repo pattern (e.g. 'react', 'microsoft/vscode') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-deepwiki-com-api-056b27cb/search_repositories \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```
