← Back to Page domain

Page.getAnnotatedPageContent

Get the annotated page content for the main frame. This is an experimental command that is subject to change.

Domain: Page experimental

Parameters

NameTypeDescription
includeActionableInformation (optional)booleanWhether to include actionable information. Defaults to true.

Returns

NameTypeDescription
contentstringThe annotated page content as a base64 encoded protobuf. The format is defined by the `AnnotatedPageContent` message in components/optimization_guide/proto/features/common_quality_data.proto (Encoded as a base64 string when passed over JSON)

Example Request

{
  "id": 1,
  "method": "Page.getAnnotatedPageContent"
}

Example Response

{
  "id": 1,
  "result": {
    "content": "content-value"
  }
}

Usage in Node.js

const result = await send('Page.getAnnotatedPageContent');
console.log(result);
// {"content": "content-value"}