Render → Docling
Render a JavaScript page in a browser, print it to PDF and convert it with Docling.
Request
curl -X POST https://api.hushsearch.io/v1/render-extract/ \
-H "X-API-Key: hs_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://en.wikipedia.org/wiki/Rust_(programming_language)",
"mode": "markdown"
}'For pages that only exist after JavaScript runs. The page is rendered in a real browser, printed to PDF, then converted by Docling into layout-aware Markdown, OCR text or structured JSON.
Parameters
| Field | Type | Default | Notes |
|---|---|---|---|
url | string | — | Required. |
mode | string | "markdown" | markdown, ocr or structured. |
screenshot | boolean | false | Also return a PNG screenshot (base64). |
async_mode | boolean | false | Run as a background job for slow pages. |
Response
{
"url": "https://…",
"mode": "markdown",
"markdown": "# …",
"structured": null,
"screenshot_base64": null,
"page_count": 3,
"degraded": false,
"credits_used": 6,
"credits_remaining": 494,
"response_time_ms": 14200
}degraded: true means a fallback path produced the output (for example, text extraction when the PDF step was unavailable).