{
  "openapi": "3.0.1",
  "info": {
    "title": "dm Scraper · Products, Prices, Stock & Reviews (13 Shops)",
    "description": "Scrape dm-drogerie markt in 13 countries by keyword, category, brand or product link, or track article numbers and EANs. Get prices, unit prices, sale prices, ratings, online and store stock by postcode, plus ingredients, usage, maker, star breakdown and reviews. Past the 1,000 limit.",
    "version": "0.1",
    "x-build-id": "dfh4mY4KT5uMBPoLU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memo23~dm-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memo23-dm-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/memo23~dm-scraper/runs": {
      "post": {
        "operationId": "runs-sync-memo23-dm-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/memo23~dm-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-memo23-dm-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 words, article numbers or barcodes",
            "type": "array",
            "description": "One per line. Words run a product search (shampoo, zahnpasta, windeln). A dm article number (1569035) or an EAN barcode (4066447966008) returns that one product, which makes a list of them a price tracker. The filters below apply to word searches.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "🔗 dm shop links",
            "type": "array",
            "description": "Links from any dm online shop (dm.de, dm.at, dm.cz, mojadm.sk, dm.hu, dm.hr, dm.si, dm.ro, dm.rs, dm-drogeriemarkt.bg, dm-drogeriemarkt.ba, dm.pl, dm-drogeriemarkt.it): product pages, categories (https://www.dm.de/haare), brand pages (https://www.dm.de/marken/balea), the sale page (https://www.dm.de/ausverkauf) or search results with filters set on dm. Each link uses its own shop, whatever the country below says.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "country": {
            "title": "🌍 Shop for search words",
            "enum": [
              "de",
              "at",
              "cz",
              "sk",
              "hu",
              "hr",
              "si",
              "ro",
              "rs",
              "bg",
              "ba",
              "pl",
              "it"
            ],
            "type": "string",
            "description": "Which dm online shop the search words, article numbers and barcodes run in. Prices come in that shop's currency.",
            "default": "de"
          },
          "maxItems": {
            "title": "Max products",
            "minimum": 1,
            "maximum": 500000,
            "type": "integer",
            "description": "Stop after this many products across all inputs. Each product is one row in the dataset.",
            "default": 100
          },
          "scrapeDetails": {
            "title": "Product details",
            "type": "boolean",
            "description": "Open each product page to add the full description, highlights, product features, ingredients, usage, warnings, storage, maker address, country of origin, category path, the date the price was last raised, PAYBACK points, all pictures in full size, the star breakdown and the share of buyers who recommend it. Billed as an extra event per product.",
            "default": false
          },
          "maxReviewsPerProduct": {
            "title": "Reviews per product",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "How many customer reviews to keep on each product's row, with stars, title, text, date, reviewer profile (age group, hair or skin type), sub-ratings and helpful votes. 0 keeps none. Reviews turn product details on and are included in its price.",
            "default": 0
          },
          "reviewsSort": {
            "title": "Review order",
            "enum": [
              "newest",
              "relevance"
            ],
            "type": "string",
            "description": "Which reviews come first.",
            "default": "newest"
          },
          "storeLocations": {
            "title": "Store stock near",
            "type": "array",
            "description": "Postcodes (80335), towns (Graz) or dm store IDs (D3CI) to read in-store stock for. Each row then lists the nearest stores with in stock or not and the shelf count dm shows. Postcodes and towns are looked up in the shop chosen above; store page links pasted above also work.",
            "items": {
              "type": "string"
            }
          },
          "storesPerLocation": {
            "title": "Stores per location",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many of the nearest stores to check for each postcode or town. Up to 25 stores per run.",
            "default": 3
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "new",
              "rating",
              "price_asc",
              "price_desc"
            ],
            "type": "string",
            "description": "Order of search results. Pasted links keep their own order unless you pick one here.",
            "default": "relevance"
          },
          "brands": {
            "title": "Brands",
            "type": "array",
            "description": "Only these brands, written as dm writes them (Balea, NIVEA, L'ORÉAL PARiS ELVITAL). Leave empty for every brand.",
            "items": {
              "type": "string"
            }
          },
          "minPrice": {
            "title": "Min price",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest price, in whole units of the shop's currency (euro, koruna, forint, ...)."
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "type": "integer",
            "description": "Highest price, in whole units of the shop's currency."
          },
          "saleOnly": {
            "title": "Sale items only",
            "type": "boolean",
            "description": "Only products dm is clearing out at a reduced price (Ausverkauf), each with its previous price and discount.",
            "default": false
          },
          "splitLargeSearches": {
            "title": "Go past 1,000 products per search",
            "type": "boolean",
            "description": "dm shows at most 1,000 products for one search or category. With this on you get all of them, for example the whole Haare category or the full range of a brand.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 32,
            "type": "integer",
            "description": "How many requests run at once. The default suits almost every run.",
            "default": 8
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}