Start Capturing Web Requests
Command description
Capture network requests from a webpage. Use this command with Stop Capturing Web Requests, Get Web Request Data, and Navigate Webpage. Refreshing the webpage with Navigate Webpage causes its resources to be requested again so they can be captured.
Command Input Parameters
| input parameters | Input parameter type | Description |
|---|---|---|
| Webpage Object | WebPage | Listen for requests from this web page |
| Resource URL | str | When the requested URL contains this value, the request data is collected. By default, all request data is collected. |
| Regex Match | bool | Whether Resource URL is a regular expression; default: False |
| Resource Type | enum | All, XHR|Fetch, Document, Stylesheet, Image, Media, Font, Script, WebSocket, Other |
Command Output Parameters
None
Type definition reference
-
Start Capturing Web Requests > Resource URL: collect requests whose URL contains the specified text. Leave it empty to collect every request.
-
Start Capturing Web Requests > Resource Type: select the Chrome DevTools resource type to collect, such as XHR, Script, or Image.
-
After collecting the required data, run Stop Capturing Web Requests to prevent accumulated request data from consuming excessive browser resources.
-
Get Web Request Data > Resource URL: filter the captured requests by URL. Leave it empty to return all data captured by Start Capturing Web Requests.
The returned request data has the following structure:
[
{
"url": "",
"type": "XHR",
"status": 200,
"headers": {},
"body": "string",
"base64Encoded": false,
"requestId": ""
}
]
Install the Runavelo browser extension before using this command.
Example
Capture JSON returned by a web application
The sample application's /apps endpoint returns JSON, so parse the body string with json.loads.
{
"code": 0,
"data": [
{
"id": 8,
"type": 0,
"title": "Email Triage Assistant",
"status": 1,
"dateTime": "2025-06-28",
"desc": "Classify incoming support requests and prepare suggested responses",
"logo": "https://cdn.runavelo.com/examples/email-triage.png",
"link": "https://runavelo.com/examples/email-triage"
}
]
}