Skip to main content

scrape

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

Overview

Namescrape
TypeResource
Idcloudflare.browser_rendering.scrape

Fields

The following fields are returned by SELECT queries:

Returns the scraped elements.

NameDatatypeDescription
errorsarray
resultarray
successbooleanResponse status.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectaccount_idcacheTTLGet meta attributes like height, width, text and others of selected elements.

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

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

SELECT
errors,
result,
success
FROM cloudflare.browser_rendering.scrape
WHERE account_id = '{{ account_id }}' -- required
AND cacheTTL = '{{ cacheTTL }}'
;