String Web Access API
Screenshots & Actions

Browser actions

Drive a page with a sequence of clicks, typing, scrolling, and waits.

The actions array runs a sequence of browser actions against the page before returning. The API navigates to your url first, then executes each action in order. An array can contain 1 to 50 actions.

{
  "url": "https://example.com/search",
  "actions": [
    { "type": "write", "text": "wireless headphones" },
    { "type": "press", "key": "Enter" },
    { "type": "wait", "selector": ".results" },
    { "type": "scroll", "direction": "down", "amount": 2000 },
    { "type": "screenshot", "full_page": true }
  ]
}

Action types

Each action is an object with a type and its own fields.

typeFieldsDescription
navigateurlNavigate to a URL.
clickselector, all?Click an element. Set all: true to click every match.
writetextType text into the focused element.
presskeyPress a key (e.g. Enter, Tab).
hoverselectorHover over an element.
scrolldirection? (up/down/left/right), amount?, selector?Scroll the page or an element.
selectOptionselector, value (string or string array)Select option(s) in a <select>.
waitmilliseconds? (≤ 30000), selector?, timeout? (≤ 30000)Wait for a duration, or for a selector to appear.
screenshotfull_page?, quality? (1–100)Capture a screenshot. Max one per request.

Response

{
  "statusCode": 200,
  "headers": { "content-type": ["text/html"] },
  "finalUrl": "https://example.com/search?q=wireless+headphones",
  "data": "<!doctype html>…",
  "screenshot": { "format": "png", "base64": "iVBORw0KGgo…" }
}
FieldDescription
finalUrlThe URL after all actions ran (navigations and redirects applied).
dataThe final page's HTML — always present.
screenshotPresent only if a screenshot action ran: { format, base64 }.
errorPresent if the sequence failed.
failedActionIndex0-based index into your actions array of the action that failed.

Access control applies to every step

Each navigation an action triggers — including clicks that follow links and script-driven redirects — is re-checked against your organization's access rules. See Access control & KYC.