Readable text API for developers
Turn any URL into clean, LLM-ready plain text. Navigation, ads, cookie banners and boilerplate stripped out — just the words that matter.
The following examples show how to use the Microlink API with CLI, cURL, JavaScript, Python, Ruby, PHP & Golang, targeting 'https://stripe.dev/blog/payment-api-design' URL with 'data' & 'meta' API parameters:
CLI Microlink API example
microlink https://stripe.dev/blog/payment-api-design&data.text.attr=textcURL Microlink API example
curl -G "https://api.microlink.io" \
-d "url=https://stripe.dev/blog/payment-api-design" \
-d "data.text.attr=text" \
-d "meta=false"JavaScript Microlink API example
import createClient from 'microlink.io'
const microlink = createClient()
const text = await microlink.text('https://stripe.dev/blog/payment-api-design')Python Microlink API example
import requests
url = "https://api.microlink.io/"
querystring = {
"url": "https://stripe.dev/blog/payment-api-design",
"data.text.attr": "text",
"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://stripe.dev/blog/payment-api-design",
data.text.attr: "text",
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://stripe.dev/blog/payment-api-design",
"data.text.attr" => "text",
"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://stripe.dev/blog/payment-api-design")
q.Set("data.text.attr", "text")
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 text = await microlink.text('https://stripe.dev/blog/payment-api-design')Send the URL Get the readable text back
Content, not chrome.
Feeding raw HTML to a model burns tokens on navigation, scripts and footers. Microlink renders the page, isolates the main content, and returns text you can embed or prompt with directly.
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 content pipeline is powered by battle-tested open source libraries used by thousands of developers worldwide. Our readable text API is built on an open source foundation: explore the code, contribute, or run it yourself.
Every page, reduced to the words that matter.
Stop paying model tokens to read navigation bars. Send a URL and get back clean prose, ready to embed or prompt with, via the data API.
Boilerplate Stripped
Navigation, sidebars, consent banners, ads and footers are removed so the response carries only the content of the page.
JavaScript Rendered First
Text is extracted after the page hydrates, so client-rendered blogs, docs and single-page apps return their real content.
Built For LLM Pipelines
Plain text is a fraction of the size of source HTML, cutting the cost and latency of every embedding, classification and summarisation call.
Documents Supported
PDFs, Word files, spreadsheets and slide decks resolve to text through the same endpoint, so one integration covers pages and documents.
Structure On Demand
Request markdown alongside text when headings, lists and links matter, and pay for a single render instead of two.
Residential Proxy Resolution
Route hard targets through residential IPs to get past Cloudflare, DataDome and Akamai without maintaining a proxy pool yourself.
Edge Cached Responses
Configurable TTL from 1 minute to 31 days. Cache hits are free, return instantly, and never boot a browser.
Enterprise-Grade Reliability
Production-ready infrastructure with a 99.9% uptime SLA and guaranteed performance for business-critical content pipelines.
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.
Boilerplate Stripped
Navigation, sidebars, consent banners, ads and footers are removed so the response carries only the content of the page.JavaScript Rendered First
Text is extracted after the page hydrates, so client-rendered blogs, docs and single-page apps return their real content.Built For LLM Pipelines
Plain text is a fraction of the size of source HTML, cutting the cost and latency of every embedding, classification and summarisation call.
Documents Supported
PDFs, Word files, spreadsheets and slide decks resolve to text through the same endpoint, so one integration covers pages and documents.Structure On Demand
Request markdown alongside text when headings, lists and links matter, and pay for a single render instead of two.Residential Proxy Resolution
Route hard targets through residential IPs to get past Cloudflare, DataDome and Akamai without maintaining a proxy pool yourself.
Edge Cached Responses
Configurable TTL from 1 minute to 31 days. Cache hits are free, return instantly, and never boot a browser.Enterprise-Grade Reliability
Production-ready infrastructure with a 99.9% uptime SLA and guaranteed performance for business-critical content pipelines.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 readable text API.