Skip to main content
POST
Fetch HTML

Description

Returns the HTML source of the current page or a specific node.

Authentication

Open-source deployments do not require authentication by default. If your server config enables X-API-Key, include that header with the request.

Path Parameters

id
string
required
The browser ID returned from Create Session.

Request Body

node_id
integer
Node ID to scope the HTML to a specific element. If omitted, returns the full page HTML.

Response

html
string
The HTML content of the page or matched node.

Example