Skip to content

Return a list of pages with JS variables

Request

GET /v3/web-audits/{auditId}/runs/{runId}/javascript-variables

Get all JS variables found on all the pages in a given audit run

Security
API_Key
Path
auditIdinteger, (int64)required

Unique identification number for web audit

Example:107239
runIdinteger, (int64)required

Unique identification number for web audit or journey run

Example:33010
Query
sizeinteger, [ 50 .. 1000 ]

Number of items to be returned at once

Default:50
startAfterPageIdstring

Offset result, start from pageId next to startAfterPageId. To fetch first page, don't supply this parameter. To fetch subsequent pages, supply metadata.pagination.lastPageId from previous response

Example:startAfterPageId=f9d32cc7cc2046d6decb145a80289287f5226323
GET
/v3/web-audits/{auditId}/runs/{runId}/javascript-variables
curl -i -X GET \
  'https://api.observepoint.com/v3/web-audits/107239/runs/33010/javascript-variables?size=50&startAfterPageId=f9d32cc7cc2046d6decb145a80289287f5226323' \
  -H 'Authorization: YOUR_API_KEY_HERE'

Responses

Pages with JS variables

Bodyapplication/json
metadataobjectrequired

Metadata for iterable results from S3

pagesArray of objectsrequired
Response
{ "metadata": { "pagination": {} }, "pages": [ {} ] }