{
  "openapi": "3.0.1",
  "info": {
    "title": "Kaufland.de Scraper | Prices, EAN, Deals & Sellers",
    "description": "Scrape Kaufland.de products by search term, category, search link or product link: price, former price, discount, voucher, unit price, EAN on every product, brand, category, seller, shipping, delivery time and rating. Whole categories beyond the shop's 400-product page limit. No login.",
    "version": "0.1",
    "x-build-id": "59w6rwG27vp6BcInI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ratatoskr~kaufland-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ratatoskr-kaufland-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/ratatoskr~kaufland-scraper/runs": {
      "post": {
        "operationId": "runs-sync-ratatoskr-kaufland-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/ratatoskr~kaufland-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-ratatoskr-kaufland-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": {
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Words to search on Kaufland.de, as you would type them in the shop's search box, one per line (for example kaffee, kopfhörer, waschmittel). Each term is its own list, with what the shop's search returns, accessories included; for one kind of product, use its category link. A barcode (EAN) finds that product.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Kaufland.de links, one per line: a search (kaufland.de/s/?search_value=...), a category (kaufland.de/c/name/~id/) or a product (kaufland.de/product/id/). The link's price, deals and sort are kept. A link with another filter, such as a brand, cannot be kept yet: it is skipped with a note and the other links still run.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max products per search",
            "minimum": 1,
            "type": "integer",
            "description": "Most products to return for each search term and each search or category link. 100 when empty; enter a higher number, such as 5000, for a whole category. Product links are not limited by it.",
            "default": 100
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "natural",
              "price-asc",
              "price-desc",
              "customer-reviews",
              "newest-arrivals",
              "bestsellers"
            ],
            "type": "string",
            "description": "The order the shop lists products in, as on its own sort menu. The shop sorts the first 10 pages of a list (about 390 products); a run that asks for more gets those first in this order, then the rest of the list from the cheapest up.",
            "default": "natural"
          },
          "dealsOnly": {
            "title": "Deals only",
            "type": "boolean",
            "description": "Only products in the shop's deals list. It is narrower than every product with a former price, voucher or badge; for all of those, read the category and keep the rows with wasPrice or voucher.",
            "default": false
          },
          "minPrice": {
            "title": "Min price (EUR)",
            "type": "number",
            "description": "Only products priced at or above this, in euros."
          },
          "maxPrice": {
            "title": "Max price (EUR)",
            "type": "number",
            "description": "Only products priced at or below this, in euros."
          },
          "includeOffers": {
            "title": "Include every seller's offer",
            "type": "boolean",
            "description": "For each product, every marketplace seller's offer: price, shipping, delivery dates, seller, whether Kaufland itself sells it, and the return period, plus how many offers there are. Charged as \"Product with all offers\" instead of \"Product\"; a product whose offers could not be read is charged as a plain product. A whole category of 3,400 products takes about 22 minutes with offers, 16 without.",
            "default": false
          },
          "offersOnly": {
            "title": "Offers only (product links)",
            "type": "boolean",
            "description": "Only the offers on the products in Start URLs (product links), without the product details: no bot-check browser, so it is fast, and each product is charged as \"Offers\". Set the run's memory to 512 MB for the smallest start fee.",
            "default": false
          },
          "watchName": {
            "title": "Watch name (change tracking)",
            "type": "string",
            "description": "Give the watch a name and schedule the run: every run after the first returns only what changed since the last one (a promotion that started or ended, a price drop or rise, a changed offer, a new product), each with the previous price and offer. The first run returns everything as the baseline. It compares each product's price, its offer (former price, voucher, deal badge) and stock, not which seller holds it; with Offers only, each product's lowest offer. Watch a whole list (Max products per search above its size) or product links: a list cut short changes at its edge. Different names keep separate memories in a key-value store on your own Apify account. Unchanged products are not output, and you pay only for the rows that are."
          },
          "onlyChanges": {
            "title": "Only changes",
            "type": "boolean",
            "description": "With a watch name: output only products that changed. Off: every one, each marked with its change (or unchanged), charged as a row.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}