# Read captured requests

Node type `browser_getNetworkData`

## What it does

Read data that a preceding network listener captured.

## Desktop client configuration

![Read captured requests configuration in the desktop client](/assets/get-network-data.9d3e30ddc465c9b63b04457adeb8a75ae1ad93a2e905c771e0f29d8edfbd8914.0538f3a9.webp)

Captured in the English interface of MoreLogin Desktop V2.73.101.

## Inputs

These fields belong in `data.browserUi.inputs`.

| Field | Type or values | Schema required | Execution default | Description and bounds |
|  --- | --- | --- | --- | --- |
| `scope` | `"all"` / `"specified"` (supports variable references) | No | `"all"` | Listener scope. Editor initial value `"all"` |
| `listenerIds` | array<`string`> (supports variable references) | No | — | Select listeners |
| `eventType` | `"response"` / `"request"` (supports variable references) | No | `"response"` | Content to get. Editor initial value `"response"` |
| `filterEnabled` | `boolean` (supports variable references) | No | `false` | Enable filter conditions. Editor initial value `false` |
| `urlMatch` | `"contains"` / `"exact"` / `"regex"` (supports variable references) | No | `"contains"` | Request URL match type. Editor initial value `"contains"` |
| `url` | `string` | No | `""` | Request URL (optional). Editor initial value `""` |
| `method` | `"ANY"` / `"GET"` / `"POST"` / `"PUT"` / `"PATCH"` / `"DELETE"` / `"HEAD"` / `"OPTIONS"` (supports variable references) | No | `"ANY"` | Request method. Editor initial value `"ANY"` |
| `resourceType` | `"all"` / `"fetch-xhr"` / `"document"` / `"script"` / `"stylesheet"` / `"image"` / `"font"` / `"media"` / `"other"` (supports variable references) | No | `"all"` | Resource type. Editor initial value `"all"` |
| `outputMode` | `"first"` / `"all"` (supports variable references) | No | `"all"` | Retrieval mode. Editor initial value `"all"` |
| `waitTimeoutMs` | `WorkflowNumber` | No | `10000` | Wait time when no data is available (ms); minimum after resolution: 1. Editor initial value `10000` |
| `bodyFormat` | `"auto"` / `"json"` / `"text"` (supports variable references) | No | `"auto"` | Response body format. Editor initial value `"auto"` |


## Mode requirements and limits

- scope=specified requires a non-empty listenerIds. first waits up to waitTimeoutMs; all returns the currently available list immediately. A successful read consumes the selected requests/responses.
- Validation code `RPA_NODE_INPUT_INVALID`


## Input references

| Field | Allowed forms |
|  --- | --- |
| `scope` | `literal`, `template` |
| `listenerIds` | `literal`, `template` |
| `eventType` | `literal`, `template` |
| `filterEnabled` | `literal`, `template` |
| `urlMatch` | `literal`, `template` |
| `url` | `literal`, `template` |
| `method` | `literal`, `template` |
| `resourceType` | `literal`, `template` |
| `outputMode` | `literal`, `template` |
| `waitTimeoutMs` | `literal`, `numericExpression` |
| `bodyFormat` | `literal`, `template` |


## Outputs

**Mode** `{"op":"and","rules":[{"op":"eq","field":"eventType","value":"request"},{"op":"eq","field":"outputMode","value":"first"}]}`

| Output field | Type or values |
|  --- | --- |
| `request` | `RequestInfo` |


**Mode** `{"op":"and","rules":[{"op":"eq","field":"eventType","value":"request"},{"op":"eq","field":"outputMode","value":"all"}]}`

| Output field | Type or values |
|  --- | --- |
| `requests` | array<`RequestInfo`> |
| `count` | `number` |


**Mode** `{"op":"and","rules":[{"op":"eq","field":"eventType","value":"response"},{"op":"eq","field":"outputMode","value":"first"}]}`

| Output field | Type or values |
|  --- | --- |
| `response` | `ResponseInfo` |


**Mode** `{"op":"and","rules":[{"op":"eq","field":"eventType","value":"response"},{"op":"eq","field":"outputMode","value":"all"}]}`

| Output field | Type or values |
|  --- | --- |
| `responses` | array<`ResponseInfo`> |
| `count` | `number` |


Reference published fields as `${nodeId.data.field}`.

## JSON example

A complete node object for a workflow's `nodes` array or another node's `blocks`. An earlier Start network listener node captures the requests.

```json
{
  "id": "read_api_response",
  "type": "browser_getNetworkData",
  "data": {
    "title": "Read the captured API responses",
    "browserAction": "getNetworkData",
    "browserUi": {
      "inputs": {
        "scope": "all",
        "eventType": "response",
        "filterEnabled": true,
        "urlMatch": "contains",
        "url": "/api/orders",
        "method": "GET",
        "resourceType": "fetch-xhr",
        "outputMode": "first",
        "waitTimeoutMs": 10000,
        "bodyFormat": "json"
      },
      "exception": {
        "timeout": 30000,
        "policy": "interrupt"
      }
    }
  }
}
```

[Back to the node catalog](/browser-rpa/nodes)