fetch API, running inside the browser context.
Command Type
Command Type ID: 19Parameters
| 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
Fetch with POST Options
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 - Parallel fetch variant
- HTTP Request - HTTP request without browser context