# Zalando Scraper (`cocoa_kit/zalando-scraper`) Actor

Scrape Zalando products by category or URL. Get names, prices, brands, colors, sizes, images, availability and more as JSON, CSV or Excel. Fast, no coding.

- **URL**: https://apify.com/cocoa_kit/zalando-scraper.md
- **Developed by:** [Cocoa Kit](https://apify.com/cocoa_kit) (community)
- **Stats:** 2 total users, 1 monthly users, 85.7% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

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

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Extract Rich Product Data With Zalando Scraper

Zalando Scraper is an Apify actor that allows you to extract data from Zalando, a leading online fashion retailer in Europe 🛍️. With this scraper, you can extract various data attributes from any product on Zalando's website. Whether you want to extract products based on a specific category, such as [Women’s shoes, fashion & accessories](https://www.zalando.co.uk/women/) category or its subcategories like [Women's Dresses](https://www.zalando.co.uk/womens-clothing-dresses/), Zalando Scraper has got you covered. You can also provide direct product URLs like [Jumper - mottled light grey](https://www.zalando.co.uk/evenandodd-wrap-cardigan-cardigan-mottled-light-grey-ev421i0d2-c11.html). Just note that while Zalando Scraper supports a wide range of URLs, not all variations may be supported due to different page layouts.

Let's explore one of the products to get a glimpse of the collected data:

**🔗 Product URL**: [Product URL](https://www.zalando.co.uk/evenandodd-wrap-cardigan-cardigan-mottled-light-grey-ev421i0d2-c11.html)

**👚 Product name**: Cardigan - mottled light grey

**🆔 SKU**: EV421I0D2-C11

**🏷️ Brand**: [Even\&Odd](https://www.zalando.co.uk/even-odd/)

**🖼️ Thumbnail**:

<img src="https://img01.ztat.net/article/spp-media-p1/bf87feefa11e3580a023866b3d6584cb/a371932409b84fd0b1d2add290c5264b.jpg?imwidth=156&filter=packshot" alt="Thumbnail" style="float: left; margin-right: 100%; margin-bottom: 1%">

**💰 Price**: £31.99

**📏 Available Sizes**: XS, S, M, L, XL, XXL, 3XL

**📄 Product Attributes**:

- **Neckline**: Cache-coeur
- **Fastening**: Laces
- **Pattern**: Marl

This example showcases the data extracted from one specific product using Zalando Scraper. You can utilize the scraper to extract data for any product available on Zalando's website.

Check out a full output for [Cardigan - mottled light grey](https://www.zalando.co.uk/evenandodd-wrap-cardigan-cardigan-mottled-light-grey-ev421i0d2-c11.html):

```json
{
  "url": "https://www.zalando.co.uk/evenandodd-wrap-cardigan-cardigan-mottled-light-grey-ev421i0d2-c11.html",
  "name": "Cardigan - mottled light grey",
  "sku": "EV421I0D2-C11",
  "brand": {
    "name": "Even&Odd",
    "uri": "https://www.zalando.co.uk/even-odd/"
  },
  "flags": [],
  "comingSoon": false,
  "thumbnail": "https://img01.ztat.net/article/spp-media-p1/bf87feefa11e3580a023866b3d6584cb/a371932409b84fd0b1d2add290c5264b.jpg?imwidth=156&filter=packshot",
  "images": [
    "https://img01.ztat.net/article/spp-media-p1/bf87feefa11e3580a023866b3d6584cb/a371932409b84fd0b1d2add290c5264b.jpg",
    "https://img01.ztat.net/article/spp-media-p1/9840961aaf5b3cbe8b67cd265d630bef/5e3f19c0d69b4cc68838c10f956d67ee.jpg",
    "https://img01.ztat.net/article/spp-media-p1/b4b740b8982c344c95791f1afb864220/5316f60a27554a43acdba91c80b6dd89.jpg"
  ],
  "videos": [],
  "category": "Cardigan",
  "color": {
    "name": "mottled light grey",
    "label": "mottled light grey"
  },
  "formattedPrice": {
    "original": "£31.99",
    "current": "£31.99",
    "promotional": null
  },
  "priceCurrency": "GBP",
  "price": {
    "original": 31.99,
    "current": 31.99,
    "promotional": null
  },
  "sizes": [
    {
      "size": "XS",
      "sku": "EV421I0D2-C1100XS000",
      "stockStatus": "OUT_OF_STOCK"
    },
    {
      "size": "S",
      "sku": "EV421I0D2-C11000S000",
      "stockStatus": "MANY"
    },
    {
      "size": "M",
      "sku": "EV421I0D2-C11000M000",
      "stockStatus": "MANY"
    },
    {
      "size": "L",
      "sku": "EV421I0D2-C11000L000",
      "stockStatus": "MANY"
    },
    {
      "size": "XL",
      "sku": "EV421I0D2-C1100XL000",
      "stockStatus": "MANY"
    },
    {
      "size": "XXL",
      "sku": "EV421I0D2-C110XXL000",
      "stockStatus": "MANY"
    },
    {
      "size": "3XL",
      "sku": "EV421I0D2-C1103XL000",
      "stockStatus": "MANY"
    }
  ],
  "available": true,
  "sizeAdvice": "SMALLER_SIZE",
  "navigationTargetGroup": "WOMEN",
  "condition": null,
  "attributeCategories": [
    {
      "categoryId": "material_care",
      "categoryName": "Material & care",
      "attributes": [
        {
          "key": "Outer fabric material",
          "value": "62% polyester, 34% acrylic, 4% elastane"
        },
        {
          "key": "Fabric",
          "value": "Knit"
        },
        {
          "key": "Care instructions",
          "value": "Do not tumble dry, machine wash at 30 °C, machine wash on gentle cycle, do not bleach"
        }
      ]
    },
    {
      "categoryId": "details",
      "categoryName": "Details",
      "attributes": [
        {
          "key": "Neckline",
          "value": "Cache-coeur"
        },
        {
          "key": "Fastening",
          "value": "Laces"
        },
        {
          "key": "Pattern",
          "value": "Marl"
        },
        {
          "key": "Article number",
          "value": "EV421I0D2-C11"
        }
      ]
    },
    {
      "categoryId": "size_fit",
      "categoryName": "Size & fit",
      "attributes": [
        {
          "key": "Fit",
          "value": "Regular Fit"
        },
        {
          "key": "Shape",
          "value": "Fitted"
        },
        {
          "key": "Length",
          "value": "Normal"
        },
        {
          "key": "Sleeve length",
          "value": "Long"
        }
      ]
    }
  ]
}
```

### Integrations and Zalando Scraper

In addition to its scraping capabilities, Zalando Scraper seamlessly integrates with various cloud services and web apps through the <a href="https://apify.com/integrations" target="_blank">integrations on the Apify platform</a>. You can connect Zalando Scraper with tools like Make, Zapier, Slack, Airbyte, GitHub, Google Sheets, Google Drive, and many more. You can also leverage <a href="https://docs.apify.com/integrations/webhooks" target="_blank">webhooks</a> to automate actions whenever specific events occur. For example, you can set up notifications whenever Zalando Scraper successfully completes a run.

### Using Zalando Scraper with the Apify API

The Apify API provides programmatic access to the Apify platform, allowing you to manage, schedule, and run Apify actors. With the API, you can access datasets, monitor actor performance, fetch results, create and update versions, and more. If you prefer Node.js, you can utilize the `apify-client` NPM package, while Python users can take advantage of the `apify-client` PyPI package.

For detailed information and code examples, refer to the comprehensive <a href="https://docs.apify.com/api/v2" target="_blank">Apify API reference</a> documentation or explore the <a href="https://apify.com/lhotanok/zalando-scraper/api" target="_blank">API tab</a> for practical code samples.

### Other E-commerce Scrapers

If you're interested in scraping data from other e-commerce platforms, Apify offers a range of dedicated scrapers. You can explore options like [Amazon Product Scraper](https://apify.com/junglee/amazon-crawler), [eBay Scraper](https://apify.com/dtrungtin/ebay-items-scraper), [AliExpress Scraper](https://apify.com/epctex/aliexpress-scraper), [Etsy Scraper](https://apify.com/epctex/etsy-scraper), [Walmart Scraper](https://apify.com/epctex/walmart-scraper) or [Allegro Scraper](https://apify.com/lhotanok/allegro-scraper). Simply browse the [E-commerce Category](https://apify.com/store/categories/ecommerce) in the Apify Store to explore more options.

# Changelog

This Actor's version history is a separate document: https://apify.com/cocoa_kit/zalando-scraper/changelog.md

# Actor input Schema

## `startUrls` (type: `array`):

URLs to start with. The actor currently supports basic category URLs such as `'https://www.zalando.co.uk/womens-clothing/'`, URLs of their subcategories and also direct product URLs, such as `'https://www.zalando.co.uk/marchesa-occasion-wear-blush-m7g21c018-j11.html'`.

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

Set the maximum number of items you want to scrape. If you leave this field unset, the actor will extract all available items.

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

Use either automatic Apify proxies or your own.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.zalando.co.uk/womens-clothing/",
    "https://www.zalando.co.uk/mens-clothing/",
    "https://www.zalando.co.uk/childrens-clothing/"
  ],
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Table of scraped products.

# 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 = {
    "startUrls": [
        "https://www.zalando.co.uk/womens-clothing/",
        "https://www.zalando.co.uk/mens-clothing/",
        "https://www.zalando.co.uk/childrens-clothing/"
    ],
    "maxItems": 100,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("cocoa_kit/zalando-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 = {
    "startUrls": [
        "https://www.zalando.co.uk/womens-clothing/",
        "https://www.zalando.co.uk/mens-clothing/",
        "https://www.zalando.co.uk/childrens-clothing/",
    ],
    "maxItems": 100,
    "proxyConfiguration": { "useApifyProxy": True },
}

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

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

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

```

## CLI example

```bash
echo '{
  "startUrls": [
    "https://www.zalando.co.uk/womens-clothing/",
    "https://www.zalando.co.uk/mens-clothing/",
    "https://www.zalando.co.uk/childrens-clothing/"
  ],
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call cocoa_kit/zalando-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,cocoa_kit/zalando-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/MdvisSpcJpVL0xq6J/builds/qLIRfzdrs5iV2IF6p/openapi.json
