Skip to main content
Version: v1

/content API

warning

This documentation is for BaaS v1, which is no longer actively supported. If you are a new user, please refer to the updated documentation for BaaS v2 or BrowserQL.

The content API allows for simple navigation to a site and capturing the page's content (including the <head> section). browserless will respond with a Content-Type of text/html, and string of the site's HTML. This is useful for capturing the content of a page that has a lot of JavaScript or other interactivity.

If you want to see all the options check out the schema for it here on GitHub or check out this API schema defined in Swagger.

Capture the content of example.com

JSON payload

{
"url": "https://example.com/"
}

cURL request

curl -X POST \
https://chrome.browserless.io/content?token=MY_API_TOKEN \
-H 'Cache-Control: no-cache' \
-H 'Content-Type: application/json' \
-d '
{
"url": "https://example.com/"
}'