Skip to content

URL to markdown API for AI agents

The URL to markdown API that converts any web page to clean markdown with 80% fewer tokens than raw HTML. Built for AI agent crawling, LLM ingestion, and RAG pipelines.

Saved excerpt
## Table of Contents

- [llvmpipe compiles the graphics pipeline to machine code](#llvmpipe-compiles-the-graphics-pipeline-to-machine-code)

---

## llvmpipe compiles the graphics pipeline to machine code

[Mesa llvmpipe](https://docs.mesa3d.org/drivers/llvmpipe.html) is also a software rasterizer, but it JIT-compiles the graphics pipeline to native machine code with LLVM and spreads the work across every core. For a geometry-heavy 3D scene, that design gets through the work far faster than SwiftShader.

Chrome doesn't rasterize WebGL itself. It delegates to **ANGLE**, which targets a backend. [browserless](https://browserless.js.org/) is our own headless browser runner behind the API, so the change lives in the flags [browserless](https://github.com/microlinkhq/browserless) launches Chrome with:

- **Before:** `--use-angle=swiftshader`, the self-contained software path.
- **After:** `--use-angle=gl`, which binds ANGLE to the system OpenGL stack, meaning Mesa llvmpipe on our GPU-less Linux nodes.

We validated the switch end-to-end on production, on the exact pages that were slow, confirming the renderer was llvmpipe and the output was pixel-identical.

Send the URL Get clean markdown back

2.0
secs
P95 cold response
—
loading…
99.9
%
SLA on paid plans

Any webpage to markdown,
one API call away

Markdown· 148 words · 326 tokens
Saved excerpt
## Table of Contents

- [llvmpipe compiles the graphics pipeline to machine code](#llvmpipe-compiles-the-graphics-pipeline-to-machine-code)

---

## llvmpipe compiles the graphics pipeline to machine code

[Mesa llvmpipe](https://docs.mesa3d.org/drivers/llvmpipe.html) is also a software rasterizer, but it JIT-compiles the graphics pipeline to native machine code with LLVM and spreads the work across every core. For a geometry-heavy 3D scene, that design gets through the work far faster than SwiftShader.

Chrome doesn't rasterize WebGL itself. It delegates to **ANGLE**, which targets a backend. [browserless](https://browserless.js.org/) is our own headless browser runner behind the API, so the change lives in the flags [browserless](https://github.com/microlinkhq/browserless) launches Chrome with:

- **Before:** `--use-angle=swiftshader`, the self-contained software path.
- **After:** `--use-angle=gl`, which binds ANGLE to the system OpenGL stack, meaning Mesa llvmpipe on our GPU-less Linux nodes.

We validated the switch end-to-end on production, on the exact pages that were slow, confirming the renderer was llvmpipe and the output was pixel-identical.
HTML· 363 words · 2.1k tokens
Saved excerpt
<h2 id="llvmpipe-compiles-the-graphics-pipeline-to-machine-code" class="Box-sc-ev8b0j-0 Text-sc-vva452-0 Heading__StyledHeading-sc-17gv3iw-0 bCjLDU fnTTYI markdown__StyledH2-sc-18n5642-1 markdown___StyledStyledH2-sc-18n5642-10 fJItkr faITet"><a href="#llvmpipe-compiles-the-graphics-pipeline-to-machine-code" class="with-slug__AnchorLink-sc-1he94q4-1 euqsmo">llvmpipe compiles the graphics pipeline to machine code</a><span class="with-slug__Permalink-sc-1he94q4-0 cVuwGP"><svg fill="currentColor" viewBox="0 0 16 16" width="14px" class="Svg__StyledSvg-sc-1bwfs4u-0 bMhYZu with-slug___StyledSvg-sc-1he94q4-2 eRGrEY"><g stroke-width="1" fill="#000000" stroke="#000000"><path fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M8.995,7.005 L8.995,7.005c1.374,1.374,1.374,3.601,0,4.975l-1.99,1.99c-1.374,1.374-3.601,1.374-4.975,0l0,0c-1.374-1.374-1.374-3.601,0-4.975 l1.748-1.698"></path><path fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M7.005,8.995 L7.005,8.995c-1.374-1.374-1.374-3.601,0-4.975l1.99-1.99c1.374-1.374,3.601-1.374,4.975,0l0,0c1.374,1.374,1.374,3.601,0,4.975 l-1.748,1.698"></path></g></svg></span></h2>
<div class="Box-sc-ev8b0j-0 Text-sc-vva452-0 markdown___StyledText-sc-18n5642-15 bCjLDU eRmgBj"><span class="Box-sc-ev8b0j-0 Text-sc-vva452-0 base__LinkBase-sc-1efrhri-0 bCjLDU kkAVpJ"><a href="https://docs.mesa3d.org/drivers/llvmpipe.html" rel="noopener noreferrer" target="_blank" class="with-link__LinkBase-sc-1b4flqs-0 eGcaNx"><span class="Box-sc-ev8b0j-0 Flex-sc-162cmzb-0 with-link___StyledFlex-sc-1b4flqs-2 inayRf gsTiEz">Mesa llvmpipe<span class="Box-sc-ev8b0j-0 Flex-sc-162cmzb-0 Lucide___StyledFlex-sc-52ofu1-0 inayRf eFvLRo"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-up-right" aria-hidden="true"><path d="M7 7h10v10"></path><path d="M7 17 17 7"></path></svg></span></span></a></span> is also a software rasterizer, but it JIT-compiles the graphics pipeline to native machine code with LLVM and spreads the work across every core. For a geometry-heavy 3D scene, that design gets through the work far faster than SwiftShader.</div>
<div class="Box-sc-ev8b0j-0 Text-sc-vva452-0 markdown___StyledText-sc-18n5642-15 bCjLDU eRmgBj">Chrome doesn&#x27;t rasterize WebGL itself. It delegates to <b class="Box-sc-ev8b0j-0 Text-sc-vva452-0 markdown__StyledStrong-sc-18n5642-6 bCjLDU hesEAk">ANGLE</b>, which targets a backend. <span class="Box-sc-ev8b0j-0 Text-sc-vva452-0 base__LinkBase-sc-1efrhri-0 bCjLDU kkAVpJ"><a href="https://browserless.js.org/" rel="noopener noreferrer" target="_blank" class="with-link__LinkBase-sc-1b4flqs-0 eGcaNx"><span class="Box-sc-ev8b0j-0 Flex-sc-162cmzb-0 with-link___StyledFlex-sc-1b4flqs-2 inayRf gsTiEz">browserless<span class="Box-sc-ev8b0j-0 Flex-sc-162cmzb-0 Lucide___StyledFlex-sc-52ofu1-0 inayRf eFvLRo"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-up-right" aria-hidden="true"><path d="M7 7h10v10"></path><path d="M7 17 17 7"></path></svg></span></span></a></span> is our own headless browser runner behind the API, so the change lives in the flags <span class="Box-sc-ev8b0j-0 Text-sc-vva452-0 base__LinkBase-sc-1efrhri-0 bCjLDU kkAVpJ"><a href="https://github.com/microlinkhq/browserless" rel="noopener noreferrer" target="_blank" class="with-link__LinkBase-sc-1b4flqs-0 eGcaNx"><span class="Box-sc-ev8b0j-0 Flex-sc-162cmzb-0 with-link___StyledFlex-sc-1b4flqs-2 inayRf gsTiEz">browserless<span class="Box-sc-ev8b0j-0 Flex-sc-162cmzb-0 Lucide___StyledFlex-sc-52ofu1-0 inayRf eFvLRo"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-up-right" aria-hidden="true"><path d="M7 7h10v10"></path><path d="M7 17 17 7"></path></svg></span></span></a></span> launches Chrome with:</div>
<ul class="Box-sc-ev8b0j-0 Text-sc-vva452-0 markdown__StyledUl-sc-18n5642-7 markdown___StyledStyledUl-sc-18n5642-16 bCjLDU bvRakU bGktGg">
<li class="Box-sc-ev8b0j-0 Text-sc-vva452-0 markdown__StyledLi-sc-18n5642-8 markdown___StyledStyledLi-sc-18n5642-18 bCjLDU fgwGVj haWgeu"><b class="Box-sc-ev8b0j-0 Text-sc-vva452-0 markdown__StyledStrong-sc-18n5642-6 bCjLDU hesEAk">Before:</b> <code class="Box-sc-ev8b0j-0 Text-sc-vva452-0 CodeInline__StyledCodeInline-sc-iwninw-0 bCjLDU bwBaiL">--use-angle=swiftshader</code>, the self-contained software path.</li>
<li class="Box-sc-ev8b0j-0 Text-sc-vva452-0 markdown__StyledLi-sc-18n5642-8 markdown___StyledStyledLi-sc-18n5642-18 bCjLDU fgwGVj haWgeu"><b class="Box-sc-ev8b0j-0 Text-sc-vva452-0 markdown__StyledStrong-sc-18n5642-6 bCjLDU hesEAk">After:</b> <code class="Box-sc-ev8b0j-0 Text-sc-vva452-0 CodeInline__StyledCodeInline-sc-iwninw-0 bCjLDU bwBaiL">--use-angle=gl</code>, which binds ANGLE to the system OpenGL stack, meaning Mesa llvmpipe on our GPU-less Linux nodes.</li>
</ul>
<div class="Box-sc-ev8b0j-0 Text-sc-vva452-0 markdown___StyledText-sc-18n5642-15 bCjLDU eRmgBj">We validated the switch end-to-end on production, on the exact pages that were slow, confirming the renderer was llvmpipe and the output was pixel-identical.</div>

80% fewer tokens

Markdown drops markup, scripts and styles, so the same page costs about 80% fewer tokens than raw HTML.

Flexible scope control

Extract the whole page, narrow to a CSS selector like main or article, or combine multiple selectors with fallback arrays for precise content targeting.

YAML frontmatter metadata

Enable the meta parameter to get title, author, date, description, word count, and reading time as structured YAML frontmatter prepended to the markdown output.

Sub-second cached responses

Cached responses return in milliseconds from 340+ Cloudflare edge locations. Configure TTL caching rules to keep your content fresh with minimal latency.

URL to markdown API
in JavaScript, Python, Ruby, PHP & Golang

Microlink URL to Markdown API delivers enterprise-grade URL to markdown conversion through a developer-friendly REST API endpoint.

The following examples show how to use the Microlink API with CLI, cURL, JavaScript, Python, Ruby, PHP & Golang, targeting 'https://docs.stripe.com/api' URL with 'data' & 'embed' API parameters:

CLI Microlink API example

microlink markdown https://docs.stripe.com/api

cURL Microlink API example

curl -G "https://api.microlink.io" \
  -d "url=https://docs.stripe.com/api" \
  -d "data.markdown.attr=markdown" \
  -d "embed=markdown"

JavaScript Microlink API example

import createClient from 'microlink.io'

const microlink = createClient()

const markdown = await microlink.markdown('https://docs.stripe.com/api')

Python Microlink API example

import requests

url = "https://api.microlink.io/"

querystring = {
    "url": "https://docs.stripe.com/api",
    "data.markdown.attr": "markdown",
    "embed": "markdown"
}

response = requests.get(url, params=querystring)

print(response.text)

Ruby Microlink API example

require 'uri'
require 'net/http'

base_url = "https://api.microlink.io/"

params = {
  url: "https://docs.stripe.com/api",
  "data.markdown.attr": "markdown",
  embed: "markdown"
}

uri = URI(base_url)
uri.query = URI.encode_www_form(params)

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true

request = Net::HTTP::Get.new(uri)
response = http.request(request)

puts response.body

PHP Microlink API example

<?php

$baseUrl = "https://api.microlink.io/";

$params = [
    "url" => "https://docs.stripe.com/api",
    "data.markdown.attr" => "markdown",
    "embed" => "markdown"
];

$query = http_build_query($params);
$url = $baseUrl . '?' . $query;

$curl = curl_init();

curl_setopt_array($curl, [
    CURLOPT_URL => $url,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_ENCODING => "",
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_TIMEOUT => 30,
    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    CURLOPT_CUSTOMREQUEST => "GET"
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
    echo "cURL Error #: " . $err;
} else {
    echo $response;
}

Golang Microlink API example

package main

import (
    "fmt"
    "net/http"
    "net/url"
    "io"
)

func main() {
    baseURL := "https://api.microlink.io"

    u, err := url.Parse(baseURL)
    if err != nil {
        panic(err)
    }
    q := u.Query()
    q.Set("url", "https://docs.stripe.com/api")
    q.Set("data.markdown.attr", "markdown")
    q.Set("embed", "markdown")
    u.RawQuery = q.Encode()

    req, err := http.NewRequest("GET", u.String(), nil)
    if err != nil {
        panic(err)
    }

    client := &http.Client{}
    resp, err := client.Do(req)
    if err != nil {
        panic(err)
    }
    defer resp.Body.Close()

    body, err := io.ReadAll(resp.Body)
    if err != nil {
        panic(err)
    }

    fmt.Println(string(body))
}
Last month usage
140M
reqs per month
13%
cache hit rate
5TB
data served
some clients

Free to start, scales when ready

Sign up for a free API key: 25 requests per day with proxy, headers and ttl, no credit card. Paid plans add volume and production controls.

Pro

For production workloads.
$49/month
≈ $1.07 per 1,000 requests
46,000 requests / month
Buy
Cancel anytime · No setup fees

Business & Enterprise

Bought the way companies buy.
Enterprise adds

Try it live, right now

Skip the setup. Our interactive markdown tool lets you test the API instantly: paste any URL, configure options, and see the result in real time.

80% fewer tokens per page more content per context window

A markdown converter for LLMs: markup, scripts and styles are dropped, so the same page costs about 80% fewer tokens than raw HTML.
Feed more content into every LLM call and cut inference costs at scale.

The best URL to markdown service, with no compromises.

No more custom scrapers or brittle parsing. Our URL to markdown API lets you convert any web page to markdown with easy integration via the URL to Markdown API documentation.

  • Token Efficient by Default

    Return clean markdown instead of HTML noise so your agents spend context budget on meaning, not markup. 80% fewer tokens on average.
  • Works on Any Website

    Our HTML to markdown converter processes any public URL without the target site needing CDN opt-in or special configuration. The entire web is your dataset.
  • Built for Agent Workloads

    Purpose-built for AI crawling, summarization, RAG indexing, LangChain, LlamaIndex, and large-scale LLM data preparation.
  • Streaming Friendly

    Compact markdown payloads move cleanly through queues, workers, and inference services with lower latency than HTML.
  • Metadata Included

    Pair markdown content with structured metadata (title, description, author, date) for better chunking, ranking, and traceability.
  • Fast Integration

    Ship quickly from browser demos, server workers, or SDK clients. One URL in, clean markdown out. Minimal glue code.
  • Flexible Scope Control

    Extract the whole page, narrow to a CSS selector like main or article, or combine multiple selectors with fallback arrays for precise content targeting.
  • YAML Frontmatter

    Enable the meta parameter to prepend structured YAML frontmatter (title, author, date, description) for downstream chunking and traceability.
  • Shortcut Endpoint

    Skip the full API call. Use markdown.microlink.io/{url} for direct markdown output, ideal for quick scripts, curl one-liners, and pipeline prototyping.
  • Token Efficient by Default

    Return clean markdown instead of HTML noise so your agents spend context budget on meaning, not markup. 80% fewer tokens on average.
  • Works on Any Website

    Our HTML to markdown converter processes any public URL without the target site needing CDN opt-in or special configuration. The entire web is your dataset.
  • Built for Agent Workloads

    Purpose-built for AI crawling, summarization, RAG indexing, LangChain, LlamaIndex, and large-scale LLM data preparation.
  • Streaming Friendly

    Compact markdown payloads move cleanly through queues, workers, and inference services with lower latency than HTML.
  • Metadata Included

    Pair markdown content with structured metadata (title, description, author, date) for better chunking, ranking, and traceability.
  • Fast Integration

    Ship quickly from browser demos, server workers, or SDK clients. One URL in, clean markdown out. Minimal glue code.
  • Flexible Scope Control

    Extract the whole page, narrow to a CSS selector like main or article, or combine multiple selectors with fallback arrays for precise content targeting.
  • YAML Frontmatter

    Enable the meta parameter to prepend structured YAML frontmatter (title, author, date, description) for downstream chunking and traceability.
  • Shortcut Endpoint

    Skip the full API call. Use markdown.microlink.io/{url} for direct markdown output, ideal for quick scripts, curl one-liners, and pipeline prototyping.

One conversion problem, one recipe.

Frontmatter metadata, content-only conversions, LLM context, office documents, YouTube transcripts and more. Each use case shows the exact options and the code to run.

Markdown with metadata frontmatter

Get each page as Markdown with a YAML frontmatter block: title, author, date, word count and reading time.

Clean Markdown, no boilerplate

Convert only the article body: one selector keeps navigation, ads and widgets out of the Markdown.

LLM context from any URL

Compose Markdown, links, emails, metadata and tech stack from one URL into a context object for your agent.

PDF and office documents to Markdown

Convert PDF, DOCX, XLSX and PPTX URLs to readable Markdown with the same request you use for web pages.

YouTube transcripts as Markdown

Get the caption transcript of any watch, share or shorts URL as Markdown, with the video title, author and date.

Markdown from JavaScript-rendered pages

Render single-page apps in a real browser, wait for the content, then convert the finished DOM to Markdown.

Product Information

Everything you need to know about
Microlink URL to markdown API.

Microlink Markdown is an extraction API that takes any URL and returns clean markdown content ready for AI workflows. It is built on the same Microlink API surface your team already uses for metadata, screenshots, and PDFs.
Use it for crawling, summarization, and RAG ingestion where clean text beats noisy HTML.

Why do AI agents prefer markdown over HTML?

HTML pages are padded with navigation bars, script tags, class attributes, and styling that carry zero semantic value for AI. Markdown’s explicit structure lets AI models focus on meaning, not markup, which improves comprehension and reduces LLM API costs at scale.
You can further tune extraction with CSS selector scoping to target only the content your agents need.

How much do I save on tokens by converting to markdown?

Markdown drops markup, scripts and styles, so the same page costs about 80% fewer tokens than raw HTML and more content fits in each context window.
This directly lowers your LLM API costs and increases how much information you can process per request. Try it instantly in the interactive HTML to Markdown tool.

Does it work on any website?

Yes. Microlink extracts markdown from any public URL. The target website does not need to natively serve markdown or have any special CDN or server-level configuration.
Unlike solutions that require opt-in at the infrastructure layer, Microlink works on the entire web immediately. See delivery and response for production configuration options.
Choose Microlink Markdown when you already have the URLs. Each request converts one URL, and the same API returns screenshots, PDFs, and metadata. To find pages for a query and get their Markdown, use Microlink Search.
Choose a crawler such as Firecrawl when you need to find and convert the pages on a whole site. With Microlink Markdown, your code supplies each URL.
Microlink charges the same price for each request, whichever output you choose, with the proxy included. Credit-based providers can charge more credits for some outputs.
See the detailed comparisons against Firecrawl, Context.dev and Jina Reader for feature tables, pricing math, and migration notes.

Can I control what content is extracted?

Absolutely. Use the selector parameter to target specific DOM elements: narrow to main, article, or any CSS selector. You can also use fallback arrays that try selectors in order.
Omit the selector entirely to convert the whole page, or combine multiple fields to extract different sections of the same page in a single API call.

Can I get metadata alongside the markdown?

Yes. Set meta: true to prepend a YAML frontmatter block with normalized metadata: title, description, author, publisher, date, word count, and reading time.
This structure supports LLM and RAG pipelines by providing source context without additional requests. See structured metadata extraction for details.

How do I integrate it?

In minutes. Visit our documentation for interactive playground examples, the official Microlink SDK, and copy-paste code snippets for Node.js, Python, Ruby, Go, and more.
Or use the shortcut endpoint markdown.microlink.io/{url} for the simplest possible integration: just an HTTP GET.

Where can I see all parameters?

Visit the Microlink API documentation for parameter details, request examples, and SDK usage guides.
Key parameters include embed for raw markdown output, ttl for cache control, and the data extraction rules for CSS selector scoping.

Is the URL to markdown API free?

Yes. Sign up for a free API key: 25 requests per day with proxy, headers and ttl, no credit card. Call the endpoint with the key and get clean markdown back.
For production workloads that need higher volume and priority support, see our Pro plans.

What is a URL to markdown service and how does it work?

A URL to markdown service takes any web page URL as input, fetches the page with a full headless browser, strips away HTML noise (ads, navigation, scripts), and returns clean, structured markdown text.
Microlink’s URL to markdown API does this in a single REST call: https://api.microlink.io?url=example.com&data.markdown.attr=markdown. The result is ready for AI agents, RAG pipelines, or any downstream text processing.

How do I convert a web page to markdown for AI or LLMs?

Send the page URL to the Microlink API with the markdown data extraction rule. The API renders the page, removes clutter, and returns clean markdown with about 80% fewer tokens than raw HTML.
You can also use the shortcut endpoint markdown.microlink.io/{url} for quick scripts and pipeline prototyping. Try it live in our interactive URL to Markdown tool.

Start building

Sign up, add the key to your requests, and start converting URLs to markdown.
Get your free API key
25 requests/day · Proxy, headers and ttl · No credit card
Trusted with 140M+ requests every month