scrape
Creates, updates, deletes, gets or lists a scrape resource.
Overview
| Name | scrape |
| Type | Resource |
| Id | cloudflare.browser_rendering.scrape |
Fields
The following fields are returned by SELECT queries:
- get
Returns the scraped elements.
| Name | Datatype | Description |
|---|---|---|
errors | array | |
result | array | |
success | boolean | Response status. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | account_id | cacheTTL | Get 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.
| Name | Datatype | Description |
|---|---|---|
account_id | string | The Cloudflare account ID. |
cacheTTL | number | Cache TTL default is 5s. Set to 0 to disable. |
SELECT examples
- get
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 }}'
;