{
  "openapi": "3.0.1",
  "info": {
    "title": "Lidl Scraper & Weekly Flyers [8 Countries • $2.50]",
    "description": "Scrape Lidl.es (Spain) and 7 EU markets (lidl.de, lidl.fr, lidl.co.uk, lidl.it, lidl.pt, lidl.pl, lidl.nl). Extract 100% verified shelf prices, weekly flyer offers, groceries, photos & EAN codes in one unified dataset. Fast Pay-Per-Event ($2.50/1k).",
    "version": "1.0",
    "x-build-id": "aELUSs1oUdbjcsmI2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/silver_petalfall~lidl-catalog-price-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-silver_petalfall-lidl-catalog-price-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/silver_petalfall~lidl-catalog-price-scraper/runs": {
      "post": {
        "operationId": "runs-sync-silver_petalfall-lidl-catalog-price-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/silver_petalfall~lidl-catalog-price-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-silver_petalfall-lidl-catalog-price-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": [
          "country",
          "categories"
        ],
        "properties": {
          "country": {
            "title": "1. Select Lidl Country",
            "enum": [
              "ES",
              "DE",
              "FR",
              "GB",
              "IT",
              "PT",
              "PL",
              "NL"
            ],
            "type": "string",
            "description": "Select the country store you want to extract products and prices from.",
            "default": "ES"
          },
          "categories": {
            "title": "2. Product Categories to Extract",
            "type": "array",
            "description": "Choose which sections of Lidl's catalog to include. <b>weekly_flyers</b> = in-store weekly leaflet offers & discounts; <b>food / cleaning / cosmetics</b> = supermarket groceries with verified shelf prices & photos; <b>bazaar_online</b> = non-food online shop.",
            "items": {
              "type": "string",
              "enum": [
                "food",
                "cleaning",
                "cosmetics",
                "bazaar_online",
                "weekly_flyers"
              ],
              "enumTitles": [
                "Food & drinks",
                "Cleaning & household",
                "Cosmetics & personal care",
                "Bazaar / online shop (non-food)",
                "Weekly flyers (in-store offers)"
              ]
            },
            "default": [
              "weekly_flyers",
              "food",
              "cleaning",
              "cosmetics"
            ]
          },
          "searchQueries": {
            "title": "3. Search Keywords (Optional)",
            "type": "array",
            "description": "Filter by specific terms or Lidl private brands (e.g., 'leche', 'detergente', 'milbona', 'cien', 'w5', 'parkside'). Leave empty to automatically use comprehensive built-in keywords with guaranteed real shelf prices.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "4. Maximum Products to Scrape",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Limit the total number of products to control your run cost. You are never charged above this limit.",
            "default": 100
          },
          "maxFlyerPages": {
            "title": "Maximum flyer pages to save",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "How many weekly-flyer pages (HD image, PDF link, keywords) to save in the FLYER_PAGES record. Set 0 to only get flyer products.",
            "default": 10
          },
          "fullCatalogMode": {
            "title": "Full catalog mode (sitemap)",
            "type": "boolean",
            "description": "Crawl every product page listed in Lidl's product sitemap (JSON-LD). Slower but exhaustive. Ignores keywords.",
            "default": false
          },
          "startUrls": {
            "title": "Start URLs (optional)",
            "type": "array",
            "description": "Direct Lidl product URLs (…/p/…), flyer URLs (…/l/…) or search URLs. Only official *.lidl.* domains are accepted.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Datacenter proxies are enough in most cases. Switch to Residential only if you see repeated 403 errors.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}