Skip to main content
This example reads data from a web dashboard that does not expose it through an API. The page is the public Grafana demo, and the task returns each Kubernetes node with its average CPU usage.
  • The dashboard renders its table in the browser, so a plain HTTP request does not see the values.
  • output_schema makes the task return numbers as numbers, and the code validates the shape.
Before you run it, set ANCHORBROWSER_API_KEY and install the SDK. The Node.js version also needs zod 4, and the Python version needs pydantic.

Output

Both scripts on this page were run against the live API on November 27, 2026. This is the output of one of those runs. Your values will differ.

Notes

  • This dashboard loads slowly. In six runs, two returned an empty list with a status other than success, even though the prompt tells the agent to wait. The status check caught both. Retry the task when that happens.
  • For a dashboard behind a login, sign in with managed authentication and pass the identity when you create the session.
  • The task result is checked: a status other than success raises an error instead of printing a failure as if it worked.
  • The session is ended in a finally block. A task does not end the session it runs in.