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

# Get Web Data

> Execute an HTTP request from within the browser context using the fetch API

The Get Web Data command (Command Type: 19) executes an HTTP request to a specified URL using the browser's native `fetch` API, running inside the browser context.

## Command Type

**Command Type ID:** 19

## Parameters

| Parameter   | Type   | Description                                                                | Required |
| ----------- | ------ | -------------------------------------------------------------------------- | -------- |
| **url**     | string | The URL to fetch data from                                                 | Yes      |
| **timeout** | number | Timeout in milliseconds                                                    | Yes      |
| **options** | object | Configuration object based on the `RequestInit` interface of the fetch API | No       |

## Usage Examples

### Fetch JSON Data

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

### Fetch with POST Options

```json theme={null}
{
  "command": "get-web-data",
  "params": {
    "url": "https://api.example.com/query",
    "timeout": 15000,
    "options": {
      "method": "POST",
      "headers": { "Content-Type": "application/json" },
      "body": "{\"query\":\"live_events\"}"
    }
  }
}
```

## Common Use Cases

* **Same-Origin Requests**: When the target API requires cookies or session context from the browser
* **Authenticated Fetches**: Leverage existing browser session cookies for authenticated requests

## Related Commands

* [Fetch Web Request](/stream/commands/browser/fetch-web-request) - Parallel fetch variant
* [HTTP Request](/stream/commands/http/http-request) - HTTP request without browser context
