Rendered HTML API for developers
Get the HTML a real browser sees, after JavaScript has run. One REST call returns the fully hydrated DOM of any URL, no headless Chrome to operate.
The following examples show how to use the Microlink API with CLI, cURL, JavaScript, Python, Ruby, PHP & Golang, targeting 'https://vercel.com' URL with 'data' & 'meta' API parameters:
CLI Microlink API example
microlink https://vercel.com&data.html.attr=htmlcURL Microlink API example
curl -G "https://api.microlink.io" \
-d "url=https://vercel.com" \
-d "data.html.attr=html" \
-d "meta=false"JavaScript Microlink API example
import createClient from 'microlink.io'
const microlink = createClient()
const html = await microlink.html('https://vercel.com')Python Microlink API example
import requests
url = "https://api.microlink.io/"
querystring = {
"url": "https://vercel.com",
"data.html.attr": "html",
"meta": "false"
}
response = requests.get(url, params=querystring)
print(response.json())Ruby Microlink API example
require 'uri'
require 'net/http'
base_url = "https://api.microlink.io/"
params = {
url: "https://vercel.com",
data.html.attr: "html",
meta: "false"
}
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.bodyPHP Microlink API example
<?php
$baseUrl = "https://api.microlink.io/";
$params = [
"url" => "https://vercel.com",
"data.html.attr" => "html",
"meta" => "false"
];
$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://vercel.com")
q.Set("data.html.attr", "html")
q.Set("meta", "false")
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))
}import createClient from 'microlink.io'
const microlink = createClient()
const html = await microlink.html('https://vercel.com')Send the URL Get the rendered HTML back
The DOM after JavaScript,
not before.
A plain HTTP fetch gives you an empty shell on any modern site. Microlink boots a real browser, waits for the app to hydrate, and hands back the markup that actually rendered.
Start free, scale when ready
Free
Pro
- Everything in Free
- Automatic proxy resolution
- Configurable TTL
- Custom HTTP headers
- Custom cache key
- Priority email support
Business & Enterprise
- Everything in Pro, plus:
- Card or invoice, PO number, net 30
- NDA, DPA & service agreement
- Vendor assessments on request
- Same named contact
- Annual billing, 10% discount
Built on open source,
trusted by developers
The Microlink rendering engine is powered by battle-tested open source libraries used by thousands of developers worldwide. Our rendered HTML API is built on an open source foundation: explore the code, contribute, or run it yourself.
The markup a browser sees, without running one.
No Chromium fleet to patch, no proxy pool to rotate, no queue to babysit. Send a URL and get back the hydrated DOM, ready to parse via the data API.
Real Browser Rendering
Every request runs in a real Chromium instance, so client-rendered apps return complete markup instead of an empty shell.
Selector Scoping
Return the whole document or a single subtree. Smaller responses mean less parsing and lower token cost in whatever consumes them.
Readiness You Control
waitUntil and waitFor let you block on network idle, a fixed delay, or the appearance of a specific element before the HTML is captured.
Residential Proxy Resolution
Route hard targets through residential IPs to get past Cloudflare, DataDome and Akamai without maintaining a proxy pool yourself.
Antibot Transparency
When a request is blocked you get told which of 30+ antibot and CAPTCHA providers blocked it, instead of a silent failure.
Edge Cached Responses
Configurable TTL from 1 minute to 31 days. Cache hits are free, return instantly, and never boot a browser.
One Call, Many Formats
Request HTML together with markdown, text, metadata, screenshots or PDFs and pay for a single render instead of several.
Enterprise-Grade Reliability
Production-ready infrastructure with a 99.9% uptime SLA and guaranteed performance for business-critical extraction workflows.
Generous Free Tier
Start with a free API key: 25 requests per day with every Pro feature, no credit card, and pay-as-you-grow pricing that scales with your usage.
Real Browser Rendering
Every request runs in a real Chromium instance, so client-rendered apps return complete markup instead of an empty shell.Selector Scoping
Return the whole document or a single subtree. Smaller responses mean less parsing and lower token cost in whatever consumes them.Readiness You Control
waitUntil and waitFor let you block on network idle, a fixed delay, or the appearance of a specific element before the HTML is captured.
Residential Proxy Resolution
Route hard targets through residential IPs to get past Cloudflare, DataDome and Akamai without maintaining a proxy pool yourself.Antibot Transparency
When a request is blocked you get told which of 30+ antibot and CAPTCHA providers blocked it, instead of a silent failure.Edge Cached Responses
Configurable TTL from 1 minute to 31 days. Cache hits are free, return instantly, and never boot a browser.
One Call, Many Formats
Request HTML together with markdown, text, metadata, screenshots or PDFs and pay for a single render instead of several.Enterprise-Grade Reliability
Production-ready infrastructure with a 99.9% uptime SLA and guaranteed performance for business-critical extraction workflows.Generous Free Tier
Start with a free API key: 25 requests per day with every Pro feature, no credit card, and pay-as-you-grow pricing that scales with your usage.
Product Information
Everything you need to know about the Microlink rendered HTML API.