Once DeepWiki has generated a wiki, you can download the entire content as a self-contained file. Two formats are available: Markdown for human-readable documentation and JSON for programmatic consumption. Both exports include every wiki page and are produced by theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/AsyncFuncAI/deepwiki-open/llms.txt
Use this file to discover all available pages before exploring further.
POST /export/wiki endpoint in the DeepWiki API.
Triggering an export from the UI
Open a generated wiki and locate the export controls in the top-right area of the wiki view. Select either Markdown or JSON, then click the download button. The browser will receive a file attachment with a name in the format{repo}_wiki_{timestamp}.md or {repo}_wiki_{timestamp}.json, where {repo} is the last segment of the repository URL and {timestamp} is a YYYYMMDD_HHMMSS string.
Export formats
- Markdown
- JSON
The Markdown export is a single
.md file suitable for reading in any text editor, publishing to a docs site, or committing to the repository itself.Structure:- A top-level heading with the repository URL
- A “Generated on” timestamp
- A Table of Contents with anchor links to every page
- Each page rendered as a level-2 heading with:
- A Related Pages sub-section listing linked topics (when present)
- The full page content
- A horizontal rule separator between pages
{repo}_wiki_{YYYYMMDD_HHMMSS}.mdFormat examples
API endpoint
You can call the export endpoint directly without the UI. Send aPOST request to /export/wiki with the repository URL, the list of wiki pages, and the desired format.
Content-Disposition: attachment) with the appropriate Content-Type header (text/markdown or application/json).
Request body schema
| Field | Type | Description |
|---|---|---|
repo_url | string | Repository URL, used to derive the filename |
format | "markdown" | "json" | Output format |
pages | array of WikiPage | Pages to include in the export |
WikiPage object
| Field | Type | Description |
|---|---|---|
id | string | Unique page identifier |
title | string | Page title |
content | string | Full page content (Markdown) |
filePaths | string[] | Source files the page was generated from |
importance | "high" | "medium" | "low" | Relative importance of the page |
relatedPages | string[] | IDs of related pages |