The markdown actor combines a smart fetch (fast HTTP path when possible, full browser when needed) with a Readability-style extraction. The output is clean markdown — headings, paragraphs, links, code blocks — sized for direct embedding or for handing to a language model as context. Typical output is 80–95% smaller than the source HTML while preserving meaningful structure.
Request
Send a POST to /v1/actors/markdown with a target url. Enable stealth or the residential-proxy option for sites with aggressive bot defenses.
curl -X POST https://api.ollagraph.com/v1/actors/markdown \
-H "Authorization: Bearer $OLLAGRAPH_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com"}'Response fields
| Field | Type | Example |
|---|---|---|
title |
string | The State of the Web in 2026 |
markdown |
string | # The State of the Web in 2026 ... |
word_count |
number | 3873 |
reading_time_min |
number | 16 |
Sample response
{
"status": "success",
"url": "https://example.com/article",
"time_ms": 480,
"data": {
"title": "The State of the Web in 2026",
"markdown": "# The State of the Web in 2026 ...",
"word_count": 3873,
"reading_time_min": 16
}
}See the full pipeline in the step-by-step recipe. Part of the actor catalog — all behind one bearer token. Failed calls auto-refund.