# Zara Similar Product (`pintostudio/zara-similar-product`) Actor

The Zara Similar Products Actor finds and extracts similar products from Zara's website based on a given product URL.

- **URL**: https://apify.com/pintostudio/zara-similar-product.md
- **Developed by:** [Pinto Studio](https://apify.com/pintostudio) (community)
- **Categories:** E-commerce, Other, Developer tools
- **Stats:** 4 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$18.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

## Zara Similar Products Actor

### Overview
The Zara Similar Products Actor finds and extracts similar products from Zara's website based on a given product URL. It retrieves comprehensive product information including pricing, availability, colors, sizes, and images for products similar to your target item.

### Features
- Extract similar products from any Zara product page
- Support for multiple locales and languages across 80+ countries
- Comprehensive product data including pricing, availability, and variants
- Automatic locale validation and fallback
- Structured output with detailed product information

### Input Parameters

#### Required Parameters

##### `productUrl` (string, required)
The full Zara product URL you want to find similar products for.

**Example:**
````

https://www.zara.com/us/en/sequin-mini-dress-p04772368.html?v1=447276703\&v2=2491343

````

#### Optional Parameters

##### `locale` (string, optional, default: "en_US")
The language and country locale for the search results. Affects the language of product names, descriptions, and regional pricing.

**Format:** `language_COUNTRY`

**Supported Locales:**
- **North America:** `en_US`, `es_US`, `en_CA`, `fr_CA`, `es_MX`, `en_MX`
- **Europe:** `en_GB`, `es_ES`, `fr_FR`, `de_DE`, `it_IT`, `pt_PT`, `nl_NL`
- **Asia Pacific:** `ja_JP`, `en_JP`, `ko_KR`, `zh_CN`, `en_AU`, `th_TH`, `vi_VN`
- **Middle East:** `ar_SA`, `en_SA`, `ar_AE`, `en_AE`, `tr_TR`, `he_IL`
- And many more...

### Output Structure

The actor returns an array of product objects with the following structure:

#### Main Product Object
```json
{
  "id": 416734763,
  "type": "Product",
  "kind": "Other",
  "name": "VINYL WEDGE SANDALS",
  "reference": "13339510-V2025",
  "displayReference": "3339/510",
  "description": "",
  "pricing": {
    "value": 69.9,
    "currency": null
  },
  "section": 1,
  "sectionName": "WOMAN",
  "familyId": 1228,
  "familyName": "WEDGE",
  "subfamilyId": 8623,
  "subfamilyName": "Z1T:HEEL SANDAL",
  "keyword": "vinyl-wedge-sandals",
  "url": "https://www.zara.com/us/en/vinyl-wedge-sandals-p13339510.html"
}
````

#### Color Variants

Each product includes detailed color information:

```json
"colors": [
  {
    "id": "850",
    "name": "white",
    "reference": "C13339510850000-V2025",
    "price": "69.90",
    "priceInCents": 6990,
    "oldPrice": null,
    "discountPercentage": null,
    "sizes": [...]
  }
]
```

#### Size Information

Detailed size availability and pricing:

```json
"sizes": [
  {
    "availability": "out_of_stock",
    "id": 35,
    "name": "5",
    "price": "69.90",
    "priceInCents": 6990,
    "reference": "1333951085035-V2025",
    "sku": 416727195
  }
]
```

#### Images

High-quality product images:

```json
"images": [
  "https://static.zara.net/assets/public/a1e5/03df/9d3346b6a996/a965dce032e6/13339510850-e1/13339510850-e1.jpg",
  "https://static.zara.net/assets/public/4c12/1210/21474ca289ac/5f63c41ff84b/13339510850-p/13339510850-p.jpg"
]
```

### Usage Examples

#### Basic Example

```json
{
  "productUrl": "https://www.zara.com/us/en/sequin-mini-dress-p04772368.html?v1=447276703&v2=2491343"
}
```

#### With Custom Locale

```json
{
  "productUrl": "https://www.zara.com/us/en/sequin-mini-dress-p04772368.html?v1=447276703&v2=2491343",
  "locale": "es_ES"
}
```

#### With European Locale

```json
{
  "productUrl": "https://www.zara.com/de/de/pailletten-minikleid-p04772368.html",
  "locale": "de_DE"
}
```

### Output Storage

The actor stores results in two ways:

1. **Dataset:** Each similar product is pushed as a separate item to the default dataset
2. **Key-Value Store:** A summary is saved under the key `similar` containing:
   - Input parameters used
   - Total number of products found
   - Timestamp of the search
   - Complete array of all products

### Error Handling

The actor includes comprehensive error handling:

- Validates required `productUrl` parameter
- Warns about unsupported locales and suggests alternatives
- Handles network errors and timeouts gracefully
- Provides detailed error messages for debugging

### Performance Notes

- Typical run time: 10-30 seconds depending on the number of similar products
- Memory usage: Low to moderate
- Rate limiting: Respects Zara's server limits with appropriate delays

### Common Use Cases

1. **E-commerce Competitor Analysis:** Track similar products and pricing
2. **Fashion Trend Monitoring:** Discover related items and styles
3. **Price Comparison:** Monitor pricing across different regions
4. **Inventory Tracking:** Check availability across sizes and colors
5. **Market Research:** Analyze product categories and variations

### Limitations

- Only works with Zara product URLs
- Results depend on Zara's internal similarity algorithm
- Some regions may have limited product availability
- Pricing may vary based on regional settings

### Support

If you have any questions or encounter any issues, please consult the Apify documentation or reach out to us through one of the following channels:

- **Telegram**: [@pintoflow](https://t.me/pintoflow)
- **Email**: <pintoflowpt@gmail.com>
- **Apify Platform**: You can also contact us directly through this platform.

***

# Actor input Schema

## `productUrl` (type: `string`):

The full product url (e.g., 'https://www.zara.com/us/en/faux-leather-double-breasted-blazer-p03046440.html?v1=496301285\&v2=2546081')

## `locale` (type: `string`):

Language and country locale (format: language\_COUNTRY)

## Actor input object example

```json
{
  "productUrl": "https://www.zara.com/us/en/faux-leather-double-breasted-blazer-p03046440.html?v1=496301285&v2=2546081",
  "locale": "en_US"
}
```

# 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 = {
    "productUrl": "https://www.zara.com/us/en/faux-leather-double-breasted-blazer-p03046440.html?v1=496301285&v2=2546081",
    "locale": "en_US"
};

// Run the Actor and wait for it to finish
const run = await client.actor("pintostudio/zara-similar-product").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 = {
    "productUrl": "https://www.zara.com/us/en/faux-leather-double-breasted-blazer-p03046440.html?v1=496301285&v2=2546081",
    "locale": "en_US",
}

# Run the Actor and wait for it to finish
run = client.actor("pintostudio/zara-similar-product").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 '{
  "productUrl": "https://www.zara.com/us/en/faux-leather-double-breasted-blazer-p03046440.html?v1=496301285&v2=2546081",
  "locale": "en_US"
}' |
apify call pintostudio/zara-similar-product --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Zara Similar Product",
        "description": "The Zara Similar Products Actor finds and extracts similar products from Zara's website based on a given product URL.",
        "version": "0.0",
        "x-build-id": "L3DpoLlPGWensoIaY"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/pintostudio~zara-similar-product/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-pintostudio-zara-similar-product",
                "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/pintostudio~zara-similar-product/runs": {
            "post": {
                "operationId": "runs-sync-pintostudio-zara-similar-product",
                "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/pintostudio~zara-similar-product/run-sync": {
            "post": {
                "operationId": "run-sync-pintostudio-zara-similar-product",
                "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": [
                    "productUrl",
                    "locale"
                ],
                "properties": {
                    "productUrl": {
                        "title": "Product Url",
                        "type": "string",
                        "description": "The full product url (e.g., 'https://www.zara.com/us/en/faux-leather-double-breasted-blazer-p03046440.html?v1=496301285&v2=2546081')"
                    },
                    "locale": {
                        "title": "Locale",
                        "enum": [
                            "en_US",
                            "es_US",
                            "en_GB",
                            "es_ES",
                            "en_ES",
                            "eu_ES",
                            "gl_ES",
                            "ca_ES",
                            "fr_FR",
                            "en_FR",
                            "de_DE",
                            "en_DE",
                            "it_IT",
                            "en_IT",
                            "pt_PT",
                            "en_PT",
                            "nl_NL",
                            "en_NL",
                            "ja_JP",
                            "en_JP",
                            "ko_KR",
                            "en_KR",
                            "zh_CN",
                            "en_CN",
                            "zt_HK",
                            "en_HK",
                            "zt_TW",
                            "en_TW",
                            "zt_MO",
                            "en_MO",
                            "en_AU",
                            "en_CA",
                            "fr_CA",
                            "pt_BR",
                            "en_BR",
                            "es_MX",
                            "en_MX",
                            "es_AR",
                            "en_AR",
                            "es_CL",
                            "en_CL",
                            "es_CO",
                            "en_CO",
                            "es_PE",
                            "en_PE",
                            "th_TH",
                            "en_TH",
                            "vi_VN",
                            "en_VN",
                            "id_ID",
                            "en_ID",
                            "en_MY",
                            "en_SG",
                            "en_PH",
                            "en_IN",
                            "tr_TR",
                            "en_TR",
                            "ar_SA",
                            "en_SA",
                            "ar_AE",
                            "en_AE",
                            "en_ZA",
                            "sv_SE",
                            "en_SE",
                            "no_NO",
                            "en_NO",
                            "da_DK",
                            "en_DK",
                            "fi_FI",
                            "sv_FI",
                            "en_FI",
                            "pl_PL",
                            "uk_PL",
                            "en_PL",
                            "cs_CZ",
                            "en_CZ",
                            "sk_SK",
                            "en_SK",
                            "hu_HU",
                            "en_HU",
                            "sl_SI",
                            "en_SI",
                            "hr_HR",
                            "en_HR",
                            "sr_RS",
                            "en_RS",
                            "bg_BG",
                            "en_BG",
                            "ro_RO",
                            "en_RO",
                            "el_GR",
                            "en_GR",
                            "el_CY",
                            "en_CY",
                            "lv_LV",
                            "en_LV",
                            "lt_LT",
                            "en_LT",
                            "et_EE",
                            "en_EE",
                            "en_IE",
                            "en_MT",
                            "fr_LU",
                            "en_LU",
                            "de_LU",
                            "de_AT",
                            "en_AT",
                            "fr_CH",
                            "de_CH",
                            "it_CH",
                            "en_CH",
                            "fr_BE",
                            "nl_BE",
                            "en_BE",
                            "he_IL",
                            "en_IL"
                        ],
                        "type": "string",
                        "description": "Language and country locale (format: language_COUNTRY)",
                        "default": "en_US"
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
