# Trustpilot Review Scraper (`mighty_monk/trustpilot-review-scraper`) Actor

Scrape company profile and customer reviews from Trustpilot public pages. Extracts trust score, categories, ratings, review text, authors, and company replies with pagination support.

- **URL**: https://apify.com/mighty\_monk/trustpilot-review-scraper.md
- **Developed by:** [Harsh](https://apify.com/mighty_monk) (community)
- **Categories:** E-commerce, Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 review or company results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

### What does Trustpilot Review Scraper do?

**Trustpilot Review Scraper** extracts **company profile data** and **customer reviews** from public [Trustpilot](https://www.trustpilot.com) review pages. Give it one or more company URLs (or domains), set how many reviews you need, and get structured dataset items plus downloadable **CSV** and **Markdown** summaries.

Built with **TypeScript**, **Crawlee CheerioCrawler**, and dual extraction: embedded **`__NEXT_DATA__`** (Next.js) with **CSS selector fallbacks**. Run it on the Apify platform for scheduling, API access, proxy rotation, and monitoring.

### Why use Trustpilot Review Scraper?

- **Brand & reputation monitoring** — track trust scores and recent feedback for competitors or your own brand
- **Lead research** — find businesses by category signals and public review volume
- **Customer insight** — analyze rating distributions, verified reviews, and company reply quality
- **Market research** — export clean review text for NLP / sentiment pipelines

### How to use Trustpilot Review Scraper

1. Open the Actor in Apify Console and click **Try for free**
2. Paste one or more Trustpilot company URLs, e.g. `https://www.trustpilot.com/review/amazon.com` (or bare domains like `amazon.com`)
3. Set **Max reviews**, optional **min/max rating**, and enable **Apify Proxy** (recommended)
4. Click **Start** and download results as JSON, CSV, Excel, or use the API

### Input

| Field                | Type     | Default            | Description                                        |
| -------------------- | -------- | ------------------ | -------------------------------------------------- |
| `companyUrls`        | string[] | amazon.com profile | Trustpilot `/review/{domain}` URLs or bare domains |
| `maxReviews`         | integer  | `50`               | Max reviews to collect in the run                  |
| `minRating`          | integer  | `1`                | Minimum star rating (1–5)                          |
| `maxRating`          | integer  | `5`                | Maximum star rating (1–5)                          |
| `includeCompanyInfo` | boolean  | `true`             | Push a company summary item per company            |
| `maxConcurrency`     | integer  | `2`                | Parallel requests                                  |
| `maxRequestRetries`  | integer  | `3`                | HTTP retries                                       |
| `requestDelayMs`     | integer  | `500`              | Used to derive requests/minute rate limit          |
| `proxyConfiguration` | object   | Apify Proxy on     | Proxy settings (residential recommended)           |

Example:

```json
{
    "companyUrls": ["https://www.trustpilot.com/review/amazon.com"],
    "maxReviews": 20,
    "minRating": 1,
    "maxRating": 5,
    "includeCompanyInfo": true,
    "proxyConfiguration": { "useApifyProxy": true }
}
````

### Output

The dataset contains **company** items and **review** items (`type` field distinguishes them).

#### Company item

| Field                        | Description                       |
| ---------------------------- | --------------------------------- |
| `name`                       | Display name                      |
| `domain` / `identifyingName` | Trustpilot identifying domain     |
| `trustScore`                 | Trustpilot trust score            |
| `reviewCount`                | Profile review count              |
| `stars`                      | Star rating                       |
| `categories`                 | Category names                    |
| `replyRate`                  | Company reply rate when available |
| `companyUrl`                 | Source profile URL                |

#### Review item

| Field                           | Description                               |
| ------------------------------- | ----------------------------------------- |
| `id`                            | Review id (deduped)                       |
| `title`                         | Review title                              |
| `text`                          | Review body                               |
| `rating`                        | Stars 1–5                                 |
| `date`                          | Published date (ISO when available)       |
| `author`                        | Consumer display name                     |
| `authorLocation`                | Country / location code                   |
| `isVerified`                    | Verified purchase/experience flag         |
| `companyReply`                  | `{ text, date }` when the company replied |
| `companyName` / `companyDomain` | Parent company                            |
| `reviewUrl`                     | Link to the review when available         |

Example review:

```json
{
    "type": "review",
    "id": "abc123",
    "title": "Fast shipping",
    "text": "Order arrived next day.",
    "rating": 5,
    "date": "2026-07-01T10:00:00.000Z",
    "author": "Jane D",
    "authorLocation": "US",
    "isVerified": true,
    "companyReply": null,
    "companyName": "Amazon",
    "companyDomain": "amazon.com",
    "companyUrl": "https://www.trustpilot.com/review/amazon.com",
    "extractionMethod": "next-data"
}
```

#### Key-value store artifacts

| Key           | Content              |
| ------------- | -------------------- |
| `REVIEWS.csv` | All reviews as CSV   |
| `SUMMARY.md`  | Markdown run summary |
| `OUTPUT`      | JSON run stats       |

You can download the dataset in JSON, HTML, CSV, Excel, and other formats from the Output tab.

### Features

- Company profile: name, domain, trustScore, reviewCount, stars, categories, replyRate
- Reviews: id, title, text, rating, date, author, authorLocation, isVerified, companyReply
- **Pagination** of review pages until `maxReviews` is reached
- **Filter** by min/max rating
- **Retries**, rate limiting, concurrency control
- **Dedupe** by review id
- Dual extraction: `__NEXT_DATA__` + DOM fallbacks
- CSV + Markdown exports

### How much does it cost?

This Actor uses **Pay-per-event (PPE)** pricing:

- **Actor start**: small fixed fee per run
- **Dataset item**: **$0.002** per result (company or review item)

Example: scraping 1 company + 100 reviews ≈ 101 items ≈ **$0.20** (plus start event and platform compute). Free Apify tier credits apply as usual.

### Tips

- Use **residential proxies** if you see WAF / “Verifying your connection” pages
- Keep `maxConcurrency` low (1–3) for reliability
- Raise `requestDelayMs` if you hit rate limits
- Use `minRating` / `maxRating` to focus on complaints (1–2) or promoters (5)
- Prefer official Trustpilot `/review/{domain}` URLs for best results

### Local development

```bash
npm install
npm run lint
npm run format
npm run build
npm test
apify run --purge
```

Copy `examples/input.json` into `storage/key_value_stores/default/INPUT.json` for local runs.

### Deploy

```bash
apify login
apify push
```

### Limitations & legal

- Trustpilot may show bot challenges; proxies improve success rate
- Cheerio reads **server-rendered HTML**; heavy client-only changes may need updates
- Page structure can change — extractor uses multiple fallbacks
- Only scrape public pages you are allowed to access. Respect Trustpilot Terms of Service and applicable laws (e.g. GDPR). This Actor is for legitimate research and monitoring.

### FAQ

**Can I pass a bare domain?**\
Yes — `amazon.com` is expanded to `https://www.trustpilot.com/review/amazon.com`.

**Does it get company replies?**\
Yes, when present in `__NEXT_DATA__` or the review card DOM.

**Where is the CSV?**\
In the run’s key-value store as `REVIEWS.csv`, plus `SUMMARY.md`.

**Support**\
Open an issue on the Actor’s Issues tab for bugs or feature requests. Custom scrapers available on request.

### Project structure

```text
.actor/           Actor metadata + input/output/dataset schemas
examples/         Sample input/output JSON
src/
  main.ts         Crawler setup, KV exports
  routes.ts       Request handlers, pagination
  extractors.ts   __NEXT_DATA__ + DOM parsers
  csv.ts          REVIEWS.csv + SUMMARY.md builders
  types.ts        TypeScript types
  utils.ts        URL helpers, coercion
test/             Vitest unit tests + HTML fixtures
```

# Actor input Schema

## `companyUrls` (type: `array`):

Trustpilot company profile URLs (e.g. https://www.trustpilot.com/review/amazon.com) or bare domains (amazon.com).

## `maxReviews` (type: `integer`):

Maximum number of reviews to collect across all companies in this run.

## `minRating` (type: `integer`):

Only include reviews with star rating greater than or equal to this value (1–5).

## `maxRating` (type: `integer`):

Only include reviews with star rating less than or equal to this value (1–5).

## `includeCompanyInfo` (type: `boolean`):

Push a company summary dataset item (name, trustScore, reviewCount, categories, replyRate) per company.

## `maxConcurrency` (type: `integer`):

Maximum parallel HTTP requests. Keep low to reduce rate-limiting.

## `maxRequestRetries` (type: `integer`):

How many times to retry a failed HTTP request before giving up.

## `requestDelayMs` (type: `integer`):

Approximate delay between requests via maxRequestsPerMinute (60000 / delay).

## `proxyConfiguration` (type: `object`):

Apify Proxy settings. Trustpilot uses bot protection — residential proxy is strongly recommended.

## Actor input object example

```json
{
  "companyUrls": [
    "https://www.trustpilot.com/review/amazon.com"
  ],
  "maxReviews": 50,
  "minRating": 1,
  "maxRating": 5,
  "includeCompanyInfo": true,
  "maxConcurrency": 2,
  "maxRequestRetries": 3,
  "requestDelayMs": 500,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `reviewsCsv` (type: `string`):

No description

## `summaryMd` (type: `string`):

No description

## `output` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "companyUrls": [
        "https://www.trustpilot.com/review/amazon.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("mighty_monk/trustpilot-review-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "companyUrls": ["https://www.trustpilot.com/review/amazon.com"] }

# Run the Actor and wait for it to finish
run = client.actor("mighty_monk/trustpilot-review-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "companyUrls": [
    "https://www.trustpilot.com/review/amazon.com"
  ]
}' |
apify call mighty_monk/trustpilot-review-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=mighty_monk/trustpilot-review-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Trustpilot Review Scraper",
        "description": "Scrape company profile and customer reviews from Trustpilot public pages. Extracts trust score, categories, ratings, review text, authors, and company replies with pagination support.",
        "version": "1.0",
        "x-build-id": "XcD1pAAn8g59bQT6H"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/mighty_monk~trustpilot-review-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-mighty_monk-trustpilot-review-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/mighty_monk~trustpilot-review-scraper/runs": {
            "post": {
                "operationId": "runs-sync-mighty_monk-trustpilot-review-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/mighty_monk~trustpilot-review-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-mighty_monk-trustpilot-review-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "companyUrls"
                ],
                "properties": {
                    "companyUrls": {
                        "title": "Company URLs",
                        "type": "array",
                        "description": "Trustpilot company profile URLs (e.g. https://www.trustpilot.com/review/amazon.com) or bare domains (amazon.com).",
                        "default": [
                            "https://www.trustpilot.com/review/amazon.com"
                        ],
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxReviews": {
                        "title": "Max reviews",
                        "minimum": 1,
                        "maximum": 50000,
                        "type": "integer",
                        "description": "Maximum number of reviews to collect across all companies in this run.",
                        "default": 50
                    },
                    "minRating": {
                        "title": "Minimum rating",
                        "minimum": 1,
                        "maximum": 5,
                        "type": "integer",
                        "description": "Only include reviews with star rating greater than or equal to this value (1–5).",
                        "default": 1
                    },
                    "maxRating": {
                        "title": "Maximum rating",
                        "minimum": 1,
                        "maximum": 5,
                        "type": "integer",
                        "description": "Only include reviews with star rating less than or equal to this value (1–5).",
                        "default": 5
                    },
                    "includeCompanyInfo": {
                        "title": "Include company info",
                        "type": "boolean",
                        "description": "Push a company summary dataset item (name, trustScore, reviewCount, categories, replyRate) per company.",
                        "default": true
                    },
                    "maxConcurrency": {
                        "title": "Max concurrency",
                        "minimum": 1,
                        "maximum": 20,
                        "type": "integer",
                        "description": "Maximum parallel HTTP requests. Keep low to reduce rate-limiting.",
                        "default": 2
                    },
                    "maxRequestRetries": {
                        "title": "Max request retries",
                        "minimum": 0,
                        "maximum": 10,
                        "type": "integer",
                        "description": "How many times to retry a failed HTTP request before giving up.",
                        "default": 3
                    },
                    "requestDelayMs": {
                        "title": "Request delay (ms)",
                        "minimum": 0,
                        "maximum": 60000,
                        "type": "integer",
                        "description": "Approximate delay between requests via maxRequestsPerMinute (60000 / delay).",
                        "default": 500
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Apify Proxy settings. Trustpilot uses bot protection — residential proxy is strongly recommended.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ]
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
