HushSearchDocs

Render → Docling

Render a JavaScript page in a browser, print it to PDF and convert it with Docling.

DocumentsLong-running: consider /v1/jobs

POST/v1/render-extract/6 credits

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

FieldTypeDefaultNotes
urlstring—Required.
modestring"markdown"markdown, ocr or structured.
screenshotbooleanfalseAlso return a PNG screenshot (base64).
async_modebooleanfalseRun 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).

On this page