# URL to Markdown API: Fetch Any Page as Markdown

> URL to Markdown API: fetch a web page and get clean, LLM-ready Markdown with title, byline and links — article extraction or full page. One upAPI key.

Fetch URL as Markdown downloads a web page and converts it to Markdown that is ready for an LLM prompt, a search index or a note-taking tool. In its default article mode it runs Mozilla’s Readability extractor to keep the main content and discard navigation and boilerplate, and it falls back to converting the whole document when Readability strips too much of the page; full mode converts the whole body with navigation, footer and forms removed. Tables, lists and code blocks come through as GitHub-flavoured Markdown. includeLinks keeps the inline links and returns the extracted link list, includeImages keeps image references, which are dropped by default because they cost tokens, and maxChars cuts the output at a paragraph boundary and sets a truncated flag. The page is fetched over plain HTTP with browser-like headers, and when the origin serves a bot wall the request is retried once through a datacenter or residential proxy; fetchedWith reports which route produced the body. No browser runs, so a page that builds its content with client-side JavaScript fails with a classified error rather than returning empty Markdown. Alongside the markdown you get the title, byline, language, excerpt, finalUrl, httpStatus, the extractor that ran and the character count. Private, loopback and link-local destinations are refused. The exact price and cache lifetime are on this page’s FAQ, generated from the same catalog the calls run against.

## Operations

- [Fetch URL as Markdown](https://upapi.io/apis/tools/fetch-markdown) (3 units): Convert any web page into clean, LLM-ready Markdown. Fetches over plain HTTP with browser headers (retrying once through a residential or datacenter proxy when the origin serves a bot wall), removes boilerplate with Mozilla Readability, and converts with GitHub-flavored Markdown tables, lists and code blocks. Article mode is verified against a whole-page conversion and downgrades itself when Readability strips too much, so you are never handed a gutted page. Returns the markdown plus title, byline, language, excerpt, the extracted link list, the final URL after redirects, and which transport served the body. No browser is used, so a client-rendered page is reported as an error rather than as empty content.

## Frequently asked questions

### How do I convert a URL to Markdown with an API?

Send the url to Fetch URL as Markdown. The response holds the converted document in the markdown field, prefixed with the page title as a heading when the extracted content does not already start with one, plus the title, byline, language and excerpt as separate fields.

### What is the difference between article mode and full mode?

Article mode uses Mozilla Readability to keep the main content and drop navigation, and it is checked against the whole page: when Readability strips too much, the extractor field reads full-dom to tell you it fell back. Full mode converts the whole body with navigation, footer and forms removed.

### Does it work on JavaScript-rendered single-page apps?

No. The fetch is plain HTTP and no browser runs, so a page whose content only appears after client-side JavaScript fails with a classified error instead of returning empty Markdown. For those pages, use the screenshot or HTML to PDF operations, which render in a real browser.

### Can I keep links and images in the Markdown?

Links are kept by default and returned as a separate list as well; set includeLinks to false to unwrap them to plain text. Images are dropped by default to save tokens; set includeImages to true to keep them.

### How much does this cost?

Every operation in this cluster costs 3 weighted units per call, drawn from your plan’s pooled monthly quota — see upapi.io/pricing for what a unit costs on each tier.

### How fresh is the data — is it cached?

every cached operation here returns a response held for 5 minutes. A repeat call inside a cached window returns the cached response and is billed nothing.

Last updated 2026-10-20.
