# Bershka (`datasaurus/bershka`) Actor

Scrape products from bershka.com websites. All countries and languages. Scrape the full website or scrape by product category or individual product. Fast and efficient. n8n node: n8n-nodes-bershka

- **URL**: https://apify.com/datasaurus/bershka.md
- **Developed by:** [datasaurus](https://apify.com/datasaurus) (community)
- **Categories:** E-commerce
- **Stats:** 43 total users, 1 monthly users, 100.0% runs succeeded, 8 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

$9.99/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period.You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

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

## 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

## Bershka Products Scraper

This tool scrapes product data from Bershka. It works with all website countries and languages.

Checkout our other scrapers: [Zara](https://apify.com/datasaurus/zara) | [Stradivarius](https://apify.com/datasaurus/stradivarius) | [Pull&Bear](https://apify.com/datasaurus/pullandbear) | [MassimoDutti](https://apify.com/datasaurus/massimodutti) | [Oysho](https://apify.com/datasaurus/oysho) | [ZaraHome](https://apify.com/datasaurus/zarahome)

n8n node: [n8n-nodes-bershka](https://www.npmjs.com/package/n8n-nodes-bershka)

### Features

- **Detailed Scrape**:
    - Scrapes individual product pages for detailed information
    - <span style="color:">**Fields include**: name, description, price, colors, sizes, SKUs, category, composition, sustainability information, images, first available date, promotions, product page url, plus many more. </span>
    - <span style="color:MediumSeaGreen">Approx run cost: 1000 products in 5 minutes, actor usage cost 24 cents (including proxy).</span>

- **Granularity**: Scrape:
    - The entire website, e.g. [https://www.bershka.com/gb/](https://www.bershka.com/gb/)
    - Product category pages, e.g. [https://www.bershka.com/gb/men/clothes/jeans-n3676.html](https://www.bershka.com/gb/men/clothes/jeans-n3676.html)
    - Product pages, e.g. [https://www.bershka.com/gb/long-sleeve-print-t-shirt-c0p209128236.html?colorId=605](https://www.bershka.com/gb/long-sleeve-print-t-shirt-c0p209128236.html?colorId=605)

- **Multiple URLs**: Scrape data from multiple start urls within a single scrape, including from different country websites.

- **Set Limits**: Define the maximum products and categories to scrape per url.

- **Deduplication**: Unique products are returned, even across multiple start URLs. This is useful in instances where the same product appears in multiple subcategories. The scrapper will do it's best to deduplicate results - as pages are scrapped concurrently, the scrapper may occassionally not identify every duplicate product.


### Notes

- This tool is configured to use residential proxies which are necessay to avoid IP address blocking. It is effecient with data download sizes which optimises run time and cost.
- The output is in JSON format due to the nested data structure.
- The fields `colors`, `sizes`, `category` and `mainImage` summarize data from the `colorsSizesImagesJSON` json field. This allows for the key information to be exported in a flat structure to csv and be easily read by Excel or GoogleSheets.
- Detailed `color` and `size` information is contained within the `colorsSizesImagesJSON` json field.
- Each line/item in the result is a unique product within which the can be multiple colors and sizes.
- The field names match the field names returned by the website.
- Occassionally the scraper may return less results than requested - this can happen when the website returns dummy products with blank information. The scrapper filters these out.

### Known Scraping Challenges
- Occasionally the scrape might not start or the scrape might stop due to requests being blocked by the website. A '403 error' will appear in the logs. This is common in webscrapping and difficult to avoid, but it can be solved by re-running the scrape.
- Actual results may be lower than the max_results requested  due to the way products are displayed on the website. On the website individual colors of the same item may appear separately, however the scraper will retrieve the 'product bundle' containing all colours of that item. So requesting 5 products might return 1 result if 5 colour variations of the same product where displayed separately on the webpage.

### Resources

- **Getting Started with Apify**:
    - [Getting Started with Apify 1/4 - Introduction](https://www.youtube.com/watch?v=b_nep8vMnkc&list=PLObrtcm1Kw6MUrlLNDbK9QRg8VDJg0gOW&index=1)
    - [Getting Started with Apify 4/4 - Integrations](https://www.youtube.com/watch?v=bNACk1_S_6w&list=PLObrtcm1Kw6MUrlLNDbK9QRg8VDJg0gOW&index=4)
    - [Try Apify for Free - 2,000+ Pre-built Web Scraping and Automation Tools](https://www.youtube.com/watch?v=WQNgQVRG9_U)
    - [Integration with Make, GitHub, Zapier, Google Drive, and other apps](https://apify.com/integrations)
    - [How to Train ChatGPT on Your Own Data - Build a Custom AI Chatbot](https://www.youtube.com/watch?v=LcG919C4UeU)
    - [Apify Platform Documentation](https://docs.apify.com/platform)


### Example Input
```json
{
  "start_urls": [
    {"url": "https://www.bershka.com/gb/"},
    {"url": "https://www.bershka.com/gb/men/clothes/jeans-n3676.html"},
    {"url": "https://www.bershka.com/gb/long-sleeve-print-t-shirt-c0p209128236.html?colorId=605"}
  ],
  "deduplicate_across_all_start_urls": true,
  "max_subcategories": 10,
  "max_results": 1000
}
````

### Example Output

```json
{
  "id": 176011023,
  "name": "Mega baggy jeans",
  "description": "",
  "longDescription": "",
  "reference": "00351352-V2025",
  "displayReference": "0351/352",
  "productType": "Clothing",
  "mainImage": "https://static.bershka.net/assets/public/f1fa/df1f/8cc84ba7a5f7/59920947066e/00351352800-a4o/00351352800-a4o.jpg?ts=1737039457826",
  "colors": "Black, Green",
  "sizes": "26, 28, 29, 30, 31, 32, 34, 36",
  "price": 4999,
  "oldPrice": null,
  "keyword": "mega-baggy-jeans",
  "category": "men/clothes/jeans-n3676",
  "availabilityDate": "2024-11-14 08:28:24.0",
  "colorsSizesImagesJSON": [
    {
      "id": "800",
      "reference": "C00351352800-V2025",
      "displayReference": "0351/352/800",
      "name": "Black",
      "productPageSelectedColor": "https://www.bershka.com/gb/mega-baggy-jeans-c0p176011023.html?colorId=800",
      "xmedia": [
        "https://static.bershka.net/assets/public/f1fa/df1f/8cc84ba7a5f7/59920947066e/00351352800-a4o/00351352800-a4o.jpg?ts=1737039457826",
        "https://static.bershka.net/assets/public/65d4/d919/18a540129dda/3e5f1986c7cd/00351352800-b/00351352800-b.jpg?ts=1737039465915",
        "https://static.bershka.net/assets/public/3412/ba14/9c7945c3a36a/d1b793814a8d/00351352800-p/00351352800-p.jpg?ts=1737114486092",
        "https://static.bershka.net/assets/public/d37a/7170/d3024debaf82/338b67429518/00351352800-a2d/00351352800-a2d.jpg?ts=1737114494052",
        "https://static.bershka.net/assets/public/8fad/7b8a/247c4df0a079/4c782a58bcdf/00351352800-r/00351352800-r.jpg?ts=1737114512024",
        "https://static.bershka.net/assets/public/e51f/63a0/054e4018bebc/7b9bd1e50b6e/00351352800-a3o/00351352800-a3o.jpg?ts=1737114558665",
        "https://static.bershka.net/assets/public/f1fa/df1f/8cc84ba7a5f7/59920947066e/00351352800-a4o/00351352800-a4o.jpg?ts=1737039457826",
        "https://static.bershka.net/assets/public/65d4/d919/18a540129dda/3e5f1986c7cd/00351352800-b/00351352800-b.jpg?ts=1737039465915",
        "https://static.bershka.net/assets/public/3412/ba14/9c7945c3a36a/d1b793814a8d/00351352800-p/00351352800-p.jpg?ts=1737114486092",
        "https://static.bershka.net/assets/public/d37a/7170/d3024debaf82/338b67429518/00351352800-a2d/00351352800-a2d.jpg?ts=1737114494052",
        "https://static.bershka.net/assets/public/e51f/63a0/054e4018bebc/7b9bd1e50b6e/00351352800-a3o/00351352800-a3o.jpg?ts=1737114558665",
        "https://static.bershka.net/assets/public/8fad/7b8a/247c4df0a079/4c782a58bcdf/00351352800-r/00351352800-r.jpg?ts=1737114512024"
      ],
      "sizes": [
        {
          "sku": 176011025,
          "name": "26",
          "description": null,
          "partnumber": "0035135280032-V2025",
          "isBuyable": true,
          "backSoon": "0",
          "mastersSizeId": "32",
          "price": "4999",
          "oldPrice": null,
          "sizeType": "regular",
          "country": "BANGLADESH",
          "skuDimensions": []
        },
        {
          "sku": 176011027,
          "name": "28",
          "description": null,
          "partnumber": "0035135280034-V2025",
          "isBuyable": true,
          "backSoon": "0",
          "mastersSizeId": "34",
          "price": "4999",
          "oldPrice": null,
          "sizeType": "regular",
          "country": "BANGLADESH",
          "skuDimensions": []
        },
        {
          "sku": 176011029,
          "name": "29",
          "description": null,
          "partnumber": "0035135280036-V2025",
          "isBuyable": true,
          "backSoon": "0",
          "mastersSizeId": "36",
          "price": "4999",
          "oldPrice": null,
          "sizeType": "regular",
          "country": "BANGLADESH",
          "skuDimensions": []
        },
        {
          "sku": 176011031,
          "name": "30",
          "description": null,
          "partnumber": "0035135280038-V2025",
          "isBuyable": true,
          "backSoon": "0",
          "mastersSizeId": "38",
          "price": "4999",
          "oldPrice": null,
          "sizeType": "regular",
          "country": "BANGLADESH",
          "skuDimensions": []
        },
        {
          "sku": 176011032,
          "name": "31",
          "description": null,
          "partnumber": "0035135280040-V2025",
          "isBuyable": true,
          "backSoon": "0",
          "mastersSizeId": "40",
          "price": "4999",
          "oldPrice": null,
          "sizeType": "regular",
          "country": "BANGLADESH",
          "skuDimensions": []
        },
        {
          "sku": 176011033,
          "name": "32",
          "description": null,
          "partnumber": "0035135280042-V2025",
          "isBuyable": true,
          "backSoon": "0",
          "mastersSizeId": "42",
          "price": "4999",
          "oldPrice": null,
          "sizeType": "regular",
          "country": "BANGLADESH",
          "skuDimensions": []
        },
        {
          "sku": 176011034,
          "name": "34",
          "description": null,
          "partnumber": "0035135280044-V2025",
          "isBuyable": true,
          "backSoon": "0",
          "mastersSizeId": "44",
          "price": "4999",
          "oldPrice": null,
          "sizeType": "regular",
          "country": "BANGLADESH",
          "skuDimensions": []
        },
        {
          "sku": 176011035,
          "name": "36",
          "description": null,
          "partnumber": "0035135280046-V2025",
          "isBuyable": true,
          "backSoon": "0",
          "mastersSizeId": "46",
          "price": "4999",
          "oldPrice": null,
          "sizeType": "regular",
          "country": "BANGLADESH",
          "skuDimensions": []
        }
      ]
    },
    {
      "id": "525",
      "reference": "C00351352525-V2025",
      "displayReference": "0351/352/525",
      "name": "Green",
      "productPageSelectedColor": "https://www.bershka.com/gb/mega-baggy-jeans-c0p176011023.html?colorId=525",
      "xmedia": [
        "https://static.bershka.net/assets/public/93de/5435/34f6493293f2/5e0169ef14ce/00351352525-a4o/00351352525-a4o.jpg?ts=1737039462562",
        "https://static.bershka.net/assets/public/272a/d3d9/92e7446b92d9/31d6a0f91f2e/00351352525-b/00351352525-b.jpg?ts=1737039469347",
        "https://static.bershka.net/assets/public/8147/cd8f/45f342a2952d/cb4296cf0413/00351352525-r/00351352525-r.jpg?ts=1737114501708",
        "https://static.bershka.net/assets/public/5e8f/cbc3/c5c749fbb537/2cb8d1020caf/00351352525-p/00351352525-p.jpg?ts=1737114527615",
        "https://static.bershka.net/assets/public/935f/b8c9/512d4e9e8153/9a2dad24537f/00351352525-a2d/00351352525-a2d.jpg?ts=1737114536505",
        "https://static.bershka.net/assets/public/2238/673c/207a4c039560/6acc7cac248f/00351352525-a3o/00351352525-a3o.jpg?ts=1737114548165",
        "https://static.bershka.net/assets/public/93de/5435/34f6493293f2/5e0169ef14ce/00351352525-a4o/00351352525-a4o.jpg?ts=1737039462562",
        "https://static.bershka.net/assets/public/272a/d3d9/92e7446b92d9/31d6a0f91f2e/00351352525-b/00351352525-b.jpg?ts=1737039469347",
        "https://static.bershka.net/assets/public/5e8f/cbc3/c5c749fbb537/2cb8d1020caf/00351352525-p/00351352525-p.jpg?ts=1737114527615",
        "https://static.bershka.net/assets/public/935f/b8c9/512d4e9e8153/9a2dad24537f/00351352525-a2d/00351352525-a2d.jpg?ts=1737114536505",
        "https://static.bershka.net/assets/public/2238/673c/207a4c039560/6acc7cac248f/00351352525-a3o/00351352525-a3o.jpg?ts=1737114548165",
        "https://static.bershka.net/assets/public/8147/cd8f/45f342a2952d/cb4296cf0413/00351352525-r/00351352525-r.jpg?ts=1737114501708"
      ],
      "sizes": [
        {
          "sku": 176011036,
          "name": "26",
          "description": null,
          "partnumber": "0035135252532-V2025",
          "isBuyable": true,
          "backSoon": "0",
          "mastersSizeId": "32",
          "price": "4999",
          "oldPrice": null,
          "sizeType": "regular",
          "country": "BANGLADESH",
          "skuDimensions": []
        },
        {
          "sku": 176011037,
          "name": "28",
          "description": null,
          "partnumber": "0035135252534-V2025",
          "isBuyable": true,
          "backSoon": "0",
          "mastersSizeId": "34",
          "price": "4999",
          "oldPrice": null,
          "sizeType": "regular",
          "country": "BANGLADESH",
          "skuDimensions": []
        },
        {
          "sku": 176011038,
          "name": "29",
          "description": null,
          "partnumber": "0035135252536-V2025",
          "isBuyable": true,
          "backSoon": "0",
          "mastersSizeId": "36",
          "price": "4999",
          "oldPrice": null,
          "sizeType": "regular",
          "country": "BANGLADESH",
          "skuDimensions": []
        },
        {
          "sku": 176011039,
          "name": "30",
          "description": null,
          "partnumber": "0035135252538-V2025",
          "isBuyable": true,
          "backSoon": "0",
          "mastersSizeId": "38",
          "price": "4999",
          "oldPrice": null,
          "sizeType": "regular",
          "country": "BANGLADESH",
          "skuDimensions": []
        },
        {
          "sku": 176011024,
          "name": "31",
          "description": null,
          "partnumber": "0035135252540-V2025",
          "isBuyable": true,
          "backSoon": "0",
          "mastersSizeId": "40",
          "price": "4999",
          "oldPrice": null,
          "sizeType": "regular",
          "country": "BANGLADESH",
          "skuDimensions": []
        },
        {
          "sku": 176011026,
          "name": "32",
          "description": null,
          "partnumber": "0035135252542-V2025",
          "isBuyable": true,
          "backSoon": "0",
          "mastersSizeId": "42",
          "price": "4999",
          "oldPrice": null,
          "sizeType": "regular",
          "country": "BANGLADESH",
          "skuDimensions": []
        },
        {
          "sku": 176011028,
          "name": "34",
          "description": null,
          "partnumber": "0035135252544-V2025",
          "isBuyable": true,
          "backSoon": "0",
          "mastersSizeId": "44",
          "price": "4999",
          "oldPrice": null,
          "sizeType": "regular",
          "country": "BANGLADESH",
          "skuDimensions": []
        },
        {
          "sku": 176011030,
          "name": "36",
          "description": null,
          "partnumber": "0035135252546-V2025",
          "isBuyable": true,
          "backSoon": "0",
          "mastersSizeId": "46",
          "price": "4999",
          "oldPrice": null,
          "sizeType": "regular",
          "country": "BANGLADESH",
          "skuDimensions": []
        }
      ]
    }
  ],
  "isBuyable": true,
  "onSpecial": false,
  "website": "https://www.bershka.com/gb/",
  "categoryPage": "https://www.bershka.com/gb/men/clothes/jeans-n3676",
  "productPage": "https://www.bershka.com/gb/mega-baggy-jeans-c0p176011023.html",
  "mainColorid": "800",
  "composition": [
    {
      "part": "1",
      "composition": [
        {
          "id": "173862329036959261",
          "name": "cotton",
          "description": "100",
          "percentage": "100"
        }
      ]
    }
  ],
  "compositionDetail": {
    "parts": [
      {
        "id": "1",
        "description": "OUTER SHELL",
        "areas": [],
        "components": [
          {
            "material": "cotton",
            "percentage": "100%"
          }
        ],
        "microcontents": [],
        "reinforcements": []
      }
    ],
    "exceptions": [
      "EXCEPT ORNAMENTAL YARNS"
    ]
  },
  "care": [
    "MACHINE WASH UP TO 40ºC/104ºF GENTLE CYCLE",
    "DO NOT BLEACH",
    "IRON UP TO 110ºC/230ºF",
    "TUMBLE DRY LOW",
    "DRY CLEAN TETRACHLORETHYLENE"
  ],
  "sustainability": {
    "show": false,
    "syntheticFiberPercentage": {
      "name": ""
    }
  },
  "certifiedMaterials": {
    "show": true,
    "materials": []
  },
  "nameEn": "Mega baggy jeans",
  "traceability": {
    "show": false,
    "weaving": {
      "name": "",
      "country": []
    },
    "dyeingPrinting": {
      "name": "",
      "country": []
    },
    "confection": {
      "name": "",
      "country": []
    },
    "assembly": {
      "name": "",
      "country": []
    },
    "pricking": {
      "name": "",
      "country": []
    },
    "finish": {
      "name": "",
      "country": []
    }
  },
  "country": ""
}
```

# Actor input Schema

## `start_urls` (type: `array`):

Website: e.g.
https://www.bershka.com/gb/
-see Information tab for a list of country websites-
Category page: e.g.
https://www.bershka.com/gb/men/clothes/jeans-n3676.html
Product page: e.g.
https://www.bershka.com/gb/long-sleeve-print-t-shirt-c0p209128236.html?colorId=605
-the full url is required to scrape product pages-

## `deduplicate_across_all_start_urls` (type: `boolean`):

Activate to deduplicate results across all start urls. Deactivate to deduplicate results for each start url independently.

## `max_categories` (type: `integer`):

Select the number of category product pages to scrape per url. This works with main page urls only.

## `max_results` (type: `integer`):

Select the maximum number of products to scrape per start url. Actual results may be lower than this number due to the way products are displayed on the website. On the website individual colors of the same item may appear separately, however the scraper will retrieve the 'product bundle' containing all colours of that item. So requesting 5 products might return 1 result if 5 colour variations of the same product where displayed separately on the webpage.

## Actor input object example

```json
{
  "start_urls": [
    {
      "url": "https://www.bershka.com/gb/"
    },
    {
      "url": "https://www.bershka.com/gb/men/clothes/jeans-n3676.html"
    },
    {
      "url": "https://www.bershka.com/gb/long-sleeve-print-t-shirt-c0p209128236.html?colorId=605"
    }
  ],
  "deduplicate_across_all_start_urls": true,
  "max_results": 10
}
```

# 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 = {
    "start_urls": [
        {
            "url": "https://www.bershka.com/gb/"
        },
        {
            "url": "https://www.bershka.com/gb/men/clothes/jeans-n3676.html"
        },
        {
            "url": "https://www.bershka.com/gb/long-sleeve-print-t-shirt-c0p209128236.html?colorId=605"
        }
    ],
    "max_results": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("datasaurus/bershka").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 = {
    "start_urls": [
        { "url": "https://www.bershka.com/gb/" },
        { "url": "https://www.bershka.com/gb/men/clothes/jeans-n3676.html" },
        { "url": "https://www.bershka.com/gb/long-sleeve-print-t-shirt-c0p209128236.html?colorId=605" },
    ],
    "max_results": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("datasaurus/bershka").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 '{
  "start_urls": [
    {
      "url": "https://www.bershka.com/gb/"
    },
    {
      "url": "https://www.bershka.com/gb/men/clothes/jeans-n3676.html"
    },
    {
      "url": "https://www.bershka.com/gb/long-sleeve-print-t-shirt-c0p209128236.html?colorId=605"
    }
  ],
  "max_results": 10
}' |
apify call datasaurus/bershka --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Bershka",
        "description": "Scrape products from bershka.com websites. All countries and languages. Scrape the full website or scrape by product category or individual product. Fast and efficient. n8n node: n8n-nodes-bershka",
        "version": "0.1",
        "x-build-id": "6F5vc5LpCEYcZgrTC"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/datasaurus~bershka/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-datasaurus-bershka",
                "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/datasaurus~bershka/runs": {
            "post": {
                "operationId": "runs-sync-datasaurus-bershka",
                "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/datasaurus~bershka/run-sync": {
            "post": {
                "operationId": "run-sync-datasaurus-bershka",
                "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": [
                    "start_urls"
                ],
                "properties": {
                    "start_urls": {
                        "title": "Start URLs - full website, category page or product page",
                        "uniqueItems": true,
                        "type": "array",
                        "description": "Website: e.g.\nhttps://www.bershka.com/gb/\n-see Information tab for a list of country websites-\nCategory page: e.g.\nhttps://www.bershka.com/gb/men/clothes/jeans-n3676.html\nProduct page: e.g.\nhttps://www.bershka.com/gb/long-sleeve-print-t-shirt-c0p209128236.html?colorId=605\n-the full url is required to scrape product pages-",
                        "default": [
                            {
                                "url": "https://www.bershka.com/gb/"
                            }
                        ],
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    },
                    "deduplicate_across_all_start_urls": {
                        "title": "Deduplicate across all start urls",
                        "type": "boolean",
                        "description": "Activate to deduplicate results across all start urls. Deactivate to deduplicate results for each start url independently.",
                        "default": true
                    },
                    "max_categories": {
                        "title": "Max Categories per start url",
                        "minimum": 1,
                        "maximum": 100000,
                        "type": "integer",
                        "description": "Select the number of category product pages to scrape per url. This works with main page urls only."
                    },
                    "max_results": {
                        "title": "Max Results per start url",
                        "minimum": 1,
                        "maximum": 100000,
                        "type": "integer",
                        "description": "Select the maximum number of products to scrape per start url. Actual results may be lower than this number due to the way products are displayed on the website. On the website individual colors of the same item may appear separately, however the scraper will retrieve the 'product bundle' containing all colours of that item. So requesting 5 products might return 1 result if 5 colour variations of the same product where displayed separately on the webpage."
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
