---
title: "URL to Markdown: Clean Page Text for LLMs and RAG"
method: GET
path: "/v1/url-to-markdown"
tags: ["URL to markdown"]
---

# URL to Markdown: Clean Page Text for LLMs and RAG

`GET /v1/url-to-markdown`

## Request

- Base URL: `https://api.ambolt.dev`
- URL: `https://api.ambolt.dev/v1/url-to-markdown`
- Auth: none required

Fetch a public web page and return its main text as Markdown with title, headings, lists, tables and absolute links. Respects robots.txt, refuses private and internal addresses, no JavaScript rendering. For pages that need a browser, use a rendering tool.

## Query parameters

- `url` string, required: Public http(s) URL.
- `maxChars` integer: Maximum characters of Markdown returned.
- `free` '1'

## Response `200`

Result (JSON). Every result names its source and the time it was read.

- object

## Other responses

- `400`: Invalid input; not charged.
- `402`: Payment required: 0.003 USD in USDC (x402 v2).

---

[API](https://skmtc.dev/ambolt/apis/ambolt-data-tools.md) · [All operations](https://skmtc.dev/ambolt/apis/ambolt-data-tools/llms.txt) · [OpenAPI document](https://skmtc.dev/ambolt/apis/ambolt-data-tools/revisions/8397885dd82f?raw)
