# Log in, then capture

Source: https://zshot-cli.com/examples/navigate-login/
Markdown: https://zshot-cli.com/examples/navigate-login/index.md
Section: [Examples](https://zshot-cli.com/examples/)
License: [Pro](https://zshot-cli.com/support/licenses/pro)

Sign into [ZRM](https://zshot-cli.com/example_assets/zrm/), search for a lead, and capture their detail page, saved to [`lucia-marchetti.png`](/example-renders/lucia-marchetti.png). The navigator in this example uses Anthropic with an API key you must provide.

**CLI**

```sh
zshot -f lucia-marchetti.png \
  --navigate "Login, search for Lucia Marchetti and go to their detail page" \
  --navigator-credential username=success@zshot-app.com \
  --navigator-credential password=password \
  --navigator-type "anthropic://YOUR_API_KEY@" \
  "https://zshot-cli.com/example_assets/zrm/"
```

**JSON** — `POST /` body for the [API](/reference/server/api), Pro license

```json
{
  "url": "https://zshot-cli.com/example_assets/zrm/",
  "output_type": "png",
  "navigate": "Login, search for Lucia Marchetti and go to their detail page",
  "navigator_type": "anthropic://YOUR_API_KEY@",
  "navigator_credential": {
    "username": "success@zshot-app.com",
    "password": "password"
  }
}
```

**curl**

```sh
curl -X POST http://127.0.0.1:3000/ \
  -H "Content-Type: application/json" \
  -d '{"url":"https://zshot-cli.com/example_assets/zrm/","output_type":"png","navigate":"Login, search for Lucia Marchetti and go to their detail page","navigator_type":"anthropic://YOUR_API_KEY@","navigator_credential":{"username": "success@zshot-app.com","password": "password"}}' \
  -o lucia-marchetti.png
```

Expected output: [lucia-marchetti.png](/example-renders/lucia-marchetti.png) — Lucia Marchetti's lead detail page in ZRM, reached by the navigator after signing in

## Related

Flags:

- [`--navigate`](https://zshot-cli.com/reference/flags/navigator/navigate/)
- [`--navigator-type`](https://zshot-cli.com/reference/flags/navigator/navigator-type/)
- [`--navigator-credential`](https://zshot-cli.com/reference/flags/navigator/navigator-credential/)

Topics:

- [LLM Connections](https://zshot-cli.com/reference/llm_connections/) — Select an agent navigation backend

## Navigation

- [Examples](https://zshot-cli.com/examples/)
  - [Webpage as PNG](https://zshot-cli.com/examples/hello-from-zshot/)
  - [Full-page phone screenshot](https://zshot-cli.com/examples/full-page-phone/)
  - [Wait for a JavaScript event](https://zshot-cli.com/examples/wait-for-event/)
  - [Rendered HTML](https://zshot-cli.com/examples/html-output/)
  - [Tablet screenshot](https://zshot-cli.com/examples/tablet-screenshot/)
  - [Accessible PDF](https://zshot-cli.com/examples/accessible-pdf/)
  - [WebM video](https://zshot-cli.com/examples/webm-video/)
  - [Animated GIF](https://zshot-cli.com/examples/animated-gif/)
  - [Dark mode](https://zshot-cli.com/examples/dark-mode/)
  - [Emulate geolocation](https://zshot-cli.com/examples/geolocation/)
  - **Log in, then capture**
  - [Log in, then extract JSON](https://zshot-cli.com/examples/sales-report-json/)
  - [Upload a file, download the result](https://zshot-cli.com/examples/enhance-leads/)
  - [Crawl a site into a WACZ](https://zshot-cli.com/examples/crawl-links/)
  - [Archive a sitemap into a WACZ](https://zshot-cli.com/examples/wacz-sitemap/)
  - [Run an API server](https://zshot-cli.com/examples/api-server/)
  - [Signed URL support](https://zshot-cli.com/examples/menu-board/)
  - [Browser as a CDN](https://zshot-cli.com/examples/browser-as-a-cdn/)
- [Download](https://zshot-cli.com/download/)
- [Purchase](https://zshot-cli.com/purchase/)
- [Reference](https://zshot-cli.com/reference/)
- [Support](https://zshot-cli.com/support/)
- [Changelog](https://zshot-cli.com/changelog/)

Site index: https://zshot-cli.com/llms.txt

