{
  "openapi": "3.0.1",
  "info": {
    "title": "Zara Product Scraper & Price Monitor",
    "description": "Search Zara by keyword, paste a category or sale URL, or paste product URLs. Get typed rows with price, discount, stock, colours, sizes and a working link, or track price and stock changes between runs.",
    "version": "0.8",
    "x-build-id": "gSxRhtZST3BxMd4fR"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/luminar~zara-product-scraper-price-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-luminar-zara-product-scraper-price-monitor",
        "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/luminar~zara-product-scraper-price-monitor/runs": {
      "post": {
        "operationId": "runs-sync-luminar-zara-product-scraper-price-monitor",
        "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/luminar~zara-product-scraper-price-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-luminar-zara-product-scraper-price-monitor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "searchQueries": {
            "title": "Search keywords",
            "maxItems": 10,
            "type": "array",
            "description": "Keywords to search on Zara, for example \"blazer\" or \"linen dress\". This is Zara's own product search, so results genuinely match the keyword. If a keyword matches nothing, the run reports EMPTY_CONFIRMED and returns no rows instead of unrelated suggestions - and you are not charged for them.",
            "items": {
              "type": "string"
            }
          },
          "categoryUrls": {
            "title": "Category or sale page URLs",
            "maxItems": 25,
            "type": "array",
            "description": "Paste Zara category, New In or sale page URLs, for example https://www.zara.com/us/en/woman-new-in-l1180.html. Use these when you want a whole section rather than a keyword.",
            "items": {
              "type": "string"
            }
          },
          "productUrls": {
            "title": "Product page URLs",
            "maxItems": 100,
            "type": "array",
            "description": "Paste specific Zara product page URLs to scrape or monitor exactly those items. Product URLs always return full detail including per-size availability.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Store country",
            "type": "string",
            "description": "Two-letter country code of the Zara storefront, for example us, es, gb, de, fr.",
            "default": "us"
          },
          "language": {
            "title": "Store language",
            "type": "string",
            "description": "Two-letter language code for that storefront, for example en or es.",
            "default": "en"
          },
          "section": {
            "title": "Section",
            "enum": [
              "WOMAN",
              "MAN",
              "KID",
              "HOME",
              "BEAUTY"
            ],
            "type": "string",
            "description": "Which Zara section keyword searches should look in. Category and product URLs carry their own section.",
            "default": "WOMAN"
          },
          "fetchDetails": {
            "title": "Include sizes, stock and composition",
            "type": "boolean",
            "description": "Adds per-size availability and price, SKU codes, fabric composition and the full description. Required if you want to filter by size.",
            "default": false
          },
          "trackChanges": {
            "title": "Track changes between runs",
            "type": "boolean",
            "description": "The first run stores a baseline and returns products only. Later runs on the same scope also return NEW, UPDATED and ENDED rows with previousPrice and priceDelta. A product must be missing twice in a row before it is reported as ENDED.",
            "default": false
          },
          "onSaleOnly": {
            "title": "On sale only",
            "type": "boolean",
            "description": "Keep only products that carry a real strike-through original price.",
            "default": false
          },
          "inStockOnly": {
            "title": "In stock only",
            "type": "boolean",
            "description": "Keep only products currently marked in stock.",
            "default": false
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only products at or above this price, in the storefront's own currency."
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only products at or below this price, in the storefront's own currency."
          },
          "colors": {
            "title": "Colours",
            "maxItems": 20,
            "type": "array",
            "description": "Keep only products with a colourway matching one of these names, for example black or beige. Partial, case-insensitive match.",
            "items": {
              "type": "string"
            }
          },
          "sizes": {
            "title": "Sizes in stock",
            "maxItems": 20,
            "type": "array",
            "description": "Keep only products with at least one of these sizes in stock, for example M or 40. Requires \"Include sizes, stock and composition\" - without it the run has no size data and this filter is not applied.",
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Sort results",
            "enum": [
              "relevance",
              "price_asc",
              "price_desc",
              "discount_desc",
              "newest"
            ],
            "type": "string",
            "description": "Order the delivered rows after filtering.",
            "default": "relevance"
          },
          "maxProducts": {
            "title": "Maximum products",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Hard cap on rows returned across every target.",
            "default": 200
          },
          "maxProductsPerTarget": {
            "title": "Maximum products per target",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Cap per keyword, category or product URL, so one large category cannot consume the whole run.",
            "default": 2000
          },
          "maxPagesPerTarget": {
            "title": "Maximum pages per target",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "How deep to page into each keyword or category.",
            "default": 60
          },
          "maxBuyerChargeUsd": {
            "title": "Maximum charge for this run (USD)",
            "minimum": 1,
            "type": "integer",
            "description": "The run refuses to start if its own worst-case cost would exceed this amount.",
            "default": 25
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}