{
  "openapi": "3.0.1",
  "info": {
    "title": "El Palacio de Hierro Scraper - Products, Prices & Stock",
    "description": "Scrape El Palacio de Hierro (elpalaciodehierro.com) products: MXN price, list price, discount, stock units, brand, GTIN, sizes, colours, variants, categories, images and ratings. Search by keyword, walk departments or paste links; optional product details and price change tracking.",
    "version": "0.1",
    "x-build-id": "m5LUa9oxp8uf9B7fu"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/abotapi~elpalaciodehierro-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-abotapi-elpalaciodehierro-scraper",
        "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/abotapi~elpalaciodehierro-scraper/runs": {
      "post": {
        "operationId": "runs-sync-abotapi-elpalaciodehierro-scraper",
        "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/abotapi~elpalaciodehierro-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-abotapi-elpalaciodehierro-scraper",
        "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": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "category",
              "url"
            ],
            "type": "string",
            "description": "Choose 'search' to run keyword searches, 'category' to walk the store's departments, or 'url' to paste elpalaciodehierro.com search, category, brand or product links.",
            "default": "search"
          },
          "searchTerms": {
            "title": "Search keywords",
            "type": "array",
            "description": "Search mode only. One walk per keyword, exactly as the store's own search box (Spanish keywords match best, for example camisa, perfume, tenis, bolsa).",
            "default": [
              "camisa"
            ],
            "items": {
              "type": "string"
            }
          },
          "departments": {
            "title": "Departments",
            "uniqueItems": true,
            "type": "array",
            "description": "Category mode only. Pick one or more of the store's departments; each is walked page by page. The store lists at most 10,000 products for one list, so a larger department (Mujer, Hogar, Marcas, Ofertas de Temporada, Regalos, Temporada, Nuevos Productos) is cut there: paste sub-category or brand links in URL mode to reach the rest.",
            "items": {
              "type": "string",
              "enum": [
                "Mujer",
                "Hombre",
                "Niños",
                "Belleza",
                "Hogar",
                "Casa Palacio",
                "Joyería",
                "Relojes",
                "Zapatos",
                "Deportes",
                "Electrónica",
                "Videojuegos",
                "Juegos y Juguetes",
                "Gourmet",
                "Libros",
                "Lentes",
                "Mochilas y Maletas de Viaje",
                "Wellness",
                "Mascotas",
                "Artículos de Escritura",
                "Diseñadores",
                "Marcas",
                "Outlet Online",
                "Ofertas de Temporada",
                "Nuevos Productos",
                "Lo Más Vendido",
                "Regalos",
                "Temporada"
              ]
            }
          },
          "sortBy": {
            "title": "Sort",
            "enum": [
              "relevance",
              "price_low",
              "price_high"
            ],
            "type": "string",
            "description": "Order of the results, as the store sorts them: most relevant, price low to high, or price high to low. Applies to every list, including pasted links.",
            "default": "relevance"
          },
          "brands": {
            "title": "Brands (optional)",
            "type": "array",
            "description": "Keep only products of these brands (exact brand name as the store shows it, for example Michael Kors or Calvin Klein; not case sensitive). Applied to the rows read, before anything is returned or charged.",
            "items": {
              "type": "string"
            }
          },
          "minPrice": {
            "title": "Min price (MXN)",
            "minimum": 0,
            "type": "number",
            "description": "Keep only products priced at or above this amount in Mexican pesos. Applied before anything is returned or charged."
          },
          "maxPrice": {
            "title": "Max price (MXN)",
            "minimum": 0,
            "type": "number",
            "description": "Keep only products priced at or below this amount in Mexican pesos. Applied before anything is returned or charged."
          },
          "minRating": {
            "title": "Min rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Keep only products rated at least this many stars (1-5). Most products on this store have no reviews yet, so products without a rating are left out when this is set."
          },
          "onlyOffers": {
            "title": "Only products on offer",
            "type": "boolean",
            "description": "Keep only products that show a list price above the current price (a discount).",
            "default": false
          },
          "inStockOnly": {
            "title": "Only products in stock",
            "type": "boolean",
            "description": "Keep only products the store shows as in stock.",
            "default": false
          },
          "urls": {
            "title": "Links to read",
            "type": "array",
            "description": "Paste elpalaciodehierro.com links: a search page (/buscar?q=camisa), a category, brand or collection list page (for example /mujer/ropa/camisas-moda/ or /marcas/the-north-face/), or a product page (ending in -<number>.html), which returns that one product. A link pasted at a later offset (?start=200) starts there. Sitemaps, robots.txt, account, cart and checkout pages, content pages, image and service addresses are skipped before any request.",
            "default": [
              "https://www.elpalaciodehierro.com/buscar?q=camisa",
              "https://www.elpalaciodehierro.com/mujer/ropa/camisas-moda/"
            ],
            "items": {
              "type": "string"
            }
          },
          "fetchDetails": {
            "title": "Product details (model, order limits, size availability)",
            "type": "boolean",
            "description": "Off by default. When on, each product's own option data is also read and the row gains a 'detail' block: model number, UPC, stock units, availability messages, estimated shipping date, minimum and maximum order quantity, sale limit, promotion price, one-click-buy and warranty flags, and every option (colour, size) with its availability, low-stock flag and international size equivalents. Each row delivered with this block is charged the product detail event, and each product is one more small read on your proxy.",
            "default": false
          },
          "maxPages": {
            "title": "Max pages (does not cap on its own)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Limits how many result pages (100 products each) each keyword, department or link walks. Empty or 0 means no page limit; it does NOT cap the run by itself, Max items below does."
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "THE cap on this run: the maximum number of product rows returned across the whole run. Defaults to 20 so a first run is quick and cheap. 0 means no limit from this setting: the run then reads a whole search or category and is still bounded by the end of the results and by your maximum cost per run.",
            "default": 20
          },
          "maxItemsPerSearch": {
            "title": "Max items per keyword, department or link",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Caps how many products each keyword, department or pasted link may return, so one large list cannot use up the whole run. 0 (default) = no per-list cap; Max items still caps the run.",
            "default": 0
          },
          "proxy": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Leave this on the default (Residential, Mexico): it serves every mode and option. Residential traffic is billed to your own Apify plan (about 3.5 MB per 1,000 products listed, plus about 14 KB per product with details). If you never turn on product details, a datacenter connection also serves the lists. You can also paste your own proxy URL (a Mexican residential one works best).",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "MX"
            }
          },
          "resumeFromRunId": {
            "title": "Resume from a previous run",
            "type": "string",
            "description": "Paste a previous run ID or dataset ID to continue a large crawl without returning or charging for products already collected there. For recurring monitoring of the same search, use Incremental mode below instead."
          },
          "incrementalMode": {
            "title": "Incremental changes for scheduled runs",
            "type": "boolean",
            "description": "Turn this on for daily or recurring monitoring. The first run returns every matching product as NEW. Later runs normally return only NEW, UPDATED and REAPPEARED products. A product counts as UPDATED when any of its fields changed, except the result position and page, the scrape time and the keyword or link it was found through, and by default its rating, review count and stock-unit count (see Ignore fields below); the product details block is compared key by key, and only when both runs read it. With 'Price and stock only' just price, list price, discount, stock status, the in-stock flag and each variant's price, list price and availability are compared. State is kept separately for each keyword, department, link, sort and filter setup; use State key to name a monitoring campaign (one key per setup).",
            "default": false
          },
          "stateKey": {
            "title": "State key (optional, incremental mode only)",
            "type": "string",
            "description": "Optional. Name this monitoring campaign to keep its state stable across runs with the same setup. If runs with a different keyword, department, link, sort, filter or page-limit setup share one key, they list different products, so such a run marks nothing EXPIRED (it says so in the log); use one key per setup. Leave empty to derive a key automatically from this run's setup. One state key tracks up to 1,500 products at the default memory (more with more memory)."
          },
          "changeScope": {
            "title": "What counts as a change (incremental mode only)",
            "enum": [
              "all",
              "priceAndStock"
            ],
            "type": "string",
            "description": "'Price and stock only' compares just price, list price, discount, stock status, the in-stock flag and each variant's price, list price and availability (a size added, removed or selling out counts); a name, image, badge or category change is treated as UNCHANGED and is never returned or billed as UPDATED. 'All fields' compares the whole record (minus the fields listed under Ignore fields).",
            "default": "all"
          },
          "compactUpdates": {
            "title": "Compact UPDATED rows (incremental mode only)",
            "type": "boolean",
            "description": "When on, an UPDATED row carries only identifiers plus the price and stock fields that actually moved (priceChanges, and variantChanges for each size or colour variant added, removed or changed), instead of the full record. A compact row carries no product details block, so it is never charged the product detail event. Off by default.",
            "default": false
          },
          "expireAfterMissedScans": {
            "title": "Missed scans before EXPIRED (incremental mode only)",
            "minimum": 1,
            "type": "integer",
            "description": "A tracked product absent from this many consecutive complete scans in a row is marked EXPIRED; fewer misses are held over without being reported. 1 (default) expires on the first miss, matching this actor's previous behaviour.",
            "default": 1
          },
          "emitUnchanged": {
            "title": "Emit unchanged products (incremental mode only)",
            "type": "boolean",
            "description": "Off by default. Turn on to also return products that have not changed since the last run, marked UNCHANGED. This returns, and bills, extra rows you already have.",
            "default": false
          },
          "emitExpired": {
            "title": "Emit expired products (incremental mode only)",
            "type": "boolean",
            "description": "Off by default. Turn on to also return products that were present in a previous run but are no longer found, marked EXPIRED. Only produced after a complete scan: every list walked to its confirmed end. Never when Max items, Max pages or the maximum cost per run stopped it, when the store cuts a list at 10,000 products, for product links or links pasted at a later page, when any page could not be read, when the run stopped before its timeout, or when Resume was used. This returns, and bills, extra synthetic rows.",
            "default": false
          },
          "ignoreFieldsForChanges": {
            "title": "Ignore fields when detecting changes (incremental mode only)",
            "type": "array",
            "description": "Field names that must NOT count as a change in incremental mode. The default list leaves out the rating (rating), the review count (reviewCount) and the stock-unit count (stockQuantity), which drift with every review or sale; remove names from the list to be told about them. A product whose only differences are in these fields is treated as UNCHANGED, so it is not returned or billed as UPDATED. Names match at any nesting depth outside images, categories and description, which are compared as one unit each (use their own name, for example 'images', to ignore one as a whole). Inside the product details block, use 'detail.<key>' or the bare key (for example 'detail.availabilityMessages'); 'detail.stockUnits' is always left out; 'detail' ignores the whole block. The fields still appear in the output of rows that are returned.",
            "default": [
              "rating",
              "reviewCount",
              "stockQuantity"
            ],
            "items": {
              "type": "string"
            }
          },
          "mcpConnectors": {
            "title": "Pipe results into your apps (optional)",
            "type": "array",
            "description": "Optionally send results into the apps you already use, via Model Context Protocol (MCP) connectors. Authorize one under Apify, Settings, API & Integrations, then select it here. Notion gets a rich page-per-item export; other connectors get a best-effort write or digest. Leave empty to skip; this never changes the dataset output. Supported: Notion (https://mcp.notion.com/mcp), Linear (https://mcp.linear.app/sse), Airtable (https://mcp.airtable.com/mcp), Apify (https://mcp.apify.com)."
          },
          "notionParentPageUrl": {
            "title": "Notion parent page (Notion connector only)",
            "type": "string",
            "description": "URL or id of the Notion page under which item pages are created. Required to enable the Notion export; ignored by other connectors."
          },
          "maxNotifyListings": {
            "title": "Max items to export per connector",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Cap on items written to each connector per run. Does not affect the dataset.",
            "default": 50
          },
          "notifyOnlyChanges": {
            "title": "Alert on changes only",
            "type": "boolean",
            "description": "Only send the alert when Incremental changes is on and at least one row is NEW, UPDATED, REAPPEARED or EXPIRED. Without Incremental changes every finished run sends its summary.",
            "default": false
          },
          "notificationLimit": {
            "title": "Rows listed per alert",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many rows the alert message lists (the run's totals are always in the first line).",
            "default": 5
          },
          "slackWebhookUrl": {
            "title": "Slack incoming webhook",
            "type": "string",
            "description": "Optional Slack incoming-webhook URL to post the summary to."
          },
          "discordWebhookUrl": {
            "title": "Discord channel webhook",
            "type": "string",
            "description": "Optional Discord channel webhook URL to post the summary to."
          },
          "telegramBotToken": {
            "title": "Telegram bot token",
            "type": "string",
            "description": "Optional Telegram bot token to post the summary with (needs the chat ID below)."
          },
          "telegramChatId": {
            "title": "Telegram chat ID",
            "type": "string",
            "description": "Optional Telegram chat ID that receives the summary (needs the bot token above)."
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}