---
title: "URL to Markdown"
method: GET
path: "/md/{url}"
tags: ["markdown"]
---

# URL to Markdown

`GET /md/{url}`

## Request

- Base URL: `https://docs.thedrive.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.thedrive.ai/md/{url}`
- Auth: none declared

Convert any URL to markdown by prepending `/md/`.

**Usage Examples:**
```
# Website
dev.thedrive.ai/md/example.com

# PDF document
dev.thedrive.ai/md/arxiv.org/pdf/1706.03762

# Any file URL
dev.thedrive.ai/md/example.com/report.docx
```

Returns plain text markdown. Websites are rendered with a headless browser
so JS-heavy pages work too.

## Path parameters

- `url` string, required

## Query parameters

- `nocache` boolean

## Response `200`

Markdown content

- unknown

## Other responses

- `400`: Invalid URL or conversion failed
- `422`: Validation Error

---

[API](https://skmtc.dev/thedrive/apis/the-drive-ai-api.md) · [All operations](https://skmtc.dev/thedrive/apis/the-drive-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/thedrive/apis/the-drive-ai-api/revisions/ee4e32647ebf?raw)
