Skip to main content
GET
/
v1
/
browsers
/
{id}
/
ui-map-diff
Fetch UI Map Diff
curl --request GET \
  --url https://api.example.com/v1/browsers/{id}/ui-map-diff/
[
  {
    "id": 42,
    "parent_id": 2,
    "name": "Search Results",
    "role": "\"list\"",
    "properties": {
      "Focusable": false
    }
  }
]

Documentation Index

Fetch the complete documentation index at: https://docs.rustybrowser.com/llms.txt

Use this file to discover all available pages before exploring further.

Description

Returns the diff of the accessibility tree compared to the previous snapshot. Only nodes that have been added, removed, or changed are included. Useful for detecting page changes after an action without fetching the full tree.

Authentication

Authorization: Bearer YOUR_API_KEY
Self-hosted open source deployments do not require authentication.

Path Parameters

id
string
required
The browser ID returned from Create Session.

Response

Returns an array of changed UI node objects. Same structure as Fetch UI Map.
[].id
integer
Unique node ID within the current page.
[].parent_id
integer
ID of the parent node.
[].name
string
Accessible name of the element.
[].role
string
ARIA role of the element.
[].properties
object
Additional accessibility properties.

Example

curl https://api.rustybrowser.com/v1/browsers/exc-b9534e98-c3ce-4d1b-9671-b563ac66adc3/ui-map-diff/ \
  -H "Authorization: Bearer YOUR_API_KEY"
[
  {
    "id": 42,
    "parent_id": 2,
    "name": "Search Results",
    "role": "\"list\"",
    "properties": {
      "Focusable": false
    }
  }
]