fetch API from within the browser context.
Command Type
Command Type ID: 24Parameters
| 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
POST Request with JSON Body
Related Commands
- Parallel Fetch Web Request - Run multiple fetch requests in parallel
- Get Web Data - Similar browser-context fetch
- HTTP Request - HTTP request without browser context