Overview
Returns the content of the session’s active page. If url is supplied, the session navigates there first. The response format can be raw HTML, cleaned Markdown, or plain text.
Path Parameters
Browser session ID (UUID).
Body
Optional URL to navigate to before capturing content. If omitted, captures whatever is currently loaded in the active tab.
Output format. One of html, markdown, text.
Optional per-request proxy override.
Extra request headers applied when url is set.
Example Request
cURL (current page)
cURL (navigate first)
curl -X POST "https://api.scrapengine.io/api/v1/browser/sessions/baa3f390-fa6e-4a24-b84a-a575a5f3a9c7/content" \
-H "Authorization: Bearer $SCRAPENGINE_API_KEY " \
-H "Content-Type: application/json" \
-d '{ "format": "markdown" }'
Response
Success Response (200)
Effective URL of the captured page (after any redirects).
Page content in the requested format.
Echoed format — one of html, markdown, text.
Example Response:
{
"url" : "https://example.com/" ,
"content" : "# Example Domain \n\n This domain is for use in illustrative examples..." ,
"format" : "markdown"
}
Error Responses
Status Description 400Invalid body — unknown format or malformed url. 401Unauthorized — invalid or missing API key. 404Session not found or not owned by the caller. 503The browser session is temporarily unreachable.