# @amplitude/plugin-network-capture-browser

Latest version **1.10.18** (published 2026-09-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install @amplitude/plugin-network-capture-browser
pnpm add @amplitude/plugin-network-capture-browser
yarn add @amplitude/plugin-network-capture-browser
bun add @amplitude/plugin-network-capture-browser
```

## Health

**Score 55/100 (C)** — status: active.

Positive: no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 1.10.18 |
| Published | 2026-09-25 |
| First published | 2025-04-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 180 |
| Author | Amplitude Inc |
| Maintainers | curtisbliu, kelson.warner, sdk.dev, eric_amplitude, daniel-graham-amplitude, jjwang123 |

## Links

- npm: https://www.npmjs.com/package/@amplitude/plugin-network-capture-browser
- Repository: https://github.com/amplitude/Amplitude-TypeScript
- Issues: https://github.com/amplitude/Amplitude-TypeScript/issues
- npm.io page: https://npm.io/package/@amplitude/plugin-network-capture-browser

## Recent versions

- 1.10.18 (latest) — 2026-09-25
- 1.10.17-video-analytics-5.0 (video-analytics-5) — 2026-09-22
- 1.10.16-video-analytics-4.0 (video-analytics-4) — 2026-09-17
- 1.10.15-video-analytics-2.0 (video-analytics-2) — 2026-09-09
- 1.10.13-video-analytics.0 (video-analytics) — 2026-07-31
- 1.10.4-featelement-selector-v1.0 (featelement-selector-v1) — 2026-06-15
- 1.10.3-SR-4497-custom-transport-hooks.0 (SR-4497-custom-transport-hooks) — 2026-06-09
- 1.10.2-sr-perf-reliability-rc.0 (sr-perf-reliability-rc) — 2026-06-05
- 1.10.2-sr-4646-rc.0 (sr-4646-rc) — 2026-06-03
- 1.10.1-sr-idb-multitab-test-rc.0 (sr-idb-multitab-test-rc) — 2026-05-04
- 1.9.15-sr-3531-rc-2.0 (sr-3531-rc-2) — 2026-04-20
- 1.9.14 (beta) — 2026-04-14
- 1.9.13-SR-3115-rc2.0 (SR-3115-rc2) — 2026-04-08
- 1.9.13-SR-3115-rc1.0 (SR-3115-rc1) — 2026-04-03
- 1.9.13-SR-3115.0 (SR-3115) — 2026-04-03
- … 107 more at https://npm.io/package/@amplitude/plugin-network-capture-browser/versions

## README

<p align="center">
  <a href="https://amplitude.com" target="_blank" align="center">
    <img src="https://static.amplitude.com/lightning/46c85bfd91905de8047f1ee65c7c93d6fa9ee6ea/static/media/amplitude-logo-with-text.4fb9e463.svg" width="280">
  </a>
  <br />
</p>

# @amplitude/plugin-network-capture-browser (beta)
**This plugin is in beta at the moment, naming and interface might change in the future.**

## TODO: Re-write this README.md to match plugin-network-capture

Browser SDK plugin for network capture.

## Installation

This package is published on NPM registry and is available to be installed using npm and yarn.

```sh
# npm
npm install @amplitude/plugin-network-capture-browser@beta

# yarn
yarn add @amplitude/plugin-network-capture-browser@beta
```

## Usage

This plugin works on top of the Amplitude Browser SDK, and tracks network request events

To use this plugin, you need to install `@amplitude/plugin-network-capture-browser`

### 1. Import Amplitude packages

* `@amplitude/analytics-browser`
* `@amplitude/plugin-network-capture-browser`

```typescript
import * as amplitude from '@amplitude/analytics-browser';
import { networkCapturePlugin } from '@amplitude/plugin-network-capture-browser';
```

### 2. Instantiate the plugin

The plugin accepts 1 optional parameter, which is an `Object` to configure the allowed tracking options.

```typescript
const plugin = networkCapturePlugin({
  ignoreHosts: ['host.com', 'host2.com'], // hosts to ignore; default []
  ignoreAmplitudeRequests: true, // ignore requests to amplitude.com; default "true",
  captureRules: [
    {hosts: ['host3.com', 'host4.com'], statusCodeRange: '400-499'},
    {hosts: ['example.com'], statusCodeRange: '403,500-599'},
  ],
});
```

### 3. Install plugin to Amplitude SDK

```typescript
amplitude.add(plugin);
```

### 4. Initialize Amplitude SDK

```typescript
amplitude.init('API_KEY');
```

---
_Source: https://npm.io/package/@amplitude/plugin-network-capture-browser · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
