> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anchorbrowser.io/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Anchor Browser is cloud browser infrastructure for AI agents and automation: browser sessions you control over CDP or REST, natural-language web tasks, versioned automation tasks, managed authentication into third-party web apps (identities with MFA), persistent volumes and profiles, recordings, live view, batch sessions, webhooks, and network options including residential proxies, extra stealth, and captcha solving for sites that block standard browsers. The for-agents page (https://docs.anchorbrowser.io/for-agents) covers authentication and the first API calls. API keys are created at https://app.anchorbrowser.io/api-keys. Append .md to any page URL for its Markdown version. The SDKs read the API key from ANCHORBROWSER_API_KEY, and REST calls send it in the anchor-api-key header. End every session you create with DELETE /v1/sessions/{id}, because a session is billed until it ends. Location targeting, captcha solving and managed authentication need the Starter plan, and extra stealth needs the Growth plan; on the Free plan, create a session with an empty body. Plans and limits are at https://docs.anchorbrowser.io/pricing. The hosted MCP server is https://api.anchorbrowser.io/v1/mcp.

# Collect Data from a SaaS Without an API

> Sign in to dashboards and portals, navigate the UI, and pull reports or records from web apps with no public API.

Plenty of business-critical data lives behind a login in a web app that has no API — internal dashboards, vendor portals, legacy admin panels. Anchor lets you sign in, navigate the UI, and extract that data reliably, then run the same flow again whenever you need it.

This guide walks through the full flow: authenticate once, extract the data, and turn it into a repeatable task.

## Step 1: Authenticate into the app

Most portals require a login. Set up authentication once and reuse it across every run — no re-typing credentials, no broken sessions.

**1. Register the application**

Add the target web app as an [Application](https://docs.anchorbrowser.io/essentials/applications.md) so Anchor knows its login URL and flow.

**2. Create an identity**

An [identity](https://docs.anchorbrowser.io/essentials/authenticated-applications.md) is one account on that app. Anchor signs in, keeps the login alive, and stores the credentials in its vault. The agent never sees the password. To let the account owner sign in without handing over a password, send them a sign-in link.

**3. Handle MFA**

If the portal asks for a second factor, set up [MFA](https://docs.anchorbrowser.io/advanced/mfa.md) so that runs complete without a person.

**4. Attach the identity to a session**

Pass the identity when you create the session, and the browser starts signed in:

```json theme={null}
{
  "identities": [{ "id": "<identity-id>" }]
}
```

Managed authentication needs the Starter plan or above.

> [!TIP]
>
> For credentials that must never be logged or exposed to the model, use [Secret Values](https://docs.anchorbrowser.io/agentic-browser-control/secret-values.md) and [Sensitive Data Masking](https://docs.anchorbrowser.io/advanced/sensitive-data-masking.md).

## Step 2: Navigate and extract the data

With an authenticated session, point the agent at the data you need.

* **Describe what to collect** — use a natural-language [Web Task](https://docs.anchorbrowser.io/agentic-browser-control/ai-task-completion.md) to navigate the UI and return exactly the fields you want.
* **Get structured output** — pass an `output_schema` to a [web task](https://docs.anchorbrowser.io/agentic-browser-control/ai-task-completion.md) to get JSON, or fetch the rendered HTML of a URL with [Web Unlocker](https://docs.anchorbrowser.io/advanced/web-unlocker.md).
* **Read from network responses** — when the UI is backed by internal XHR/fetch calls, capture those payloads directly (see the Network step type in [Automation Tasks Overview](https://docs.anchorbrowser.io/tasks/overview.md)).

For a complete script, see [Configuration Collection](https://docs.anchorbrowser.io/examples/configuration-collection.md). It reads a table from a dashboard and returns typed JSON.

## Step 3: Make it repeatable

A one-off extraction is useful; a reliable, repeatable one is a data pipeline. Turn the flow into an [Automation Task](https://docs.anchorbrowser.io/tasks/overview.md).

**1. Create the task**

Demonstrate the flow once or describe it in a prompt. Anchor compiles it into a versioned workflow. See [Creating a Task](https://docs.anchorbrowser.io/tasks/creating-a-task.md).

**2. Parameterize the inputs**

Use placeholders like `{{report_name}}` or `{{date_range}}` so one task serves many runs.

**3. Run it on demand or async**

Call the task from your app, or run long extractions in the background with [Async Automation Tasks](https://docs.anchorbrowser.io/advanced/async-automation-tasks.md). See [Run a Task](https://docs.anchorbrowser.io/tasks/run-a-task.md).

**4. Keep it working as the site changes**

Portals change their UI. [Self-healing](https://docs.anchorbrowser.io/advanced/self-healing.md) repairs broken steps automatically so your pipeline keeps running.

## Step 4: Deliver the data

Get results into your systems.

* **Return structured JSON** from each run to store or forward. Check the `status` of each result before you store it.
* **Keep the evidence.** [Recording](https://docs.anchorbrowser.io/essentials/recording.md) is on by default, so you can replay a run when a number looks wrong.
* **Get notified on completion** with [Webhooks](https://docs.anchorbrowser.io/webhooks/overview.md) — subscribe to run events and trigger downstream processing.
* **Download exported files** (CSVs, PDFs, reports) with [File Download](https://docs.anchorbrowser.io/advanced/file-download.md).

## Next steps

> [card] [Managed Authentication](https://docs.anchorbrowser.io/essentials/managed-authentication.md)
>
> Persist logins across sessions for gated portals.

> [card] [Perform a Web Task](https://docs.anchorbrowser.io/agentic-browser-control/ai-task-completion.md)
>
> Navigate the UI and extract data with natural language.

> [card] [Automation Tasks](https://docs.anchorbrowser.io/tasks/overview.md)
>
> Turn the flow into a versioned, repeatable pipeline.

> [card] [Web Unlocker](https://docs.anchorbrowser.io/advanced/web-unlocker.md)
>
> Fetch the fully rendered HTML of any URL in one call.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.