# dm Scraper (`epctex/dm-scraper`)

Extract product data from DM.de - prices, availability, images, descriptions & more. Search by keywords, scrape categories or individual products. Location-based stock info with ZIP codes. Fast, efficient scraping up to 1000 products per query. Perfect for market research & price monitoring.

- **URL**: https://beta-securitybyobscurity.apify.com/epctex/dm-scraper.md
- **Developed by:** [epctex](https://beta-securitybyobscurity.apify.com/epctex) (community)
- **Categories:** E-commerce, Other, Automation
- **Stats:** 3 total users, 3 monthly users, 100.0% runs succeeded, 5 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

$20.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period.
You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#rental-actors

# README

## dm Scraper

### dm scraper

Since dm doesn't provide a good and free API, this actor should help you to retrieve data from it.

The dm data scraper supports the following features:

- Search Result Scraping - Collect product information directly from search results using either keywords and/or URLs.

- Category Scraping - Extract product data from categories and/or subcategories of your choice from URLs.

- Product Detail Scraping - Retrieve comprehensive and detailed information for each individual product.

- Location-Based Availability - When a ZIP code is provided, the scraper automatically identifies the nearest store and updates product availability information accordingly.

- The scraper automatically detects the current page of a given category or search URL and continues scraping from that point.

### Limitations

- For each input URL (whether a category or search result), the scraper can only scrape a maximum of 1000 products.

- This limit is applied per request, regardless of the offset or start value provided. For example, even if the crawl begins from offset 5 or 10, the scraper will still only return up to 1000 items total for that URL.

- If the category or search contains more than 1000 products, the scraper will not retrieve the products beyond the 1000th item.

- There is no limitation on the overall result. If you provide multiple URLs and/or search keyword(s), the scraper will return 1000 products per URL and/or search keyword(s).

### Bugs, fixes, updates, and changelog

This scraper is under active development. If you have any feature requests you can create an issue from [here](https://github.com/epctex/dm-scraper/issues).

### Input Parameters

The input of this scraper should be JSON containing the list of pages on dm that should be visited. Required fields are:

- `zipcode`:(Optional) (String) Zipcode value that enforces website to update the availability of the product.

- `startUrls`: (Optional) (Array) List of dm URLs. You should only provide a search, category, or product URLs.

- `search`: (Optional) (Array) Keyword(s) that you want to search on dm.

- `endPage`: (Optional) (Number) Final number of page that you want to scrape. The default is `Infinite`. This applies to all `search` requests and `startUrls` individually.

- `maxItems`: (Optional) (Number) You can limit the number of scraped items. This should be useful when you search through the big lists or search results.

- `customMapFunction`: (Optional) (String) Function that takes each object's handle as an argument and returns the object with executing the function.

- `proxy`: (Required) (Proxy Object) Proxy configuration.

This solution requires the use of **Proxy servers**, either your own proxy servers or you can use [Apify Proxy](https://www.apify.com/docs/proxy).

#### Tip

When you want to scrape over a specific list URL, just copy and paste the link as one of the **startUrl**.

If you would like to scrape only the first page of a list then put the link for the page and have the `endPage` as 1.

With the last approach that is explained above you can also fetch any interval of pages. If you provide the 5th page of a list and define the `endPage` parameter as 6 then you'll have the 5th and 6th pages only.

#### Compute Unit Consumption

The actor is optimized to run blazing fast and scrape as many items as possible. Therefore, it forefronts all the detailed requests. If the actor doesn't block very often it'll scrape 100 listings in 2 minutes with ~0.03-0.05 compute units.

#### dm Scraper Input example

```json
{
  "startUrls": [
    "https://www.dm.de/balea-tuchmaske-big-dreams-p4067796168532.html",
    "https://www.dm.de/pflege-und-parfum",
    "https://www.dm.de/haare/haar-accessoires",
    "https://www.dm.de/pflege-und-parfum?allCategories.id0=020000&pageSize0=10&sort0=editorial_relevance&currentPage0=2",
    "https://www.dm.de/search?query=tasche&searchProviderType=dm-products",
    "https://www.dm.de/search?query=tasche&searchProviderType=dm-products&currentPage=1&loadPrev=false"
  ],
  "keywords": [
    "tasche",
   "handcreme",
    "haarspray"
  ],
  "maxItems": 50,
  "endPage": 5,
  "zipcode": "80335",
  "proxy": {
    "useApifyProxy": true
  }
}
```

### During the Run

During the run, the actor will output messages letting you know what is going on. Each message always contains a short label specifying which page from the provided list is currently specified.
When items are loaded from the page, you should see a message about this event with a loaded item count and total item count for each page.

If you provide incorrect input to the actor, it will immediately stop with a failure state and output an explanation of what is wrong.

### dm Export

During the run, the actor stores results into a dataset. Each item is a separate item in the dataset.

You can manage the results in any language (Python, PHP, Node JS/NPM). See the FAQ or <a href="https://www.apify.com/docs/api" target="blank">our API reference</a> to learn more about getting results from this dm actor.

### Scraped dm Properties

The structure of each item in dm looks like this:

#### Item Detail

```json
{
    "dan": 3064116,
    "gtin": 4067796168532,
    "a11yInfo": "Produktdetailseite: Balea, Tuchmaske Big Dreams, 1 St. Preis: 0,95 €",
    "a11yLabel": "Produktdetailseite: Balea, Tuchmaske Big Dreams, 1 St. Preis: 0,95 €",
    "breadcrumbs": [
        "Pflege & Parfum",
        "Gesichtspflege",
        "Gesichtsmaske"
    ],
    "title": {
        "brandImage": "https://products.dm-static.com/images/f_auto,q_auto,c_fit,w_280,h_180/v1750686892/assets/mp/brands/subbrand_6169_default/subbrand_6169_default.png",
        "headline": "Tuchmaske Big Dreams, 1 St",
        "brand": "Balea"
    },
    "brand": {
        "name": "Balea",
        "image": {
            "src": "https://products.dm-static.com/images/f_auto,q_auto,c_fit,w_280,h_180/v1750686892/assets/mp/brands/subbrand_6169_default/subbrand_6169_default.png",
            "alt": "Balea"
        }
    },
    "rating": {
        "ratingCount": 7,
        "ratingValue": 4.4286
    },
    "pills": [
        "Vegan"
    ],
    "images": [
        {
            "zoomSrc": "https://products.dm-static.com/images/f_auto,q_auto,c_fit,h_1200,w_1200/v1753139673/assets/pas/images/ab4bb7c2-23a0-47e0-8b7b-59736de0bd26/balea-tuchmaske-big-dreams",
            "backgroundColor": "#F9F1F3",
            "src": "https://products.dm-static.com/images/f_auto,q_auto,c_fit,h_440,w_500/v1753139673/assets/pas/images/ab4bb7c2-23a0-47e0-8b7b-59736de0bd26/balea-tuchmaske-big-dreams",
            "thumbnailSrc": "https://products.dm-static.com/images/f_auto,q_auto,c_fit,h_116,w_116/v1753139673/assets/pas/images/ab4bb7c2-23a0-47e0-8b7b-59736de0bd26/balea-tuchmaske-big-dreams",
            "alt": "Tuchmaske Big Dreams Balea"
        },
        {
            "zoomSrc": "https://products.dm-static.com/images/f_auto,q_auto,c_fit,h_1200,w_1200/v1753139680/assets/pas/images/c893bb4b-acc2-4efc-8565-8402189bb0de/balea-tuchmaske-big-dreams",
            "backgroundColor": "#F9F1F6",
            "src": "https://products.dm-static.com/images/f_auto,q_auto,c_fit,h_440,w_500/v1753139680/assets/pas/images/c893bb4b-acc2-4efc-8565-8402189bb0de/balea-tuchmaske-big-dreams",
            "thumbnailSrc": "https://products.dm-static.com/images/f_auto,q_auto,c_fit,h_116,w_116/v1753139680/assets/pas/images/c893bb4b-acc2-4efc-8565-8402189bb0de/balea-tuchmaske-big-dreams",
            "alt": "Tuchmaske Big Dreams Balea"
        },
        {
            "zoomSrc": "https://products.dm-static.com/images/f_auto,q_auto,c_fit,h_1200,w_1200/v1753139687/assets/pas/images/844fc276-60fc-4dbb-9a1e-2e653c3a2fa8/balea-tuchmaske-big-dreams",
            "backgroundColor": "#F9F1F5",
            "src": "https://products.dm-static.com/images/f_auto,q_auto,c_fit,h_440,w_500/v1753139687/assets/pas/images/844fc276-60fc-4dbb-9a1e-2e653c3a2fa8/balea-tuchmaske-big-dreams",
            "thumbnailSrc": "https://products.dm-static.com/images/f_auto,q_auto,c_fit,h_116,w_116/v1753139687/assets/pas/images/844fc276-60fc-4dbb-9a1e-2e653c3a2fa8/balea-tuchmaske-big-dreams",
            "alt": "Tuchmaske Big Dreams Balea"
        }
    ],
    "eyecatchers": [
        {
            "src": "https://media.dm-static.com/images/f_auto,q_auto,c_fit,w_150/v1748357417/products/pim/eyecatcher_new_de/new_de",
            "alt": "Neu im Sortiment"
        },
        {
            "src": "https://media.dm-static.com/images/f_auto,q_auto,c_fit,w_150/v1748357418/products/pim/eyecatcher_dmbrand_de/dm_brand_stoerer_old",
            "alt": "Unsere Marke nur bei uns"
        }
    ],
    "seals": [
        {
            "description": "Die Veganblume garantiert, dass weder tierische Inhaltsstoffe enthalten sind, noch Tierversuche durchgeführt werden.",
            "image": {
                "src": "https://media.dm-static.com/images/v1538636894/products/pim/v6210_vegan_society_vegan_logo1/v6210_vegan_society_vegan_logo.svg",
                "alt": "Veganblume"
            },
            "src": "https://media.dm-static.com/images/v1538636894/products/pim/v6210_vegan_society_vegan_logo1/v6210_vegan_society_vegan_logo.svg",
            "title": "Veganblume"
        },
        {
            "image": {
                "src": "https://media.dm-static.com/images/f_auto,q_auto,c_fit,h_ih,w_480/v1754316243/products/pim/stoererrom/dm_ohne_mikroplastik-stoerer_rgb_300px.png",
                "alt": "Rezeptur ohne Mikroplastik Siegel"
            },
            "src": "https://media.dm-static.com/images/f_auto,q_auto,c_fit,h_ih,w_480/v1754316243/products/pim/stoererrom/dm_ohne_mikroplastik-stoerer_rgb_300px.png"
        }
    ],
    "descriptionGroups": [
        {
            "header": "Produktbeschreibung",
            "contentBlock": [
                {
                    "bulletpoints": [
                        "Gesichtsmaske",
                        "Spendet intensiv Feuchtigkeit",
                        "Reduziert Spannungsgefühle und Trockenheitsfältchen",
                        "Mit Hibiskus-Extrakt, Hyaluron und Aloe Vera",
                        "Geeignet für jeden Hauttyp"
                    ]
                },
                {
                    "texts": [
                        "Die Balea Tuchmaske Big Dreams verwöhnt die Haut mit einer erfrischenden Pflegeformel. Angereichert mit Hibiskus-Extrakt, Hyaluron und Aloe Vera spendet sie intensive Feuchtigkeit und sorgt für ein geschmeidiges Hautgefühl. Spannungsgefühle und Trockenheitsfältchen können gemildert werden, während der Teint frischer und strahlender wirkt. Die Maske ist für alle Hauttypen geeignet und bietet eine Auszeit für die Haut."
                    ]
                },
                {
                    "texts": [
                        "dm-Artikelnummer: 3064116",
                        "GTIN: 4067796168532"
                    ]
                }
            ],
            "isExpanded": true,
            "showInInfoHintLayer": false
        },
        {
            "header": "Produktmerkmale",
            "contentBlock": [
                {
                    "descriptionList": [
                        {
                            "description": "Vegan",
                            "title": "Produkteigenschaften"
                        }
                    ]
                }
            ],
            "isExpanded": false,
            "showInInfoHintLayer": false
        },
        {
            "header": "Inhaltsstoffe",
            "contentBlock": [
                {
                    "texts": [
                        "Ingredients: Aqua Glycerin Pentylene Glycol Propylene Glycol Xanthan Gum Sodium Citrate Parfum Tocopherol Helianthus Annuus Seed Oil Citric Acid Hibiscus Sabdariffa Flower Extract Sorbitol Linalool Sodium Hyaluronate Aloe Barbadensis Leaf Juice Tetramethyl acetyloctahydronaphthalenes Hexyl Cinnamal Citronellol Phenoxyethanol Vanillin Acetyl Cedrene Ethylhexylglycerin Sodium Benzoate Potassium Sorbate"
                    ]
                }
            ],
            "isExpanded": false,
            "showInInfoHintLayer": false
        },
        {
            "header": "Verwendungshinweise",
            "contentBlock": [
                {
                    "texts": [
                        "Die Maske ist nicht wiederverwendbar! Nach dem Öffnen des Sachets sofort verbrauchen! Direkten Augenkontakt vermeiden. Nicht zur Pflege von Kindern verwenden!"
                    ]
                }
            ],
            "isExpanded": false,
            "showInInfoHintLayer": false
        },
        {
            "header": "Anschrift des Unternehmens",
            "contentBlock": [
                {
                    "texts": [
                        "dm-drogerie markt GmbH + Co. KG\nAm dm-Platz 1\n76227 Karlsruhe\nservice@dm.de"
                    ]
                }
            ],
            "isExpanded": false,
            "showInInfoHintLayer": false
        },
        {
            "header": "Hergestellt in",
            "contentBlock": [
                {
                    "texts": [
                        "Deutschland"
                    ]
                }
            ],
            "isExpanded": false,
            "showInInfoHintLayer": false
        }
    ],
    "self": "/balea-tuchmaske-big-dreams-p4067796168532.html",
    "metadata": {
        "currency": "EUR",
        "description": "Die Balea Tuchmaske Big Dreams verwöhnt die Haut mit einer erfrischenden Pflegeformel. Angereichert mit Hibiskus-Extrakt, Hyaluron und Aloe Vera spendet sie...",
        "categoryCodes": [
            "020207"
        ],
        "canonical": "/balea-tuchmaske-big-dreams-p4067796168532.html",
        "price": 0.95,
        "pageTitle": "Balea Tuchmaske Big Dreams, 1 St dauerhaft günstig online kaufen | dm.de",
        "robots": "index, follow, noodp"
    },
    "price": {
        "infos": [
            "1 St (0,95 € je 1 St)",
            "inkl. MwSt. zzgl. <linking>Versand</linking>"
        ],
        "paybackInfo": "Je 2 Euro Warenwert erhalten Sie 1 PAYBACK °Punkt",
        "price": {
            "current": {
                "value": "0,95 €"
            }
        }
    },
    "netPrice": {
        "infos": [
            "1 St (0,80 € je 1 St)",
            "exkl. MwSt. zzgl. <linking>Versand</linking>"
        ],
        "price": {
            "current": {
                "value": "0,80 €"
            }
        }
    },
    "confidenceBuildingMeasuresWeb": [
        "Kostenloser Versand ab 59 € mit dm-Konto",
        "Kostenlose Rückgabe auch im dm-Markt",
        "Kauf auf Rechnung möglich"
    ],
    "about": {
        "heading": "Infos zum Produkt"
    },
    "isPurchasable": true,
    "isUserInExpressDeliveryArea": false,
    "quantitySelection": [
        1,
        2,
        3,
        4
    ],
}
```

### Contact

Please visit us through [epctex.com](https://epctex.com) to see all the products that are available for you. If you are looking for any custom integration or so, please reach out to us through the chat box in [epctex.com](https://epctex.com). In need of support? <business@epctex.com> is at your service.

# Actor input Schema

## `zipcode` (type: `string`):

Zip code for area selection.

## `keywords` (type: `array`):

Keyword(s) that you can search on DM

## `maxItems` (type: `integer`):

Maximum number of listing products that you want as output. Default is all

## `endPage` (type: `integer`):

The page number that you want to end with. By default there is no end page. This applies to all search request and startUrls individually.

## `startUrls` (type: `array`):

URLs to start with. It should be category, search, or detail URL

## `customMapFunction` (type: `string`):

Function that takes each of the objects as argument and returns data that will be mapped by the function itself.

## `proxy` (type: `object`):

Select proxies to be used by your crawler.

## Actor input object example

```json
{
  "zipcode": "80335",
  "keywords": [
    "tasche",
    "handcreme",
    "haarspray"
  ],
  "maxItems": 20,
  "endPage": 1,
  "startUrls": [
    "https://www.dm.de/balea-gesichtshaarentferner-p4067796182026.html",
    "https://www.dm.de/pflege-und-parfum",
    "https://www.dm.de/pflege-und-parfum?allCategories.id0=020000&pageSize0=10&sort0=editorial_relevance&currentPage0=2",
    "https://www.dm.de/search?query=tasche&searchProviderType=dm-products",
    "https://www.dm.de/search?query=tasche&searchProviderType=dm-products&currentPage=1&loadPrev=false"
  ],
  "customMapFunction": "(object) => { return {...object} }",
  "proxy": {
    "useApifyProxy": true
  }
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "zipcode": "80335",
    "keywords": [
        "tasche",
        "handcreme",
        "haarspray"
    ],
    "maxItems": 20,
    "endPage": 1,
    "startUrls": [
        "https://www.dm.de/balea-gesichtshaarentferner-p4067796182026.html",
        "https://www.dm.de/pflege-und-parfum",
        "https://www.dm.de/pflege-und-parfum?allCategories.id0=020000&pageSize0=10&sort0=editorial_relevance&currentPage0=2",
        "https://www.dm.de/search?query=tasche&searchProviderType=dm-products",
        "https://www.dm.de/search?query=tasche&searchProviderType=dm-products&currentPage=1&loadPrev=false"
    ],
    "customMapFunction": (object) => { return {...object} },
    "proxy": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("epctex/dm-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "zipcode": "80335",
    "keywords": [
        "tasche",
        "handcreme",
        "haarspray",
    ],
    "maxItems": 20,
    "endPage": 1,
    "startUrls": [
        "https://www.dm.de/balea-gesichtshaarentferner-p4067796182026.html",
        "https://www.dm.de/pflege-und-parfum",
        "https://www.dm.de/pflege-und-parfum?allCategories.id0=020000&pageSize0=10&sort0=editorial_relevance&currentPage0=2",
        "https://www.dm.de/search?query=tasche&searchProviderType=dm-products",
        "https://www.dm.de/search?query=tasche&searchProviderType=dm-products&currentPage=1&loadPrev=false",
    ],
    "customMapFunction": "(object) => { return {...object} }",
    "proxy": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("epctex/dm-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "zipcode": "80335",
  "keywords": [
    "tasche",
    "handcreme",
    "haarspray"
  ],
  "maxItems": 20,
  "endPage": 1,
  "startUrls": [
    "https://www.dm.de/balea-gesichtshaarentferner-p4067796182026.html",
    "https://www.dm.de/pflege-und-parfum",
    "https://www.dm.de/pflege-und-parfum?allCategories.id0=020000&pageSize0=10&sort0=editorial_relevance&currentPage0=2",
    "https://www.dm.de/search?query=tasche&searchProviderType=dm-products",
    "https://www.dm.de/search?query=tasche&searchProviderType=dm-products&currentPage=1&loadPrev=false"
  ],
  "customMapFunction": "(object) => { return {...object} }",
  "proxy": {
    "useApifyProxy": true
  }
}' |
apify call epctex/dm-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=epctex/dm-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "dm Scraper",
        "description": "Extract product data from DM.de - prices, availability, images, descriptions & more. Search by keywords, scrape categories or individual products. Location-based stock info with ZIP codes. Fast, efficient scraping up to 1000 products per query. Perfect for market research & price monitoring.",
        "version": "0.0",
        "x-build-id": "3paGLBKTbDFnAddiG"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/epctex~dm-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-epctex-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/epctex~dm-scraper/runs": {
            "post": {
                "operationId": "runs-sync-epctex-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/epctex~dm-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-epctex-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",
                "required": [
                    "proxy"
                ],
                "properties": {
                    "zipcode": {
                        "title": "ZIP Code",
                        "type": "string",
                        "description": "Zip code for area selection."
                    },
                    "keywords": {
                        "title": "Search keywords",
                        "type": "array",
                        "description": "Keyword(s) that you can search on DM",
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxItems": {
                        "title": "Maximum number of listing products",
                        "type": "integer",
                        "description": "Maximum number of listing products that you want as output. Default is all"
                    },
                    "endPage": {
                        "title": "List end page",
                        "type": "integer",
                        "description": "The page number that you want to end with. By default there is no end page. This applies to all search request and startUrls individually."
                    },
                    "startUrls": {
                        "title": "Start URLs",
                        "type": "array",
                        "description": "URLs to start with. It should be category, search, or detail URL",
                        "items": {
                            "type": "string"
                        }
                    },
                    "customMapFunction": {
                        "title": "Custom map function",
                        "type": "string",
                        "description": "Function that takes each of the objects as argument and returns data that will be mapped by the function itself."
                    },
                    "proxy": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Select proxies to be used by your crawler."
                    }
                }
            },
            "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
                                    }
                                }
                            },
                            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
