Extract Content
POST /v1/browser/interactions/content
Extract LLM-friendly content from the current page
Authentication
Requires authentication via: OAuth2PasswordBearer.
Parameters
| Name | In | Type | Required | Description | Constraints |
|---|---|---|---|---|---|
X-API-Key | header | string | null | No | nullable |
Request Body
Required: Yes
application/json
Resolved schema:
{
"properties": {
"session_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Session Id"
},
"include_interactive": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Include Interactive",
"default": true
},
"include_anchors": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Include Anchors",
"default": true
},
"max_anchors": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Max Anchors",
"default": 50
}
},
"type": "object",
"title": "BrowserContentRequest",
"description": "Request schema for extracting LLM-friendly content"
}
Field details:
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
session_id | string | null | No | nullable | |
include_interactive | boolean | null | No | nullable | |
include_anchors | boolean | null | No | nullable | |
max_anchors | integer | null | No | nullable |
Responses
200
Successful Response
application/json
Resolved schema:
{
"properties": {
"readable_content": {
"anyOf": [
{
"type": "object"
},
{
"type": "null"
}
],
"title": "Readable Content"
},
"interactive_elements": {
"anyOf": [
{
"items": {
"type": "object"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Interactive Elements"
},
"content_anchors": {
"anyOf": [
{
"items": {
"type": "object"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Content Anchors"
},
"execution_time": {
"type": "number",
"title": "Execution Time"
},
"session_id": {
"type": "string",
"title": "Session Id"
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Url"
},
"usage_info": {
"anyOf": [
{
"type": "object"
},
{
"type": "null"
}
],
"title": "Usage Info"
}
},
"type": "object",
"required": [
"execution_time",
"session_id"
],
"title": "BrowserContentResponse",
"description": "Response schema for content extraction"
}
Field details:
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
readable_content | object | null | No | nullable | |
interactive_elements | array<object> | null | No | nullable | |
interactive_elements[] | object | No | ||
content_anchors | array<object> | null | No | nullable | |
content_anchors[] | object | No | ||
execution_time | number | Yes | ||
session_id | string | Yes | ||
url | string | null | No | nullable | |
usage_info | object | null | No | nullable |
422
Validation Error
application/json
Resolved schema:
{
"properties": {
"detail": {
"items": {
"properties": {
"loc": {
"items": {
"anyOf": [
{
"type": "string"
},
{
"type": "integer"
}
]
},
"type": "array",
"title": "Location"
},
"msg": {
"type": "string",
"title": "Message"
},
"type": {
"type": "string",
"title": "Error Type"
}
},
"type": "object",
"required": [
"loc",
"msg",
"type"
],
"title": "ValidationError"
},
"type": "array",
"title": "Detail"
}
},
"type": "object",
"title": "HTTPValidationError"
}
Field details:
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
detail | array<object> | No | ||
detail[] | object | No | ||
detail[].loc | array<string | integer> | No | ||
detail[].loc[] | string | integer | No | ||
detail[].msg | string | No | ||
detail[].type | string | No |