Skip to main content

content

Creates, updates, deletes, gets or lists a content resource.

Overview

Namecontent
TypeResource
Idcloudflare.browser_rendering.content

Fields

The following fields are returned by SELECT queries:

Returns the page's content.

NameDatatypeDescription
contentsstring

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectaccount_idcacheTTLFetches rendered HTML content from provided URL or HTML. Check available options like gotoOptions and waitFor* to control page load behaviour.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
account_idstringThe Cloudflare account ID.
cacheTTLnumberCache TTL default is 5s. Set to 0 to disable.

SELECT examples

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

SELECT
contents
FROM cloudflare.browser_rendering.content
WHERE account_id = '{{ account_id }}' -- required
AND cacheTTL = '{{ cacheTTL }}'
;