openapi: 3.2.0
info:
description: Welcome to Cloudflare's API documentation site.
license:
name: BSD-3-Clause
url: https://opensource.org/licenses/BSD-3-Clause
title: Cloudflare Brapi API
version: 4.0.0
servers:
- description: Client API
url: https://api.cloudflare.com/client/v4
security:
- api_email: []
api_key: []
- api_token: []
- user_service_key: []
tags:
- name: brapi
paths:
/accounts/{account_id}/browser-rendering/accessibilityTree:
post:
operationId: brapi-post_AccessibilityTree
summary: Get accessibility tree page
description: Returns the page's accessibility tree. Use `interestingOnly` to only return semantically meaningful nodes; use `root` to scope the tree to a CSS-selector-anchored subtree. Control page loading with `gotoOptions` and `waitFor*` options.
parameters:
- name: account_id
in: path
description: Account ID.
required: true
schema:
description: Account ID.
type: string
- name: cacheTTL
in: query
description: Cache TTL default is 5s. Set to 0 to disable.
schema:
description: Cache TTL default is 5s. Set to 0 to disable.
type: number
default: 5
maximum: 86400
minimum: 0
- name: browser
in: query
description: Rendering backend. Set to `kitesurf` to use Kitesurf (beta).
schema:
description: Rendering backend. Set to `kitesurf` to use Kitesurf (beta).
type: string
enum:
- kitesurf
requestBody:
required: true
content:
application/json:
examples:
example1:
value:
url: https://www.example.com/
schema:
type: object
properties:
actionTimeout:
description: The maximum duration allowed for the browser action to complete after the page has loaded (such as taking screenshots, extracting content, or generating PDFs). If this time limit is exceeded, the action stops and returns a timeout error.
type: number
maximum: 120000
addScriptTag:
description: Adds a script element into the page with the desired URL or content.
type: array
items:
additionalProperties: false
properties:
content:
type: string
id:
type: string
type:
type: string
url:
type: string
format: uri
type: object
addStyleTag:
description: Adds a `` tag into the page with the desired URL or a `