{
  "openapi": "3.0.1",
  "info": {
    "title": "El Corte Inglés Scraper: Spain Prices & EAN",
    "description": "Scrape El Corte Inglés Spain products and prices without a browser. Search by words, categories, Black Friday or Navidad pages. Extract EAN, real discount vs 30-day low, fake-discount flag, gift-card promos, ratings, a gift report, and a price monitor. Export JSON, CSV or Excel.",
    "version": "0.1",
    "x-build-id": "wRF9qdEBBjdrKqjUq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kareninatech~elcorteingles-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kareninatech-elcorteingles-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/kareninatech~elcorteingles-scraper/runs": {
      "post": {
        "operationId": "runs-sync-kareninatech-elcorteingles-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/kareninatech~elcorteingles-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-kareninatech-elcorteingles-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",
        "properties": {
          "search_terms": {
            "title": "Search words",
            "type": "array",
            "description": "What to search on El Corte Inglés, like you type it on the site. One search per line, for example lego, airpods, perfume mujer, regalo navidad.",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Categories or campaign pages",
            "type": "array",
            "description": "Optional. Category or campaign paths from elcorteingles.es, for example juguetes, black-friday, navidad, electronica/moviles-y-smartphones, juguetes/lego. You can also paste the full category URL.",
            "items": {
              "type": "string"
            }
          },
          "start_urls": {
            "title": "El Corte Inglés URLs",
            "type": "array",
            "description": "Optional. Paste category, campaign or search pages (with any filters you chose on the site), or single product pages, from https://www.elcorteingles.es/. If you add URLs or categories and leave Search words empty, only those are scraped.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "max_items": {
            "title": "Max products",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Maximum number of products to save in total. Each list on the site shows up to 10,000 products; bigger lists are split by price automatically.",
            "default": 100
          },
          "sort": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "price_asc",
              "price_desc",
              "discount_desc",
              "best_sellers",
              "newest",
              "rating"
            ],
            "type": "string",
            "description": "Order of the results, using the site's own sorting.",
            "default": "relevance"
          },
          "min_price": {
            "title": "Min price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Only products from this price in euros. Uses the site's own price filter."
          },
          "max_price": {
            "title": "Max price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Only products up to this price in euros. Great for gift budgets, for example 30."
          },
          "brands": {
            "title": "Brands",
            "type": "array",
            "description": "Only these brands, for example LEGO, Playmobil, Apple. Leave empty for all brands.",
            "items": {
              "type": "string"
            }
          },
          "seller_type": {
            "title": "Seller",
            "enum": [
              "any",
              "el_corte_ingles",
              "marketplace"
            ],
            "type": "string",
            "description": "Products sold by El Corte Inglés itself, or by marketplace sellers only.",
            "default": "any"
          },
          "min_discount_pct": {
            "title": "Min discount %",
            "minimum": 0,
            "maximum": 95,
            "type": "integer",
            "description": "Only products with at least this discount (vs the crossed price)."
          },
          "deals_only": {
            "title": "Only discounted products",
            "type": "boolean",
            "description": "If true, skip products that have no discount.",
            "default": false
          },
          "only_available": {
            "title": "Only products in stock",
            "type": "boolean",
            "description": "If true, skip sold-out or coming-soon products.",
            "default": false
          },
          "fetch_ratings": {
            "title": "Add star ratings",
            "type": "boolean",
            "description": "Adds the average rating and number of reviews (one small extra request per product). Used by the gift score.",
            "default": true
          },
          "fetch_details": {
            "title": "Open each product page",
            "type": "boolean",
            "description": "Slower. Adds description, specifications, recommended age for toys, full category path, stock status and promotion texts.",
            "default": false
          },
          "split_large_searches": {
            "title": "Get past the 10,000 limit",
            "type": "boolean",
            "description": "When a list has 10,000+ products and you ask for more, split it into price ranges.",
            "default": true
          },
          "monitor_mode": {
            "title": "Monitor mode",
            "type": "boolean",
            "description": "Remember products between runs and save only new products and price changes (drops and increases). Schedule it daily for Black Friday, Navidad and Reyes price tracking.",
            "default": false
          },
          "monitor_key": {
            "title": "Monitor name",
            "type": "string",
            "description": "Use a different name for each watch list, for example lego-navidad. Runs with the same name share the memory."
          },
          "emit_unchanged": {
            "title": "Also save unchanged products",
            "type": "boolean",
            "description": "In monitor mode, also save products whose price did not change (monitor_status unchanged).",
            "default": false
          },
          "emit_removed": {
            "title": "Report removed products",
            "type": "boolean",
            "description": "In monitor mode, add a row for products that disappeared from the list. Only when the run reached the end of every list.",
            "default": false
          },
          "usd_rate": {
            "title": "USD per EUR (optional)",
            "type": "string",
            "description": "Leave empty to use today's European Central Bank rate. Or type your own rate, for example 1.08."
          },
          "max_concurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many pages to load at the same time. Keep it low to be gentle with the site.",
            "default": 5
          },
          "request_delay_ms": {
            "title": "Delay between requests (ms)",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Pause between requests, in milliseconds, for example 500. Use this to be polite to the site.",
            "default": 150
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed normally. If El Corte Inglés blocks a run, the Actor switches by itself to Apify datacenter and then residential proxy in Spain. You can also choose a proxy here.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}