# Amazon Product Scraper - Prices, Reviews & ASIN (`flash_scraper/amazon-product-scraper`) Actor

Amazon product scraper by keyword or URL — title, ASIN, brand, numeric price + currency, list price, discount %, rating, reviews, in-stock, category, seller & image, with a 0-100 deal score. Dedup, filters & clean flat rows. Track prices & monitor competitors. Export CSV/JSON/Excel.

- **URL**: https://apify.com/flash\_scraper/amazon-product-scraper.md
- **Developed by:** [Flash Scrape](https://apify.com/flash_scraper) (community)
- **Categories:** E-commerce, SEO tools, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $0.000035 / actor start

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Amazon Product Scraper - Prices, Reviews & ASIN

**This Amazon product scraper turns any keyword or URL into a clean product spreadsheet** — one flat row per product with the title, ASIN, brand, a numeric price + currency, list price, computed discount %, star rating, review count, in-stock status, category, seller, image, and a 0–100 deal score. Search Amazon by keyword (or paste product/search URLs), filter to what matters, and export to CSV, JSON, or Excel.

Built for **e-commerce sellers, price trackers, dropshippers, and market researchers** who want structured product data — not a nested scrape. It reads only **public** product pages: no login, no API key.

---

### How to scrape Amazon products

1. Enter **search keywords** (e.g. `wireless earbuds`, `standing desk`) and pick the **marketplace** (US, UK, DE, …). Or paste product / search URLs into `productUrls`.
2. The scraper pulls matching products via the proven [`junglee/amazon-crawler`](https://apify.com/junglee/amazon-crawler) engine.
3. Each product is cleaned: the price object is flattened to a number + currency, the discount % is computed from the list price, the breadcrumb is split into a category array, and the seller object is flattened.
4. Duplicates (same ASIN) are removed, your filters applied, and every product gets a **0–100 deal score** (rating + review volume + discount + availability).
5. You get a clean table to download as CSV, JSON, or Excel — or pull via API.

---

### What data you get

Every row is one product, best deals first:

- **Title, ASIN, and brand.**
- **Price and currency** — flattened to a clean number, plus `listPrice` and a computed `discountPct`.
- **Rating and review count** — social-proof signals.
- **In-stock flag** — `inStock` true/false.
- **Category** — the breadcrumb trail as an array.
- **Seller** — seller name (enable seller scraping for rating/details).
- **Image and product URL.**
- **Features** — bullet-point list (when full details are scraped).
- **A 0–100 deal score** — blends rating, log-scaled review volume, discount %, and availability.

---

### Filters & options

- **Minimum rating** — keep only well-rated products.
- **Minimum reviews** — drop products without social proof.
- **Maximum price** — stay within budget.
- **In-stock only** — drop unavailable items.
- **Brands** — keep only specific brands.
- **Scrape full details** — visit each product page for description + features.
- **Scrape sellers** — collect seller name and rating.

#### Input

| Field | Type | Description |
|---|---|---|
| `searchTerms` | array | Product keywords, one per line. |
| `productUrls` | array | Amazon product / category / search URLs (advanced). |
| `country` | string | Amazon marketplace (US, GB, DE, …). |
| `maxItems` | integer | Max products per keyword. Default `50`. |
| `maxPages` | integer | Search pages per keyword. Default `1`. |
| `scrapeProductDetails` | boolean | Visit product pages for description/features. Default `true`. |
| `scrapeSellers` | boolean | Collect seller info. Default `false`. |
| `minRating` | number | Keep products ≥ this rating (`0` = no filter). |
| `minReviews` | integer | Keep products ≥ this many reviews. |
| `maxPrice` | number | Keep products ≤ this price. |
| `inStockOnly` | boolean | Drop out-of-stock products. |
| `brands` | array | Keep only these brands. |

**Example input:**

```json
{
  "searchTerms": ["wireless earbuds"],
  "country": "US",
  "maxItems": 50,
  "scrapeProductDetails": true,
  "minRating": 4,
  "minReviews": 100,
  "maxPrice": 80,
  "inStockOnly": true
}
````

#### JSON output sample

```json
{
  "deal_score": 91,
  "title": "Acme Wireless Earbuds, ANC, 40h Battery",
  "asin": "B09XYZ1234",
  "brand": "Acme",
  "price": 49.99,
  "currency": "USD",
  "listPrice": 79.99,
  "discountPct": 38,
  "rating": 4.5,
  "reviewsCount": 12840,
  "inStock": true,
  "category": ["Electronics", "Headphones", "Earbud Headphones"],
  "seller": "Acme Official Store",
  "bestsellerRank": 14,
  "image": "https://m.media-amazon.com/images/...jpg",
  "url": "https://www.amazon.com/dp/B09XYZ1234"
}
```

Results render as a clean, sortable table on the Output tab and export to CSV, JSON, or Excel.

***

### Use cases

- **Price tracking & monitoring** — re-run on a schedule to watch prices and discounts.
- **Competitor & market research** — pull a whole category to compare prices, ratings, and brands.
- **Dropshipping / product research** — find high-rating, high-review, discounted products fast.
- **Catalog enrichment** — pull ASIN, brand, images, and categories into your own store.

***

### Use with AI agents & automation

Run this from the Apify **MCP** server so AI agents (Claude, ChatGPT, Cursor) can pull product data as a tool call, schedule runs through **Make**, **n8n**, or **Zapier** to track price drops, or sync the dataset to **Google Sheets** for a live price dashboard. Clean flat JSON drops into pricing pipelines with no glue code.

***

### Pricing

**Pay-per-result — you're charged only for the products delivered after your filters.** Set `maxItems` and use filters to keep cost predictable. See the Apify Store page for the current per-result price.

***

### FAQ

**Do I need an Amazon account or API key?** No. It reads public product pages with no login and no key.

**Can I scrape by ASIN?** Yes — paste the product URL (`https://www.amazon.com/dp/ASIN`) into `productUrls`, or search by keyword.

**Why is a price sometimes missing?** Amazon hides prices on some listings, or shows variant-level pricing. Enable full product details for the most complete data.

**Which marketplaces are supported?** US, UK, Germany, France, Canada, Italy, Spain, India, Japan, Mexico, Brazil, Australia, Netherlands, UAE, and Sweden.

**Is scraping Amazon legal?** This collects **public** product data only. Amazon's terms restrict automated access and Amazon uses anti-bot defenses, so expect occasional partial runs. Use the data for research/monitoring and follow Amazon's terms and local law.

**Can I export to CSV or Google Sheets?** Yes — CSV, JSON, or Excel from the Output tab, or sync to Google Sheets via Make, n8n, or Zapier.

***

### Other Flash Scrape scrapers

- [Indeed Jobs Scraper](https://apify.com/flash_scraper/indeed-jobs-scraper) — Indeed job listings
- [Google Search Results Scraper](https://apify.com/flash_scraper/google-serp-scraper) — Google SERP & rankings
- [Google Maps Leads Scraper](https://apify.com/flash_scraper/google-maps-leads-opener) — Google Maps business leads
- [Yelp Leads Scraper](https://apify.com/flash_scraper/yelp-leads-scraper) — Yelp business leads
- [Instagram Leads Scraper](https://apify.com/flash_scraper/instagram-leads-scraper) — Instagram profile leads
- [TikTok Leads Scraper](https://apify.com/flash_scraper/tiktok-leads-scraper) — TikTok creator leads

# Actor input Schema

## `searchTerms` (type: `array`):

Product keywords to search on Amazon — one per line. e.g. 'wireless earbuds', 'standing desk'.

## `productUrls` (type: `array`):

Amazon product, category, or search-result URLs to scrape directly.

## `country` (type: `string`):

Which Amazon marketplace to scrape.

## `maxItems` (type: `integer`):

Maximum number of products to scrape per keyword / start URL.

## `maxPages` (type: `integer`):

How many search-result pages to paginate through per keyword.

## `scrapeProductDetails` (type: `boolean`):

Visit each product page for description, features, and richer fields (slower, higher cost).

## `scrapeSellers` (type: `boolean`):

Also collect the seller name and rating for each product.

## `minRating` (type: `number`):

Keep only products at or above this star rating, 0-5 (0 = no filter).

## `minReviews` (type: `integer`):

Keep only products with at least this many reviews (0 = no filter).

## `maxPrice` (type: `number`):

Keep only products at or below this price (0 = no filter).

## `inStockOnly` (type: `boolean`):

Drop products that are out of stock.

## `brands` (type: `array`):

Keep only these brands (leave empty for all).

## Actor input object example

```json
{
  "searchTerms": [
    "standing desk",
    "yoga mat"
  ],
  "productUrls": [],
  "country": "US",
  "maxItems": 50,
  "maxPages": 1,
  "scrapeProductDetails": true,
  "scrapeSellers": false,
  "minRating": 0,
  "minReviews": 0,
  "maxPrice": 0,
  "inStockOnly": false,
  "brands": []
}
```

# Actor output Schema

## `results` (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 = {
    "searchTerms": [
        "wireless earbuds"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("flash_scraper/amazon-product-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 = { "searchTerms": ["wireless earbuds"] }

# Run the Actor and wait for it to finish
run = client.actor("flash_scraper/amazon-product-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 '{
  "searchTerms": [
    "wireless earbuds"
  ]
}' |
apify call flash_scraper/amazon-product-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Amazon Product Scraper - Prices, Reviews & ASIN",
        "description": "Amazon product scraper by keyword or URL — title, ASIN, brand, numeric price + currency, list price, discount %, rating, reviews, in-stock, category, seller & image, with a 0-100 deal score. Dedup, filters & clean flat rows. Track prices & monitor competitors. Export CSV/JSON/Excel.",
        "version": "0.1",
        "x-build-id": "bW0UHJSBE6wKbZn7M"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/flash_scraper~amazon-product-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-flash_scraper-amazon-product-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/flash_scraper~amazon-product-scraper/runs": {
            "post": {
                "operationId": "runs-sync-flash_scraper-amazon-product-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/flash_scraper~amazon-product-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-flash_scraper-amazon-product-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",
                "properties": {
                    "searchTerms": {
                        "title": "Search keywords",
                        "type": "array",
                        "description": "Product keywords to search on Amazon — one per line. e.g. 'wireless earbuds', 'standing desk'.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "productUrls": {
                        "title": "Product / search URLs (advanced)",
                        "type": "array",
                        "description": "Amazon product, category, or search-result URLs to scrape directly.",
                        "default": [],
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    },
                    "country": {
                        "title": "Amazon marketplace",
                        "enum": [
                            "US",
                            "GB",
                            "DE",
                            "FR",
                            "CA",
                            "IT",
                            "ES",
                            "IN",
                            "JP",
                            "MX",
                            "BR",
                            "AU",
                            "NL",
                            "AE",
                            "SE"
                        ],
                        "type": "string",
                        "description": "Which Amazon marketplace to scrape.",
                        "default": "US"
                    },
                    "maxItems": {
                        "title": "Max products per search",
                        "minimum": 1,
                        "maximum": 2000,
                        "type": "integer",
                        "description": "Maximum number of products to scrape per keyword / start URL.",
                        "default": 50
                    },
                    "maxPages": {
                        "title": "Search pages per term",
                        "minimum": 1,
                        "maximum": 20,
                        "type": "integer",
                        "description": "How many search-result pages to paginate through per keyword.",
                        "default": 1
                    },
                    "scrapeProductDetails": {
                        "title": "Scrape full product details",
                        "type": "boolean",
                        "description": "Visit each product page for description, features, and richer fields (slower, higher cost).",
                        "default": true
                    },
                    "scrapeSellers": {
                        "title": "Scrape seller info",
                        "type": "boolean",
                        "description": "Also collect the seller name and rating for each product.",
                        "default": false
                    },
                    "minRating": {
                        "title": "Minimum rating",
                        "minimum": 0,
                        "maximum": 5,
                        "type": "number",
                        "description": "Keep only products at or above this star rating, 0-5 (0 = no filter).",
                        "default": 0
                    },
                    "minReviews": {
                        "title": "Minimum reviews",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Keep only products with at least this many reviews (0 = no filter).",
                        "default": 0
                    },
                    "maxPrice": {
                        "title": "Maximum price",
                        "minimum": 0,
                        "type": "number",
                        "description": "Keep only products at or below this price (0 = no filter).",
                        "default": 0
                    },
                    "inStockOnly": {
                        "title": "In-stock only",
                        "type": "boolean",
                        "description": "Drop products that are out of stock.",
                        "default": false
                    },
                    "brands": {
                        "title": "Brands",
                        "type": "array",
                        "description": "Keep only these brands (leave empty for all).",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
