# Zara Scraper (`gio21/zara-scraper`) Actor

Scrape Zara product listings by keyword search or category URL across BR, US, ES, UK, DE, FR, IT, PT, MX, and more. Extract title, price, original price, discount %, colors, sizes, availability, images, and URL. Pay per product scraped.

- **URL**: https://apify.com/gio21/zara-scraper.md
- **Developed by:** [Gio](https://apify.com/gio21) (community)
- **Categories:** E-commerce
- **Stats:** 13 total users, 4 monthly users, 99.6% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

$5.00 / 1,000 product scrapeds

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

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

## Zara Scraper

Scrape Zara product listings from any of 35+ countries, by keyword search or by category URL. Returns full product data: name, price, original price, discount %, colors, sizes, availability, images, and the canonical product URL.

Powered by Zara's public catalog endpoint (`?ajax=true`), so it is fast, stable, and needs no headless browser.

### What you can do with it

- **Retail pricing intelligence:** track Zara prices and discount cycles across regions.
- **Trend tracking:** pull "New In" categories daily to spot what is launching.
- **Brand benchmarking:** compare your catalog against Zara's assortment.
- **Affiliate and dropshipping research:** build product feeds for content sites.
- **Market and academic research:** collect time-series catalog data.

### Input

| Field | Type | Description |
|---|---|---|
| `searchTerm` | string | A keyword such as `blazer`, `vestido`, or `sneakers`. The scraper maps it to matching Zara categories. Leave blank if you use `startUrls`. |
| `startUrls` | array | Direct Zara category or product URLs (for example `https://www.zara.com/us/en/woman-new-in-l1180.html`). When set, this overrides `searchTerm`. |
| `country` | enum | Two-letter country code (`us`, `br`, `es`, `uk`, `de`, `fr`, `it`, `pt`, `mx`, and more). Sets the storefront and currency. |
| `language` | string | Optional two-letter language override. Defaults to the country's primary language. |
| `maxItems` | integer | Cap on the number of products returned. Default 50. |
| `maxPages` | integer | Pagination cap per URL. Each page returns up to ~20 products. Default 10. |
| `proxyConfiguration` | object | Apify Proxy config. Residential proxies in the storefront country are recommended. |

#### Example input

```json
{
  "searchTerm": "blazer",
  "country": "us",
  "maxItems": 50,
  "proxyConfiguration": { "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"] }
}
```

Or target a category directly:

```json
{
  "startUrls": ["https://www.zara.com/us/en/woman-new-in-l1180.html"],
  "country": "us",
  "maxItems": 100
}
```

### Output

One dataset item per product:

```json
{
  "id": 548194786,
  "reference": "02654593-V2026",
  "displayReference": "2654/593",
  "name": "FEATHER CUFF SHOULDER PAD BLAZER",
  "description": "Blazer with a lapel collar and long sleeves...",
  "price": 149,
  "originalPrice": null,
  "discountPercent": null,
  "currency": "USD",
  "availability": "in_stock",
  "brand": "Zara",
  "section": "WOMAN",
  "familyName": "BLAZER",
  "subfamilyName": "W.OUTER GARMENT",
  "kind": "Blazer",
  "colors": [
    {
      "id": "800",
      "name": "Black",
      "price": 149,
      "availability": "in_stock",
      "reference": "C02654593800-V2026",
      "canonicalReference": "02654593800-V2026",
      "images": ["https://static.zara.net/photos/.../w/1920/abc.jpg?ts=..."]
    }
  ],
  "images": ["https://static.zara.net/photos/.../w/1920/abc.jpg?ts=..."],
  "url": "https://www.zara.com/us/en/feather-cuff-shoulder-pad-blazer-p02654593.html",
  "country": "us",
  "language": "en",
  "scrapedAt": "2026-05-12T22:50:00.000Z"
}
```

Prices are returned as numbers in major currency units (for example `149` for $149.00, or `529` for R$ 529,00). When a product is on sale, `originalPrice` holds the pre-discount price and `discountPercent` is computed for you.

### Pricing

**$0.005 per product scraped** (pay per event). You are not charged for failed pages or duplicate products.

### How it works

- **Search runs against the public categories tree, not the on-site search box.** Zara's `/search?searchTerm=...&ajax=true` endpoint returns search configuration, not products, because results are rendered client-side by Empathy.co. The scraper instead walks the public categories tree (`/{country}/{language}/categories?ajax=true`) and fuzzy-matches your keyword against each category's slug and name. This is far more reliable than trying to scrape the client-side search.
- **Sibling Inditex brands are filtered out by default.** Massimo Dutti, Pull\&Bear, Bershka, Stradivarius, Oysho, Lefties, and Zara Home all share zara.com's category tree. A keyword search returns Zara products only. If you want a sibling brand, pass its category URL directly through `startUrls`.
- **Residential proxy is recommended.** Use a residential proxy in the storefront country (for example BR for `country=br`) to avoid datacenter blocks.

### Notes and limits

- Each result page returns roughly 20 products. Use `maxPages` to control how deep the crawl goes per URL.
- If a keyword matches several categories, the scraper crawls the top 5 best matches (exact-match and more general slugs are preferred).
- If nothing matches your keyword, the run falls back to the "Woman New In" category so you still get a sample of live data.

# Actor input Schema

## `searchTerm` (type: `string`):

Product keyword to search on Zara (e.g. 'jacket', 'dress', 'sneakers'). Leave blank if using startUrls.

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

Direct Zara category URLs (e.g. https://www.zara.com/us/en/woman-new-in-l1180.html) or product URLs. Overrides search keyword when set.

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

Two-letter country code for the Zara storefront. Sets currency and catalog.

## `language` (type: `string`):

Two-letter language code (e.g. 'en', 'pt', 'es'). If empty, the default language for the selected country is used.

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

Maximum number of products to scrape (default: 50).

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

Maximum number of result pages to crawl (each page returns up to ~20 products).

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

Apify Proxy configuration. Residential proxies in the storefront country are recommended.

## Actor input object example

```json
{
  "searchTerm": "jacket",
  "startUrls": [],
  "country": "us",
  "language": "",
  "maxItems": 30,
  "maxPages": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `results` (type: `string`):

All scraped Zara products with name, price, original price, discount %, colors, availability, images, and URL.

# 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 = {
    "searchTerm": "jacket",
    "country": "us",
    "maxItems": 30,
    "maxPages": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("gio21/zara-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 = {
    "searchTerm": "jacket",
    "country": "us",
    "maxItems": 30,
    "maxPages": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("gio21/zara-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 '{
  "searchTerm": "jacket",
  "country": "us",
  "maxItems": 30,
  "maxPages": 5
}' |
apify call gio21/zara-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,gio21/zara-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/hEdZdWqK3JLGF64Jd/builds/ghGtYU8tIRbtQyukc/openapi.json
