# HAR

Source: https://zshot-cli.com/reference/formats/har/
Markdown: https://zshot-cli.com/reference/formats/har/index.md
Section: [Reference](https://zshot-cli.com/reference/) › [Formats](https://zshot-cli.com/reference/formats/)
Output type: [`har`](https://zshot-cli.com/reference/flags/common/output-type/) · Extension: [`.har`](https://zshot-cli.com/reference/flags/common/file-name/)
License: [Standard](https://zshot-cli.com/support/licenses/standard)

An HTTP Archive: a JSON log of every request the page made, with timings and headers. You can request a HAR alongside a render by using the [`--har`](/reference/flags/archive/har) flag.

## Example

**CLI**

```sh
zshot -f archive.har https://zshot-cli.com/example_assets/zemu/index.html
```

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

```json
{
  "url": "https://zshot-cli.com/example_assets/zemu/index.html",
  "output_type": "har"
}
```

**curl**

```sh
curl -X POST http://127.0.0.1:3000/ \
  -H "Content-Type: application/json" \
  -d '{"url":"https://zshot-cli.com/example_assets/zemu/index.html","output_type":"har"}' \
  -o archive.har
```

**CLI**

```sh
zshot -f zemu.png \
    --har archive.har \
    https://zshot-cli.com/example_assets/zemu/index.html
```

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

```json
{
  "url": "https://zshot-cli.com/example_assets/zemu/index.html",
  "output_type": "png",
  "with_har": true
}
```

**curl**

```sh
curl -X POST http://127.0.0.1:3000/ \
  -H "Content-Type: application/json" \
  -d '{"url":"https://zshot-cli.com/example_assets/zemu/index.html","output_type":"png","with_har":true}' \
  -D - -o zemu.png
```

## Related

Flags:

- [`--har`](https://zshot-cli.com/reference/flags/archive/har/)
- [`--har-capture-bodies`](https://zshot-cli.com/reference/flags/archive/har-capture-bodies/)
- [`--har-captures-navigation`](https://zshot-cli.com/reference/flags/archive/har-captures-navigation/)
- [`--archive-body-size-limit`](https://zshot-cli.com/reference/flags/archive/archive-body-size-limit/)

Topics:

- [Archive](https://zshot-cli.com/reference/flags/archive/)
- [Wikipedia](https://en.wikipedia.org/wiki/HAR_(file_format))
- [Replay Webpage](https://replayweb.page)

## Navigation

- [Examples](https://zshot-cli.com/examples/)
- [Download](https://zshot-cli.com/download/)
- [Purchase](https://zshot-cli.com/purchase/)
- [Reference](https://zshot-cli.com/reference/)
  - [Formats](https://zshot-cli.com/reference/formats/)
    - [PNG](https://zshot-cli.com/reference/formats/png/)
    - [HTML](https://zshot-cli.com/reference/formats/html/)
    - [MHTML](https://zshot-cli.com/reference/formats/mhtml/)
    - [Plain Text](https://zshot-cli.com/reference/formats/txt/)
    - [Download](https://zshot-cli.com/reference/formats/download/)
    - [JPEG](https://zshot-cli.com/reference/formats/jpeg/)
    - [JPEG XL](https://zshot-cli.com/reference/formats/jpegxl/)
    - [WebP](https://zshot-cli.com/reference/formats/webp/)
    - [TIFF](https://zshot-cli.com/reference/formats/tiff/)
    - [BMP](https://zshot-cli.com/reference/formats/bmp/)
    - [PDF](https://zshot-cli.com/reference/formats/pdf/)
    - [Markdown](https://zshot-cli.com/reference/formats/markdown/)
    - [AVIF](https://zshot-cli.com/reference/formats/avif/)
    - [GIF](https://zshot-cli.com/reference/formats/gif/)
    - [APNG](https://zshot-cli.com/reference/formats/apng/)
    - [WebM](https://zshot-cli.com/reference/formats/webm/)
    - [MP4](https://zshot-cli.com/reference/formats/mp4/)
    - [MKV](https://zshot-cli.com/reference/formats/mkv/)
    - **HAR**
    - [WARC](https://zshot-cli.com/reference/formats/warc/)
    - [AXTree](https://zshot-cli.com/reference/formats/axtree/)
    - [WACZ](https://zshot-cli.com/reference/formats/wacz/)
    - [LLM JSON](https://zshot-cli.com/reference/formats/llm_json/)
    - [LLM Text](https://zshot-cli.com/reference/formats/llm_text/)
    - [Goal](https://zshot-cli.com/reference/formats/goal/)
    - [Trace](https://zshot-cli.com/reference/formats/trace/)
    - [CPU profile](https://zshot-cli.com/reference/formats/pprof_cpu/)
    - [Memory profile](https://zshot-cli.com/reference/formats/pprof_memory/)
  - [Flags](https://zshot-cli.com/reference/flags/)
  - [Agents](https://zshot-cli.com/reference/agents/)
  - [Configuration](https://zshot-cli.com/reference/configuration/)
  - [Crawling](https://zshot-cli.com/reference/crawling/)
  - [Docker](https://zshot-cli.com/reference/docker/)
  - [Exit Codes](https://zshot-cli.com/reference/exit_codes/)
  - [Linux](https://zshot-cli.com/reference/linux/)
  - [LLM Connections](https://zshot-cli.com/reference/llm_connections/)
  - [LLM Formatting](https://zshot-cli.com/reference/llm_formatting/)
  - [Local Inputs](https://zshot-cli.com/reference/inputs/)
  - [Navigator](https://zshot-cli.com/reference/navigator/)
  - [Security](https://zshot-cli.com/reference/security/)
  - [Server](https://zshot-cli.com/reference/server/)
  - [Shell completions](https://zshot-cli.com/reference/shell_completions/)
  - [Storage](https://zshot-cli.com/reference/storage/)
  - [Timeouts](https://zshot-cli.com/reference/timeouts/)
  - [Web Bot Auth](https://zshot-cli.com/reference/web_bot_auth/)
- [Support](https://zshot-cli.com/support/)
- [Changelog](https://zshot-cli.com/changelog/)

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

