Cloudflare API | Browser Rendering › Links

Scrape

Screenshot

Snapshot
Shared

Browser Rendering

browser_rendering

browser_rendering.content

Methods

Get HTML Content -> Envelope<string>
post/accounts/{account_id}/browser-rendering/content

Fetches rendered HTML content from provided URL or HTML. Check available options like gotoOptions and waitFor* to control page load behaviour.

browser_rendering.crawl

Methods

Crawl Websites -> Envelope<string>
post/accounts/{account_id}/browser-rendering/crawl

Starts a crawl job for the provided URL and its children. Check available options like gotoOptions and waitFor* to control page load behaviour.

Get Crawl Result -> Envelope<{ id, browserSecondsUsed, finished, 5 more... }>
get/accounts/{account_id}/browser-rendering/crawl/{job_id}

Returns the result of a crawl job.

Cancel A Crawl Job -> Envelope<{ job_id, message }>
delete/accounts/{account_id}/browser-rendering/crawl/{job_id}

Cancels an ongoing crawl job by setting its status to cancelled and stopping all queued URLs.

browser_rendering.json

Methods

Get Json -> Envelope<Record<string, unknown>>
post/accounts/{account_id}/browser-rendering/json

Gets json from a webpage from a provided URL or HTML. Pass prompt or schema in the body. Control page loading with gotoOptions and waitFor* options.

browser_rendering.markdown

Methods

Get Markdown -> Envelope<string>
post/accounts/{account_id}/browser-rendering/markdown

Gets markdown of a webpage from provided URL or HTML. Control page loading with gotoOptions and waitFor* options.

browser_rendering.pdf

Methods

Get PDF -> unknown
post/accounts/{account_id}/browser-rendering/pdf

Fetches rendered PDF from provided URL or HTML. Check available options like gotoOptions and waitFor* to control page load behaviour.

browser_rendering.scrape

Methods

Scrape Elements -> Envelope<Array<{ results, selector }>>
post/accounts/{account_id}/browser-rendering/scrape

Get meta attributes like height, width, text and others of selected elements.

browser_rendering.screenshot

Methods

Get Screenshot -> { success, errors }
post/accounts/{account_id}/browser-rendering/screenshot

Takes a screenshot of a webpage from provided URL or HTML. Control page loading with gotoOptions and waitFor* options. Customize screenshots with viewport, fullPage, clip and others.

browser_rendering.snapshot

Methods

Get HTML Content And Screenshot -> Envelope<{ content, screenshot }>
post/accounts/{account_id}/browser-rendering/snapshot

Returns the page's HTML content and screenshot. Control page loading with gotoOptions and waitFor* options. Customize screenshots with viewport, fullPage, clip and others.