API Documentation
Build the right ScraperFly request before you wire it into production
Pick the output format, add delivery controls only when the target needs them, and copy a canonical request into your backend or agent workflow.
Raw HTML
Fetch source HTML for simple pages, or rendered HTML when JavaScript builds the markup in the browser.
format=htmlrender=falserender=trueText, Markdown, and JSON
Return readable clean text, Markdown for prompts and RAG, or JSON with metadata, links, headings, text, and Markdown.
format=textformat=markdownformat=jsonScreenshots and PDFs
Capture the rendered page as a screenshot or PDF when you need visual QA, archived proof, or downloadable artifacts.
format=screenshotformat=pdfdownloadCore request parameters
urlThe target page ScraperFly should fetch.
formatChoose html, text, markdown, json, screenshot, or pdf.
premiumUse stronger proxy routing for harder targets.
renderRun Chromium for JavaScript-heavy pages.
countryRoute through a country-specific proxy.
keep_headersForward allowed headers such as user-agent, cookie, language, and referer.
render_waitWait before extraction or capture after the page loads.
downloadReturn screenshots or PDFs as downloadable files.
Get clean Markdown from a target page
curl "https://scraperfly.com/api/v1?url=https%3A%2F%2Fexample.com&format=markdown" \
-H "apikey: YOUR_API_KEY"