{
  "openapi": "3.0.1",
  "info": {
    "title": "MediaMarkt Spain Scraper: Prices & Deals",
    "description": "Scrape MediaMarkt.es products and prices without a browser. Search by words, categories, Black Friday or Navidad campaigns, or URLs. Extract real discount, Club price, financing, delivery, store pickup, energy label, ratings, EUR+USD prices, a deals report, and a price-drop monitor.",
    "version": "0.1",
    "x-build-id": "FH8P3FGRCga6cNQOw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kareninatech~mediamarkt-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kareninatech-mediamarkt-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~mediamarkt-scraper/runs": {
      "post": {
        "operationId": "runs-sync-kareninatech-mediamarkt-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~mediamarkt-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-kareninatech-mediamarkt-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": "Words you would type in the mediamarkt.es search box, e.g. televisor, iphone 17, freidora de aire, lego, ps5. If MediaMarkt sends a word to a category, the Actor follows it. Leave everything empty to search \"televisor\".",
            "items": {
              "type": "string"
            }
          },
          "campaigns": {
            "title": "Campaigns (Black Friday, Navidad ...)",
            "type": "array",
            "description": "Campaign names or URLs: black-friday, cyber-monday, navidad (regalos-navidad), ofertas-flash, campanas-y-ofertas, dia-sin-iva, or any https://www.mediamarkt.es/es/campaign/... URL. The Actor saves the featured products and reads every product list linked from the campaign page.",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Category URLs (https://www.mediamarkt.es/es/category/televisores-399.html), category ids (399 or CAT_ES_MM_399) or names (portátiles, cafeteras).",
            "items": {
              "type": "string"
            }
          },
          "start_urls": {
            "title": "MediaMarkt URLs",
            "type": "array",
            "description": "Any mediamarkt.es URL: search pages (/es/search.html?query=...), category pages (/es/category/...) and list pages (/es/list/...) with their filters, campaign pages (/es/campaign/...) or product pages (/es/product/...).",
            "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 products to save in total (shared between all lists). MediaMarkt shows only 30 pages (360 products) per list; bigger lists are split by price automatically, so you can get them all.",
            "default": 100
          },
          "max_items_per_list": {
            "title": "Max products per list",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Optional cap for each search, category or campaign list. Empty = share Max products evenly."
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "relevance",
              "price_asc",
              "price_desc",
              "rating",
              "bestsellers",
              "newest",
              "discount_desc"
            ],
            "type": "string",
            "description": "Order of the lists on MediaMarkt. \"Biggest discount first\" sorts the products this run saves.",
            "default": "relevance"
          },
          "min_price": {
            "title": "Min price (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Only products from this price (euros, VAT included)."
          },
          "max_price": {
            "title": "Max price (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Only products up to this price (euros, VAT included). Great for gift budgets."
          },
          "brands": {
            "title": "Brands",
            "type": "array",
            "description": "Only these brands, e.g. Samsung, LG, Apple, Xiaomi, Lego. Each brand becomes its own list on MediaMarkt.",
            "items": {
              "type": "string"
            }
          },
          "seller_type": {
            "title": "Seller",
            "enum": [
              "any",
              "mediamarkt",
              "marketplace"
            ],
            "type": "string",
            "description": "MediaMarkt itself or the marketplace (third-party sellers).",
            "default": "any"
          },
          "promotion": {
            "title": "MediaMarkt promotion",
            "type": "string",
            "description": "Only products in a MediaMarkt promotion, exactly as the site names it in the \"Campañas destacadas\" filter, e.g. Semanas Black, Oferta del día, Black Friday."
          },
          "min_discount_pct": {
            "title": "Min discount %",
            "minimum": 0,
            "maximum": 95,
            "type": "integer",
            "description": "Only products at least this % below the crossed-out price."
          },
          "deals_only": {
            "title": "Only discounted products",
            "type": "boolean",
            "description": "If true, keep only products that show a crossed-out previous price.",
            "default": false
          },
          "min_rating": {
            "title": "Min rating (1-5)",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Only products with at least this customer rating, for example 4. Leave empty for all ratings."
          },
          "only_available": {
            "title": "Only available to buy",
            "type": "boolean",
            "description": "Skip products that cannot be bought online right now.",
            "default": false
          },
          "exclude_refurbished": {
            "title": "Exclude refurbished",
            "type": "boolean",
            "description": "If true, skip refurbished (reacondicionado) products.",
            "default": false
          },
          "fetch_details": {
            "title": "Product details (specs, all images, other sellers)",
            "type": "boolean",
            "description": "Open each product page for the full spec sheet, all images, other marketplace offers, warranty and the rating split. Slower (one extra page per product). Product URLs always get details.",
            "default": false
          },
          "monitor_mode": {
            "title": "Monitor mode (price drops and new products)",
            "type": "boolean",
            "description": "Remember products between runs. Saves only new products and price changes, with the previous price, lowest price seen and a fake-discount warning. Schedule it daily for Black Friday.",
            "default": false
          },
          "monitor_key": {
            "title": "Monitor name",
            "type": "string",
            "description": "Use a different name for each thing you track (e.g. tvs-black-friday). Memory is kept in a named key-value store mediamarkt-monitor-<name>."
          },
          "emit_unchanged": {
            "title": "Also save unchanged products",
            "type": "boolean",
            "description": "In monitor mode, also save products whose price did not change.",
            "default": false
          },
          "emit_removed": {
            "title": "Save removed products",
            "type": "boolean",
            "description": "In monitor mode, save products that disappeared from the lists since the last run (only when the run read every list to the end).",
            "default": false
          },
          "usd_rate": {
            "title": "USD per EUR (optional)",
            "type": "string",
            "description": "Fixed rate for the USD columns, e.g. 1.16. Empty = today's European Central Bank rate."
          },
          "max_concurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Pages read at the same time. Keep it low to be gentle with the site.",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Leave it empty: on Apify the Actor uses a Spanish residential proxy by default, because MediaMarkt blocks Apify server IPs. It is light (about 0.1 MB per page of 12 products). If you set your own proxy and it gets blocked, the Actor switches to the Spanish residential proxy by itself.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}