Skip to main content
POST
/
v1
/
browsers
/
{id}
/
fetch-text
Fetch Text
curl --request POST \
  --url https://api.example.com/v1/browsers/{id}/fetch-text/
{
  "text": "<string>"
}

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 visible text content of the current page or a specific element, stripped of HTML markup.

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.

Request Body

node_id
integer
required
Node ID from the UI map to fetch text from.

Response

text
string
The visible text content of the matched element.

Example

curl -X POST https://your-host/browsers/exc-b9534e98-c3ce-4d1b-9671-b563ac66adc3/fetch-text/ \
  -H "Content-Type: application/json" \
  -d '{ "node_id": 123 }'