> ## 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.

# Fetch Web Request

> Send a web request using the browser fetch API

The Fetch Web Request command (Command Type: 24) sends a web request using the browser's `fetch` API from within the browser context.

## Command Type

**Command Type ID:** 24

## Parameters

| Parameter   | Type             | Description                                                | Required |
| ----------- | ---------------- | ---------------------------------------------------------- | -------- |
| **url**     | string           | The URL of the web request                                 | Yes      |
| **timeout** | number           | Timeout in milliseconds                                    | Yes      |
| **body**    | object or string | Request body for POST/PUT requests                         | No       |
| **headers** | object or Array  | Headers to include with the request                        | No       |
| **method**  | string           | HTTP method (e.g., `"GET"`, `"POST"`). Defaults to `"GET"` | No       |

## Usage Examples

### Simple GET Request

```json theme={null}
{
  "command": "fetch-web-request",
  "params": {
    "url": "https://api.example.com/data",
    "timeout": 10000
  }
}
```

### POST Request with JSON Body

```json theme={null}
{
  "command": "fetch-web-request",
  "params": {
    "url": "https://api.example.com/submit",
    "timeout": 15000,
    "method": "POST",
    "headers": { "Content-Type": "application/json" },
    "body": { "query": "live_data" }
  }
}
```

## Related Commands

* [Parallel Fetch Web Request](/stream/commands/browser/parallel-fetch-web-request) - Run multiple fetch requests in parallel
* [Get Web Data](/stream/commands/browser/get-web-data) - Similar browser-context fetch
* [HTTP Request](/stream/commands/http/http-request) - HTTP request without browser context
