# Batch JSONPath API Response Audit

**Use case:** 

Run several JSONPath expressions over API response JSON to extract IDs, statuses, errors, and nested totals in one dataset.

## Input

```json
{
  "jsonInput": "{\"requestId\":\"req_123\",\"status\":\"ok\",\"data\":{\"orders\":[{\"id\":\"o1\",\"status\":\"paid\",\"total\":42.5},{\"id\":\"o2\",\"status\":\"pending\",\"total\":13.0}]},\"errors\":[]}",
  "expressions": [
    "$.requestId",
    "$.data.orders[*].id",
    "$.data.orders[?(@.status == 'paid')].total",
    "$.errors[*]"
  ],
  "includeResultPath": true,
  "flattenResults": true,
  "wrapSingleValue": true
}
```

## Output

```json
{
  "expression": {
    "label": "Expression",
    "format": "text"
  },
  "resultPath": {
    "label": "Path",
    "format": "text"
  },
  "matchIndex": {
    "label": "Match #",
    "format": "number"
  },
  "value": {
    "label": "Value",
    "format": "text"
  },
  "valueType": {
    "label": "Type",
    "format": "text"
  }
}
```

## About this Actor

This example demonstrates how to use [JSONPath Extractor](https://apify.com/automation-lab/jsonpath-extractor) with a specific input configuration. Visit the [Actor detail page](https://apify.com/automation-lab/jsonpath-extractor) to learn more, explore other use cases, and run it yourself.