Extract Elements
POST /v1/browser/interactions/extract
Extract DOM elements from the browser session
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": {
"selector": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Selector"
},
"session_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Session Id"
},
"attributes": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Attributes"
}
},
"type": "object",
"title": "BrowserExtractRequest",
"description": "Request schema for extracting DOM elements"
}
Field details:
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
selector | string | null | No | nullable | |
session_id | string | null | No | nullable | |
attributes | array<string> | null | No | nullable | |
attributes[] | string | No |
Responses
200
Successful Response
application/json
Resolved schema:
{
"properties": {
"elements": {
"items": {
"type": "object"
},
"type": "array",
"title": "Elements"
},
"count": {
"type": "integer",
"title": "Count"
},
"execution_time": {
"type": "number",
"title": "Execution Time"
},
"session_id": {
"type": "string",
"title": "Session Id"
}
},
"type": "object",
"required": [
"elements",
"count",
"execution_time",
"session_id"
],
"title": "BrowserExtractResponse",
"description": "Response schema for DOM extraction"
}
Field details:
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
elements | array<object> | Yes | ||
elements[] | object | Yes | ||
count | integer | Yes | ||
execution_time | number | Yes | ||
session_id | string | Yes |
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 |