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

# Capture HAR File

> Capture a HAR (HTTP Archive) file from the browser recording all network activity

The Capture HAR File command (Command Type: 23) captures a HAR file from the browser, recording all network requests and responses made during the capture period.

## Command Type

**Command Type ID:** 23

## Parameters

| Parameter   | Type   | Description                                            | Required |
| ----------- | ------ | ------------------------------------------------------ | -------- |
| **timeout** | number | Timeout in milliseconds (defines the capture duration) | Yes      |

## Usage Examples

### Capture HAR for 10 Seconds

```json theme={null}
{
  "command": "capture-har-file",
  "params": {
    "timeout": 10000
  }
}
```

## Common Use Cases

* **Network Debugging**: Capture all XHR/fetch calls made by a page during load
* **API Discovery**: Identify undocumented API endpoints by observing network traffic
* **Performance Analysis**: Record timing information for all network requests

## Related Commands

* [Web Request](/stream/commands/browser/web-request) - Listen to individual request lifecycle events
* [Fetch Web Request](/stream/commands/browser/fetch-web-request) - Make fetch requests from browser context
